https://www.icyphoenix.com/viewtopic.php?f=26&t=3230
-----------------------------------
felix968
Mon 10 Dec, 2007 21:48

FAP CUSTOMIZATION - New Page With Last Comments
-----------------------------------
Hi, 
many users ask me a page with all comments and picts like in "last comments" block.
Thank you


-----------------------------------
Mighty Gorgon
Sun 16 Dec, 2007 01:19

Re: New Page With Last Comments
-----------------------------------
FAP has this block.

If you are a bit confident with PHP, you can extract it from album index and put it wherever you want.


-----------------------------------
felix968
Fri 28 Dec, 2007 23:32

Re: New Page With Last Comments
-----------------------------------
[quote user="Mighty Gorgon" post="22285"]FAP has this block.

If you are a bit confident with PHP, you can extract it from album index and put it wherever you want.[/quote]

Thank you Migthy Gordon,
I've extracted it.
But, the block comes from a "recent_comments_block".
Can I have all comments, and not only last five?

Here's from tpl file

[spoiler]
[code]
<table width="98%" align="left" cellspacing="1" cellpadding="2" border="0">
    <tr>
        <td class="nav">
            <span class="nav">
                <a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_SEP}
                <a href="{U_ALBUM}" class="nav">{L_ALBUM}</a>
            </span>
        </td>
        <td align="right">
            <form name="search" action="{U_ALBUM_SEARCH}">
                <span class="gensmall">
                    {L_SEARCH}:&nbsp;
                    <select name="mode">
                        <option value="user">{L_USERNAME}</option>
                        <option value="name">{L_PIC_NAME}</option>
                        <option value="desc">{L_DESCRIPTION}</option>
                    </select>
                    {L_SEARCH_CONTENTS}
                    <input type="text" name="search" maxlength="20">
                    &nbsp;&nbsp;
                    <input class="liteoption" type="submit" value="{L_GO}">
                </span>
            </form>
        </td>
    </tr>
</table>

<table width="98%" align="center" cellspacing="1" cellpadding="2" border="0"><tr><td align="right"><span class="gensmall">{S_TIMEZONE}</span></td></tr></table>

<!-- BEGIN recent_comments_block -->
<br />
<table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2">
    <tr><td class="catLeft" colspan="2" height="28"><span class="cattitle">{recent_comments_block.L_LAST_COMMENT_INFO}</span></td></tr>
    <tr>
        <th class="thTop" width="10%" height="25" nowrap="nowrap">{L_PIC_TITLE}</th>
        <th class="thTop" width="90%" height="25" nowrap="nowrap">{recent_comments_block.L_COMMENTS}</th>
    </tr>
    <!-- BEGIN comment_row -->
    <tr>
        <td class="row1" align="center" valign="middle" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';" nowrap="nowrap">
            <table><tr><td><div class="picshadow"><div class="picframe">
                <a href="{recent_comments_block.comment_row.U_PIC}" {TARGET_BLANK}><img src="{recent_comments_block.comment_row.THUMBNAIL}" {THUMB_SIZE} alt="{recent_comments_block.comment_row.DESC}" title="{recent_comments_block.comment_row.DESC}" vspace="10" border="0" {recent_comments_block.comment_row.PIC_PREVIEW} /></a>
            </div></div></td></tr></table>
        </td>
        <td class="row1" valign="top" onMouseOver="this.className='row2';" onMouseOut="this.className='row1';" nowrap="nowrap">
            <div style="text-align: right; float: right;"><span class="gensmall"><b>{L_PIC_TITLE}</b>: {recent_comments_block.comment_row.TITLE}</span></div>
            <span class="gensmall"><b>{L_POSTER}</b>:&nbsp;{recent_comments_block.comment_row.POSTER}&nbsp;[{recent_comments_block.comment_row.TIME}]</span>
            <hr />
            <div class="postbody">{recent_comments_block.comment_row.COMMENT_TEXT}</div>
            <!--
            <span class="gensmall"><b>{L_PIC_TITLE}</b>: {recent_comments_block.comment_row.TITLE}</span><br />
            <span class="gensmall"><b>{L_POSTER}</b>: {recent_comments_block.comment_row.POSTER}</span><br />
            <span class="gensmall"><b>{L_POSTED}</b>: {recent_comments_block.comment_row.TIME}</span><hr />
            <span class="gensmall"><b>{recent_comments_block.L_LAST_COMMENT}</b>:</span><hr />
            <div class="postbody">{recent_comments_block.comment_row.COMMENT_TEXT}</div>
            -->
        </td>
    </tr>
    <!-- END comment_row -->
</table>
<br />
<!-- END recent_comments_block -->


<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
    <table class="forumline" width="98%" align="center" cellspacing="1" cellpadding="2">
        <tr>
            <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}&nbsp;</span></td>
        </tr>
        <tr>
            <td class="row1" align="center" height="28">
                <span class="gensmall">
                {L_USERNAME}:<input class="post" type="text" name="username" size="10" />
                &nbsp;&nbsp;&nbsp;
                {L_PASSWORD}:<input class="post" type="password" name="password" size="10" />
                &nbsp;&nbsp; &nbsp;&nbsp;
                {L_AUTO_LOGIN}
                <input class="text" type="checkbox" name="autologin" />
                &nbsp;&nbsp;&nbsp;
                <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
                <input type="hidden" name="redirect" value="{U_PORTAL}" />
                </span>
            </td>
        </tr>
    </table>
</form>
<!-- END switch_user_logged_out -->
<br clear="all" />

<!-- You must keep my copyright notice visible with its original content -->
{ALBUM_COPYRIGHT}
[/code]
[/spoiler]

Thank you....


