贴内美化 FOR Discuz!6.0.0 RC1[楼主/沙发/板凳/地毯]
说明:后台设置有,但你如果设置了三个那就显示3个名字其他的都是4#,5#什么的,但是这个是全部显示第几楼的,喜欢的改!
通过此修改可以使1到4楼分别显示为 楼主/沙发/板凳/地毯 从第5楼开始正常显示为第5楼、第6楼……第n楼……,增加趣味性。
打开 templates/default/viewthread.htm
找到
<!--{if !empty($postno[$post])}-->$postno[$post]<!--{else}-->{$post}{$postno}<!--{/if}-->
替换成
<!--{if $post[\'number\']==1}-->
<a href=\"###\" class=\"bold\" title=\"{lang post_copylink}\" onclick=\"setcopy(\'{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post\', \'{lang post_copied}\')\"><font color=red>楼主</font></a>
<!--{elseif $post[\'number\']==2}-->
<a href=\"###\" class=\"bold\" title=\"{lang post_copylink}\" onclick=\"setcopy(\'{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post\', \'{lang post_copied}\')\"><font color=green>沙发</font></a>
<!--{elseif $post[\'number\']==3}-->
<a href=\"###\" class=\"bold\" title=\"{lang post_copylink}\" onclick=\"setcopy(\'{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post\', \'{lang post_copied}\')\"><font color=blue>板凳</font></a>
<!--{elseif $post[\'number\']==4}-->
<a href=\"###\" class=\"bold\" title=\"{lang post_copylink}\" onclick=\"setcopy(\'{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post\', \'{lang post_copied}\')\"><font color=DarkRed>地毯</font></a>
<!--{else}-->
<a href=\"###\" class=\"bold\" title=\"{lang post_copylink}\" onclick=\"setcopy(\'{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post\', \'{lang post_copied}\')\"><font color=blue>第$post[\'number\']楼</font></a>
<!--{/if}-->
页:
[1]