Alex1
PPK
MagmaMan
PPK
MagmaMan
Код: Выделить всё
$sql = $db->sql_build_query('SELECT', array(
'SELECT' => $sql_array['SELECT'],
Код: Выделить всё
$sql_array['LEFT_JOIN'][] = array(
'FROM' => array(POSTS_TABLE => 'p'),
'ON' => "f.forum_last_post_id = p.post_id"
);
$sql_array['SELECT'] .= ', p.topic_id';
Код: Выделить всё
$forum_rows[$parent_id]['forum_last_post_id'] = $row['forum_last_post_id'];
$forum_rows[$parent_id]['forum_last_post_subject'] = $row['forum_last_post_subject'];
Код: Выделить всё
$forum_rows[$parent_id]['topic_id'] = $row['topic_id'];
Код: Выделить всё
// Create last post link information, if appropriate
if ($row['forum_last_post_id'])
{
Код: Выделить всё
if ($row['topic_id'])
{
$last_topic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'f=' . $row['forum_id_last_post'] . '&t=' . $row['topic_id']);
}
else
{
$last_topic_url='';
}
Код: Выделить всё
'U_LAST_POST' => $last_post_url)
);
Код: Выделить всё
'U_LAST_TOPIC' => $last_topic_url,
Код: Выделить всё
<!-- IF forumrow.LAST_POST_SUBJECT --><a href="{forumrow.U_LAST_POST}"
Код: Выделить всё
<!-- IF forumrow.LAST_POST_SUBJECT --><a href="{forumrow.U_LAST_TOPIC}"
PPK
MagmaMan
PPK
styles/prosilver/template/forumlist_body.html
styles/subsilver2/template/forumlist_body.html
заменить
наКод: Выделить всё
<!-- IF forumrow.LAST_POST_SUBJECT --><a href="{forumrow.U_LAST_POST}"
Код: Выделить всё
<!-- IF forumrow.LAST_POST_SUBJECT --><a href="{forumrow.U_LAST_TOPIC}"
MagmaMan
olegya