Код: Выделить всё
-- Открывает viewtopic.php ---
--- находим
//
// Mozilla navigation bar
--- перед ней ставит такой код :
$sql_last = "SELECT t.topic_last_post_id FROM " . TOPICS_TABLE . " t WHERE t.topic_id = $topic_id";
if ( !($result_t = $db->sql_query($sql_last)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
$row_lp = $db->sql_fetchrow($result_t);
$db->sql_freeresult($result_t);
$last_post_url = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $topic_rowset[$i]['topic_last_post_id']) . '#' . $topic_rowset[$i]['topic_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>';
--- Находим
//
// Send vars to template
//
$template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_name,
'TOPIC_ID' => $topic_id,
'TOPIC_TITLE' => $topic_title,
'PAGINATION' => $pagination,
'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )),
'POST_IMG' => $post_img,
'REPLY_IMG' => $reply_img,
--- далее дописываем
'LAST_POST_IMG' => $last_post_url,
--- сохраняем, закрываем viewtopic.php
--- открываем viewtopic_body.tpl ---
--- находим
<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}">
--- перед ней ставим вот что :
<td align="left" valign="bottom">{LAST_POST_IMG}</td>
--- сохраянем
--- закрываем