装:
代码:
打开showthread.php
查找:
if ($forum[allowratings]) {
在上面添加代码:
// Quick Reply Box start
if (($bbuserinfo['userid']!=$thread['postuserid']) and (!$getperms['canviewothers'] or !$getperms['canreplyothers'])) {
$replybox='';
} elseif (!$getperms['canview'] or (!$getperms['canreplyown'] and $bbuserinfo['userid']==$thread['postuserid'])) {
$replybox='';
} elseif (!$thread['open'] and !ismoderator($thread['forumid'],'canopenclose')) {
$replybox='';
} else {
$textareacols = gettextareawidth();
$clickysmilies = getclickysmilies();
// attachment
$maxattachsize_temp = getmaxattachsize();
if ($permissions[canpostattachment] and (!$safeupload or function_exists("is_uploaded_file"))) {
eval("\$attachmentoption = \"".gettemplate("newpost_attachment")."\";");
} else {
$attachmentoption="";
}
// attachment end
eval("\$replybox = \"".gettemplate('showthread_replybox')."\";");
}
// Quick Reply Box end
模板:
使用以下代码,新建模板showthread_replybox:
修改模板showthread:
查找:
在后面添加代码:
$replybox