PHPBB Veryhappy Veryhappy

,
,
.
Laughing

:

1. Demo
2. Demo

#
#-----[ ]------------------------------------------
#
index.php
#
#-----[ ]------------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
#
#-----[ ]------------------------------------------
#
u.user_id
#
#-----[ , ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar

#
#-----[ ]------------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
#
#-----[ ]------------------------------------------
#
u.user_id
#
#-----[ , ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar

#
#-----[ ]------------------------------------------
#
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
#
#-----[ ]------------------------------------------
#
u.user_id
#
#-----[ , ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar

#
#-----[ ]------------------------------------------
#
if ( count($forum_moderators[$forum_id]) > 0 )

#
#-----[ , ]------------------------------------------
#
$last_post_avatar = '';

if ( $forum_data[$j]['user_avatar_type'] && $forum_data[$j]['user_allowavatar'] )
{
switch( $forum_data[$j]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$last_post_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $forum_data[$j]['user_avatar'] . '" alt="" width="40" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$last_post_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $forum_data[$j]['user_avatar'] . '" alt="" alt="" width="40" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$last_post_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $forum_data[$j]['user_avatar'] . '" alt="" alt="" width="40" border="0" />' : '';
break;
}
}
#
#-----[ ]------------------------------------------
#
'LAST_POST' => $last_post,
#
#-----[ , ]------------------------------------------
#
'LAST_POST_AVATAR' => $last_post_avatar,
#
#-----[ ]------------------------------------------
#
viewforum.php
#
#-----[ ]------------------------------------------
#
$sql = "SELECT t.*, u.username, u.user_id
#
#-----[ ]------------------------------------------
#
u.user_id
#
#-----[ , ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar
#
#-----[ ]------------------------------------------
#
u2.user_id as id2
#
#-----[ , ]------------------------------------------
#
, u2.user_avatar as avatar2, u2.user_avatar_type as avatartype2, u2.user_allowavatar as allowavatar2
#
#-----[ ]------------------------------------------
#
$sql = "SELECT t.*, u.username, u.user_id
#
#-----[ ]------------------------------------------
#
u.user_id
#
#-----[ , ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar
#
#-----[ ]------------------------------------------
#
u2.user_id as id2
#
#-----[ , ]------------------------------------------
#
, u2.user_avatar as avatar2, u2.user_avatar_type as avatartype2, u2.user_allowavatar as allowavatar2
#
#-----[ ]------------------------------------------
#
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ , ]------------------------------------------
#
$topic_author_avatar = '';
if ( $topic_rowset[$i]['user_avatar_type'] && $topic_rowset[$i]['user_allowavatar'] )
{
switch( $topic_rowset[$i]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$topic_author_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $topic_rowset[$i]['user_avatar'] . '" width="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$topic_author_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $topic_rowset[$i]['user_avatar'] . '" width="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$topic_author_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $topic_rowset[$i]['user_avatar'] . '" width="40" alt="" border="0" />' : '';
break;
}
}


$last_post_author_avatar = '';
if ( $topic_rowset[$i]['avatartype2'] && $topic_rowset[$i]['allowavatar2'] )
{
switch( $topic_rowset[$i]['avatartype2'] )
{
case USER_AVATAR_UPLOAD:
$last_post_author_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $topic_rowset[$i]['avatar2'] . '" width="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$last_post_author_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $topic_rowset[$i]['avatar2'] . '" width="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$last_post_author_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $topic_rowset[$i]['avatar2'] . '" width="40" alt="" border="0" />' : '';
break;
}
}
#
#-----[ ]------------------------------------------
#
'LAST_POST_IMG' => $last_post_url,
#
#-----[ , ]------------------------------------------
#
'TOPIC_AUTHOR_AVATAR' => $topic_author_avatar,
'LAST_POST_AUTHOR_AVATAR' => $last_post_author_avatar,
#
#-----[ ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ ]------------------------------------------
#
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
#
#-----[ ]------------------------------------------
#
<td class="row2" align="center" valign="middle" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr><td width="40">{catrow.forumrow.LAST_POST_AVATAR}</td><td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr></table></td>
#
#-----[ ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ ]------------------------------------------
#
<td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
#
#-----[ ]------------------------------------------
#
<td class="row3" align="center" valign="middle"><table width="100%" cellpadding="1" cellspacing="0" border="0">
<tr><td width="40">{topicrow.TOPIC_AUTHOR_AVATAR}</td>
<td width="100%" class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
</tr></table></td>
#
#-----[ ]------------------------------------------
#
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
#
#-----[ ]------------------------------------------
#
<td class="row3Right" align="center" valign="middle"><table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr><td width="40">{topicrow.LAST_POST_AUTHOR_AVATAR}</td>
<td width="100%" class="row3" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr></table></td>
#
#-----[ SAVE & ]------------------------------------------
#
#



:

1. Demo
2. Demo


,
, .



/ /