Добавлено: 23.01.2008 20:45
Pan
viewforum_body.tpl вложением
viewforum_body.tpl вложением
скачать русский перевод, моды, скины и стили для phpBB, phpBB3
https://www.phpbbguru.net/community/
Код: Выделить всё
#-- OPEN --
viewforum.php
#-- FIND --
$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>';
#-- REPLACE --
$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'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '">'.$last_post_time.'</a>';
#-- OPEN --
viewforum_body.tpl
#-- FIND --
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{normal_row.LAST_POST_TIME}<br />{normal_row.LAST_POST_AUTHOR} {normal_row.LAST_POST_IMG}</span></td>
#-- REPLACE --
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{normal_row.LAST_POST_IMG}<br />{normal_row.LAST_POST_AUTHOR}</span></td>
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id, t.topic_title, t.topic_id
FROM " . FORUMS_TABLE . " f left join " . POSTS_TABLE . " p ON p.forum_id=f.forum_id
AND p.post_time = (SELECT MAX(p.post_time) FROM posts p WHERE p.forum_id= f.forum_id)
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id
LEFT JOIN " . TOPICS_TABLE . " t ON t.topic_id = p.topic_id
ORDER BY f.cat_id, f.forum_order";