Показване на последен пост на потребителите.
Този мод ще извежда в отделно поленце в мембър листата на вашият форум кой потребител кога е писал запоследно Winking
Според мен е полезно Veryhappy
###############################################
#
#-----[ ОТВОРИ ]------------------------------------------
#
memberlist.php
#
#-----[ НАМЕРИ ]------------------------------------------
#
'L_POSTS' => $lang['Posts'],
#
#-----[ СЛЕД ТОЗИ РЕД, ДОБАВИ ]------------------------------------------
#
'L_POST_TIME' => $lang['Last_Post'] . ' ' . $lang['Time'],
#
#-----[ НАМЕРИ ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ СЛЕД ТОЗИ РЕД, ДОБАВИ ]------------------------------------------
#
$post_time_sql = "SELECT post_time
FROM " . POSTS_TABLE . "
WHERE poster_id = " . $user_id . "
ORDER BY post_time DESC
LIMIT 1";
if ( !($post_time_result = $db->sql_query($post_time_sql)) )
{
message_die(GENERAL_ERROR, 'Error getting user last post time', '', __LINE__, __FILE__, $post_time_sql);
}
$post_time_row = $db->sql_fetchrow($post_time_result);
$last_post_time = ( isset($post_time_row['post_time']) ) ? create_date($board_config['default_dateformat'], $post_time_row['post_time'], $board_config['board_timezone']) : $lang['None'];
#
#-----[ НАМЕРИ ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ СЛЕД ТОЗИ РЕД, ДОБАВИ ]------------------------------------------
#
'LAST_POST_TIME' => $last_post_time,
#
#-----[ ОТВОРИ ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ НАМЕРИ ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_JOINED}</th>
<th class="thTop" nowrap="nowrap">{L_POSTS}</th>
#
#-----[ СЛЕД ТОЗИ РЕД, ДОБАВИ ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_POST_TIME}</th>
#
#-----[ НАМЕРИ ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
#
#-----[ СЛЕД ТОЗИ РЕД, ДОБАВИ ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.LAST_POST_TIME}</span></td>
#
#-----[ НАМЕРИ ]------------------------------------------
#
<td class="catbottom" colspan="8" height="28"> </td>
#
#-----[ ЗАМЕСТИ С ТОЗИ РЕД ]------------------------------------------
#
<td class="catbottom" colspan="10" height="28"> </td>
#
#-----[ SAVE И ЗАТВОРИ ВСИЧКИ ФАЙЛОВЕ ]------------------------------------------
#
#End

