功能介绍与截图: 参:https://discuz.dismall.com/thread-2290294-1-1.html
重做fro X2.5的。
数据库执行:
CREATE TABLE IF NOT EXISTS `pre_forum_thread_admin_reply` (
`tid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`pid` int(10) unsigned NOT NULL,
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`dateline` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`tid`,`pid`)
) ENGINE=MyISAM
修改:source\module\forum\forum_forumdisplayl.php
697行:- $thread['lastpost'] = dgmdate($thread['lastpost'], 'u');
- //显示版主回复
- if(DB::result_first("SELECT count(*) FROM ".DB::table('forum_thread_admin_reply')." WHERE tid='$thread[tid]'")>=1){
- $thread['admin_reply'] = 1;
- }else{
- $thread['admin_reply'] = 0;
- }
复制代码 修改:source\inclued\post\post_newreply.php
429行:- if($_G['forum']['ismoderator'] || $thread['isgroup']){
- DB::query("INSERT INTO ".DB::table('forum_thread_admin_reply')." value($_G[tid],$pid,$_G[uid],'$_G[timestamp]');");
- }
复制代码 模版修正:
template\default\forum\forumdisplay_list.htm
151行- <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="xst" >$thread[subject]</a>
- <!--增加图标-->
- <!--{if $thread['admin_reply']}--> <img src="{IMGDIR}/admin_reply.gif" align="absmiddle" /> <!--{/if}-->
复制代码 载入图片到static\image\common\admin_reply.gif
图片原帖中那个就好
以上
看的懂就用吧
|