更新看2楼,主要是5.X的帖内显示位置和方式
===========================
插件名称:版主标记 FOR4.x + FOR 5.x [完美终结版]
适用版本:Discuz 4.X & Discuz 5.X
插件整理:BY 肯德基
难易程度:简单
数据升级:无
模板修改:无
===========================
FOR4.x方法:
1.传附件
2.升级数据
CODE:
ALTER TABLE `cdb_posts` ADD `markid` SMALLINT( 6 ) NOT NULL ;3.topicadmin.php找
CODE:
} elseif($action == 'merge') {上面加CODE:
} elseif($action == 'mark') {
if(!submitcheck('marksubmit')) {
include template('topicadmin_mark');
} else {
$db->query("UPDATE {$tablepre}posts SET markid='$markid' WHERE pid='$pid'", 'UNBUFFERED');
showmessage('admin_succeed', "viewthread.php?tid=$tid");
}4.viewthread.htm找<!--{if $avatarshowpos == 1}-->上面的
CODE:
<td valign="top">改成CODE:
<!--{if $post[markid]}-->
<td valign="top" style="background: url(images/common/mod{$post[markid]}.gif) no-repeat top right">
<!--{else}-->
<td valign="top">
<!--{/if}-->找CODE:
<!--{if $forum['ismoderator'] || $post['authorid'] == $discuz_uid}--> <a href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post[pid]&page=$page&extra=$extra"><img src="{IMGDIR}/edit.gif" border="0" align="absmiddle" alt="{lang edit_post}"></a><!--{/if}-->上面加CODE:
<!--{if $forum['ismoderator']}--> <a href="topicadmin.php?action=mark&fid=$fid&tid=$tid&pid=$post[pid]&page=$page&extra=$extra"><img src="{IMGDIR}/mark.gif" border="0" align="absmiddle" alt="版主标记"></a><!--{/if}-->=============================附加:在主題前加 上"[版主已阅]"等字样的继续以下操作
=============================
1. 升级数据
CODE:
ALTER TABLE `cdb_threads` ADD `mark` SMALLINT( 6 ) NOT NULL ;2. topicadmin.php找
CODE:
$db->query("UPDATE {$tablepre}posts SET markid='$markid' WHERE pid='$pid'", 'UNBUFFERED');上面加CODE:
$db->query("UPDATE {$tablepre}threads SET mark='$markid' WHERE tid='$tid'", 'UNBUFFERED');3. forumdisplay.htm 找
CODE:
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a>后面加CODE:
<!------标记------->
<font color=red><!--{if $thread['mark'] == '1'}-->[版主已阅]<!--{elseif $thread['mark'] == 2}-->[版主推荐]<!--{elseif $thread['mark'] == 3}-->[一池春水]<!--{elseif $thread['mark'] == 4}-->[不敢苟同]<!--{elseif $thread['mark'] == 5}-->[严重警告]<!--{elseif $thread['mark'] == 6}-->[有待核实]<!--{elseif $thread['mark'] == 7}-->[精品好帖]<!--{elseif $thread['mark'] == 8}-->[特许批准]<!--{/if}--></font>
<!------标记------->注意:在添加此功能前已经做了标记的帖子不能在主题前显示字样,除非再重新标记。~~~~~完成~~~~~
[ 本帖最后由 肯得基 于 2006-12-5 03:00 编辑 ]





最新回复
4.viewthread.htm
(4-1) 找
CODE:
<!--{if $forum['ismoderator'] || $post['authorid'] == $discuz_uid}--> <a href="post.php?action=edit&fid=$fid&tid=$tid&pid=$post[pid]&page=$page&extra=$extra">{lang edit}</a><!--{/if}-->上面加CODE:
<!-----标记1------->(4-2) 继续找<!--{if $forum['ismoderator']}--> <a href="topicadmin.php?action=mark&fid=$fid&tid=$tid&pid=$post[pid]&page=$page&extra=$extra" alt="版主标记">标记</a><!--{/if}-->
<!------标记1------>
CODE:
<td valign="top" class="line" height="100%" style="padding-top: 10px;">替换成QUOTE:
=============================附加:在主題前加 上"[版主已阅]"等字样的继续以下操作
=============================
1. 升级数据
CODE:
ALTER TABLE `cdb_threads` ADD `mark` SMALLINT( 6 ) NOT NULL ;2. topicadmin.php找
CODE:
$db->query("UPDATE {$tablepre}posts SET markid='$markid' WHERE pid='$pid'", 'UNBUFFERED');上面加CODE:
$db->query("UPDATE {$tablepre}threads SET mark='$markid' WHERE tid='$tid'", 'UNBUFFERED');3. forumdisplay.htm找
CODE:
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a>后面加CODE:
<!------标记------->注意:在添加此功能前已经做了标记的帖子不能在主题前显示字样,除非再重新标记。<font color=red><!--{if $thread['mark'] == '1'}-->[版主已阅]<!--{elseif $thread['mark'] == 2}-->[版主推荐]<!--{elseif $thread['mark'] == 3}-->[一池春水]<!--{elseif $thread['mark'] == 4}-->[不敢苟同]<!--{elseif $thread['mark'] == 5}-->[严重警告]<!--{elseif $thread['mark'] == 6}-->[有待核实]<!--{elseif $thread['mark'] == 7}-->[精品好帖]<!--{elseif $thread['mark'] == 8}-->[特许批准]<!--{/if}--></font>
<!------标记------->
~~~~~完成~~~~~
=================================================
=================================================
QUOTE:
请将(4-2)步,重新修改(4-2) 继续
找(你可以自己找适合你的位置)
CODE:
<!--{if $post['subject']}-->下面加(有图片)<span class="bold">$post[subject]</span><br><br>
<!--{/if}-->
CODE:
<!-----标记2-------->或者加(纯文字)<div class="right">
<!--{if $post[markid]}-->
<img src="images/common/mod{$post[markid]}.gif">
<!--{/if}-->
</div>
<!------标记2------->
CODE:
<!------标记------->完成~~~~~<div class="right">
<font color=red><!--{if $post['markid'] == '1'}-->[版主已阅]<!--{elseif $post['markid'] == 2}-->[版主推荐]<!--{elseif $post['markid'] == 3}-->[一池春水]<!--{elseif $post['markid'] == 4}-->[不敢苟同]<!--{elseif $post['markid'] == 5}-->[严重警告]<!--{elseif $thread['mark'] == 6}-->[有待核实]<!--{elseif $post['markid'] == 7}-->[精品好帖]<!--{elseif $post['markid'] == 8}-->[特许批准]<!--{/if}--></font></div>
<!------标记------->
反安装
CODE:
ALTER TABLE `cdb_posts` DROP `markid` ;[ 本帖最后由 肯得基 于 2006-12-5 02:51 编辑 ]ALTER TABLE `cdb_threads` DROP `mark`;
(2006-09-10 00:36:50, Size: 41 KB, Downloads: 828)
03.GIF
但不准备用
QUOTE:
支持!!!!
收藏先..
[ 本帖最后由 fishleong 于 2006-9-10 22:41 编辑 ]
http://bbs.365future.com/viewthread.php?tid=4084
QUOTE:
什么没显示说清楚啊早晨我安装完以后,图片只显示一半!不能全部显示!
[ 本帖最后由 wlqc 于 2006-9-10 22:41 编辑 ]
Warning: main(D:\wwwroot\killfey\wwwroot\wow\./forumdata/templates/1_topicadmin_mark.tpl.php): failed to open stream: No such file or directory in D:\wwwroot\killfey\wwwroot\wow\topicadmin.php on line 793
Warning: main(): Failed opening 'D:\wwwroot\killfey\wwwroot\wow\./forumdata/templates/1_topicadmin_mark.tpl.php' for inclusion (include_path='.;c:\php4\pear') in D:\wwwroot\killfey\wwwroot\wow\topicadmin.php on line 793
什么意思啊。。。