附加服务,顺便发出。
修改viewthread.php
【回复倒排】
找:- $pageadd = "ORDER BY dateline DESC LIMIT $start_limit, $ppp2";
复制代码 替换为:- $pageadd = "ORDER BY first DESC,dateline DESC LIMIT $start_limit, $ppp2";
复制代码 找:- $pageadd = "ORDER BY dateline LIMIT $start_limit, $ppp";
复制代码 替换为:- $pageadd = "ORDER BY first DESC, dateline DESC LIMIT $start_limit, $ppp";
复制代码 【楼层倒排】
找:- $post['number'] = ++$numpost;
复制代码 替换为:- if($post['first']){
- $post['number'] = ++$numpost;
- }else{
- $post['number'] = $thread['replies'] - ++$numpost + 3;
- }
复制代码 【最后回复链接跳转】——如不修改,则会跳转到最早发表的回复帖的位置
找:- $post['lastpostanchor'] = $numpost == $thread['replies'] ? '<a name="lastpost"></a>' : '';
复制代码 替换为:- $post['lastpostanchor'] = $numpost == 1 ? '<a name="lastpost"></a>' : '';
复制代码 redirect.php- $page = ceil(($thread['special'] ? $thread['replies'] : $thread['replies'] + 1) / $ppp);
复制代码 改成:- //$page = ceil(($thread['special'] ? $thread['replies'] : $thread['replies'] + 1) / $ppp);
复制代码 完了。
[ 本帖最后由 forumers 于 2008-5-23 13:07 编辑 ] |