A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 程序插件 > Discuz!插件 > 版主管理留言插件 for Discuz!7.0(GBK版)
版主管理留言插件 for Discuz!7.0(GBK版)

版主管理留言插件 for Discuz!7.0(GBK版)

  • 软件大小:11 KB
  • 软件语言:简体中文
  • 更新时间:2010-09-19
  • 软件类型:国产软件 / Discuz!插件
  • 运行环境:Linux/2003/PHP
  • 软件授权:免费软件
  • 官方主页:http://
  • 软件等级 :
  • 软件厂商:zhangyi
立即高速安全下载
  • 介绍说明
  • 下载地址
  • 精品推荐
  • 相关软件
  • 网友评论

插件名称:版主管理留言 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&amp;fid=$fid&amp;tid=$tid&amp;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']);


 

下载地址

  • PC版

本地下载

相关软件

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

本类排名

本类推荐

装机必备

换一批

相关资讯

公众号