不少站長髮現如果帖子太長編輯帖子比較麻煩,得在主題帖底部才能找到編輯的連結,那麼在上方也加一個就很有必要了。
編輯 template/default/forum/viewthread.htm 檔案,137 行左右
<!--{if $allowpusharticle && $allowpostarticle}--><!--{eval $modopt++}--><a href="portal.php?mod=portalcp&ac=article&from_idtype=tid&from_id=$_G%5B'tid'%5D">{lang modmenu_pusharticle}</a><span >|</span><!--{/if}-->
在下方插入如下程式碼:
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <=$post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && ($post['authorid'] == $_G['uid'] && $_G['forum_thread']['closed'] == 0) && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
<a href="forum.php?mod=post&action=edit&fid=$_G%5Bfid%5D&tid=$_G%5Btid%5D&pid=$post%5Bpid%5Dif%20!empty($_GET%5Bmodthreadkey%5D)&modthreadkey=$GET%5Bmodthreadkey%5D/if&page=$page"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
<!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid'] && $_G['setting']['postappend']}-->
<a href="forum.php?mod=misc&action=postappend&tid=$post%5Btid%5D&pid=$post%5Bpid%5D&extra=$_GET%5Bextra%5D&page=$page" onClick="showWindow('postappend', this.href, 'get', 0)">{lang postappend}</a>
<!--{/if}-->
