t.*, t.topic_poster AS first_user_id, u1.user_rank as first_user_rank,
u1.user_avatar as author_ava, u1.user_avatar_type as author_ava_type,
// Ава топикстартера
$avatar_img = '<img align="left" height="36" width="36" style="padding-right: 3px;" src="' . $bb_cfg['none_avatar_image'] . '" alt="" border="0" />';
if ($topic['author_ava_type'] )
{
switch($topic['author_ava_type'] )
{
case USER_AVATAR_UPLOAD:
$avatar_img = ( $bb_cfg['allow_avatar_upload'] ) ? '<img align="left" height="36" width="36" style="padding-right: 3px; " src="' . $bb_cfg['avatar_path'] . '/' . $topic['author_ava'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ( $bb_cfg['allow_avatar_remote'] ) ? '<img align="left" height="36" width="36" style="padding-right: 3px;" src="' . $topic['author_ava'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ( $bb_cfg['allow_avatar_local'] ) ? '<img align="left" height="36" width="36" style="padding-right: 3px;" src="' . $bb_cfg['avatar_gallery_path'] . '/' . $topic['author_ava'] . '" alt="" border="0" />' : '';
break;
}
}
// END Ава топикстартера
'AUTHOR_AVA' => $avatar_img,
Что ж ты сразу у меня не спросилkrumax, спасибо тебе большое
$template->assign_block_vars('t', array(
{t.AUTHOR_AVA}