phpbb 3 显示楼层
1,打开viewtopic.php, 找到
[code] $post_list = $user_cache = $id_cache = $attachments = $attach_list = $rowset = $update_count = $post_edit_list = array();[/code]
改成
[code] $floor_list = $post_list = $user_cache = $id_cache = $attachments = $attach_list = $rowset = $update_count = $post_edit_list = array();[/code]
找到
[code] while ($row = $db->sql_fetchrow($result))
{
$post_list[$i] = $row['post_id'];[/code]
后面添加
[code] $floor_list[$i] = $start + $i + 1;[/code]
找到
[code] $row =& $rowset[$post_list[$i]];[/code]
后面添加
[code] $floor = $floor_list[$i];[/code]
找到
[code] $postrow = array([/code]
后面添加
[code] 'FLOOR' => $floor,[/code]
2,打开styles/prosilver/template/viewtopic_body.html
找到
[code]{L_POSTED_ON_DATE} {postrow.POST_DATE}[/code]
后面添加
[code] <div class="pagination"><span><strong>{postrow.FLOOR}</strong></span></div>[/code]