Discuz 默认的编辑帖子按钮在帖子的下面,但是如果帖子太长编辑帖子就不太方便了,得在主题帖底部才能找到编辑的链接,那么我们就可以在顶部也加一个编辑帖子的链接,下面告诉大家方法:
打开 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['tid']">{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[fid]&tid=$_G[tid]&pid=$post[pid]{if

!empty($_GET[modthreadkey])}&modthreadkey=$GET[modthreadkey]{/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[tid]&pid=$post[pid]&extra=$_GET[extra]&page=$page"
onClick="showWindow('postappend', this.href, 'get', 0)">{lang
postappend}</a>
<!--{/if}-->

添加完成后保存即可!