| 
 | 
 
 
打开 masingle.php 
找到- elseif($action=="pushtopic"){
 -      if(empty($_POST['step'])){
 -           require_once PrintEot('masingle');footer();
 -      } else{
 -           $db->update("UPDATE pw_threads SET lastpost='$timestamp' WHERE tid='$tid'");
 -           refreshto("thread.php?fid=$fid",'operate_success');
 -      }
 - } 
 
  复制代码 
在后面添加 
- elseif($action=="downtobottom"){
 -      
 -      if(empty($_POST['step'])){
 -           require_once PrintEot('masingle');footer();
 -      } else{
 -           $db->update("UPDATE pw_threads SET lastpost='1000000000' WHERE tid='$tid'");
 -           refreshto("thread.php?fid=$fid",'operate_success');
 -      }
 - }
 
  复制代码 
二、打开 template\wind\masingle.htm,找到- if($action=='pushtopic'){print <<<EOT
 - -->
 - 提前帖子
 - <!--
 - EOT;
 - }
 
  复制代码 
在后面加上 
- if($action=='downtobottom'){print <<<EOT
 - -->
 - 帖子沉底
 - <!--
 - EOT;
 - }
 
  复制代码 
 
三、打开当前模板中的read.htm,找到- [<a href='masingle.php?action=headtopic&fid=$fid&tid=$tid' title='置顶帖子'>置顶</a>]
 - [<a href='masingle.php?action=digest&fid=$fid&tid=$tid' title='精华帖子'>精华</a>]
 - [<a href='masingle.php?action=lock&fid=$fid&tid=$tid'title='锁定帖子'>锁定</a>]
 - [<a href='masingle.php?action=pushtopic&fid=$fid&tid=$tid' title='提前帖子'>提前</a>]
 - [<a href='masingle.php?action=edit&fid=$fid&tid=$tid' title='编辑标题颜色'>标题</a>]
 - [<a href='mawhole.php?action=del&fid=$fid&deltid=$tid 'title='删除帖子'>删除</a>]
 - [<a href='mawhole.php?action=move&fid=$fid&deltid=$tid 'title='移动帖子'>移动</a>]
 - [<a href='mawhole.php?action=copy&fid=$fid&deltid=$tid 'title='复制帖子'>复制</a>]
 
  复制代码 在其中插入一行- [<a href='masingle.php?action=downtobottom&fid=$fid&tid=$tid' title='帖子沉底'>沉底</a>]
 
  复制代码 
四、打开当前模板中的thread.htm,找到- [<a href='masingle.php?action=digest&fid=$thread[fid]&tid=$thread[tid]' title='加入精华帖'>精</a>
 - <a href='masingle.php?action=lock&fid=$thread[fid]&tid=$thread[tid]' title='锁定帖子不让会员再回复帖子'>锁</a>
 - <a href='masingle.php?action=headtopic&fid=$thread[fid]&tid=$thread[tid]' title='置顶主题:将主题置顶,以便会员查看'>顶</a>
 - <a href='masingle.php?action=pushtopic&fid=$thread[fid]&tid=$thread[tid]' title='提前帖子'>提</a>
 - <a href='masingle.php?action=edit&fid=$thread[fid]&tid=$thread[tid]' title='编辑标题'>亮</a>]
 
  复制代码 在其中插入- <a href='masingle.php?action=downtobottom&fid=$thread[fid]&tid=$thread[tid]' title='将帖子沉底'>沉</a>
 
  复制代码 
好,搞定,大家可以测试一下。不过此功能要版主以上权限才能实现 |   
 
 
 
 |