分类分类
大小:11 KB更新:2026-10-06
类别:Discuz!插件系统:Linux/2003/PHP
插件名称:版主管理留言 for D7.0.0 GBK版
适用版本: Discuz 7.0
作 者:BBS2ME 猫仔(阿狗狗)
1.升级数据库
ALTER TABLE `cdb_posts` ADD `remarks` MEDIUMTEXT NOT NULL;
反安装语法
ALTER TABLE `cdb_posts` DROP `remarks`;
2.上传所有文件
3.修改文件
viewthread.php
搜寻
$postlist[$post['pid']] = viewthread_procpost($post);
上面贴上
foreach(explode('<BR>', substr(stripslashes($post['remarks']), 4)) as $remarkkey => $remark)
if($remark) $post[$newremarks] .= '<li>'.($forum['ismoderator'] ? '<a href="remarks.php?submit=del&tid='.$tid.'&pid='.$post['pid'].'&page='.$page.'&delete='.$remarkkey.'">[删]</a> ' : '').str_replace(': <font color=', ': <font color=', discuzcode($remark,0,0,1,1,1,1)).'</li>';
$post['remarks'] = $post[$newremarks];
templates/default/viewthread_node.htm
搜寻
<!--{if (($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)) && ($thread['digest'] >= 0 || !$post['first'])}-->
<a class="editpost" href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post[pid]"{if !$post['first'] || !$threadsort && !$thread['special']} onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;"{/if}>{lang edit}</a>
<!--{/if}-->
下面贴上
<!--{if $forum['ismoderator']}--><a href="remarks.php?tid=$tid&pid=$post[pid]&page=$page"><img border="0" src="images/common/remarks.gif">管理留言</a></img><!--{/if}-->
搜寻
<!--{if $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))}-->
上面贴上
<!--{if $post['remarks']}--><fieldset><legend>[版主管理留言]</legend><ul>$post[remarks]</ul></fieldset><br /><!--{/if}-->
templates/default/forumdisplay.htm
搜寻
<!--{if $thread['readperm']}--> - [{lang readperm} <span class="bold">$thread[readperm]</span>]<!--{/if}-->
下面贴上
<!--{if $thread['remarks']}--><img src="images/common/remarks.gif" id="$thread[tid]_remarks" onmouseover="showMenu(this.id)" /><div title="menu" class="popupmenu_popup" id="$thread[tid]_remarks_menu" style="display: none;"><div class="popupmenu_option" style="text-align: left;">$thread[remarks]</div></div><!--{/if}-->
找forumdisplay.php
搜寻(4处)
SELECT t.* FROM {$tablepre}threads t
换成
SELECT t.*, p.remarks FROM {$tablepre}threads t LEFT JOIN {$tablepre}posts p ON t.tid=p.tid AND p.first='1'
搜寻
$thread['lastposterenc'] = rawurlencode($thread['lastposter']);
下面贴上
$thread['remarks'] = stripslashes($thread['remarks']);
百度网盘绿色免安装版其它工具366.81 MBv7.37.0.5官方版2026-06-19
下载娱乐大富翁 论坛游戏(带股市功能)插件 for Discuz!7.0 繁体UTF8Discuz!插件776 KB2026-07-06
下载娱乐大富翁论坛游戏(带股市功能)插件 for Discuz!7.0 BIG5Discuz!插件771 KBv1.22026-07-06
下载发帖时默认禁用url识别 for discuz7Discuz!插件4 KB2026-07-06
下载首页边栏QQ强行聊天插件 for Discuz!7.0 GBKDiscuz!插件4 KB2026-07-06
下载天使房产插件 for Discuz!7.0Discuz!插件409 KBv1.0 GBK2026-07-06
下载GBK多功能论坛多媒体插件 for Discuz!7.0Discuz!插件257 KB2026-07-06
下载会员N天未登录邮件提示插件 for Discuz! 7.2 GBK UTF8 BIG5Discuz!插件0.1 MB2026-07-06
下载phpdisk网盘 Mini版Discuz!插件986.52 KBv3.1 UTF8 build201411072026-07-06
下载组图插件 For Discuz!7.0Discuz!插件29 KBv2.6Beta2 GBK2026-07-06
下载社区茶坊 for DiscuzDiscuz!插件328 KBv7.0(带后台聊天室)2026-07-06
下载Discuz!亮剑打卡签到系统Discuz!插件28 KBv2.6.22026-07-06
下载Alexa 走势图插件 for discuz 7.0Discuz!插件3 KB2026-07-06
下载