贴内美化 FOR Discuz!5.5.0[楼主/沙发/板凳/地毯](修改版)
演示地址:音响中国论坛
说明:
通过此修改可以使1到4楼分别显示为 楼主/沙发/板凳/地毯 从第5楼开始正常显示为第5楼、第6楼……第n楼……,增加趣味性。
打开 templates/default/viewthread.htm
找到:
- <div class="right t_number"><a href="###" class="bold" title="{lang post_copylink}" onclick="setcopy('{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post[pid]', '{lang post_copied}')">#$post[number]</a></div>
复制代码
替换成:
- <div class="right t_number">
- <span class="bold">
- <!--{if $post['number']==1}-->
- <a href="###" class="bold" title="{lang post_copylink}" onclick="setcopy('{$boardurl}viewthread.php?tid=$tid&page=$page$fromuid#pid$post[pid]', '{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[pid]', '{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[pid]', '{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[pid]', '{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[pid]', '{lang post_copied}')"><font color=blue>第$post['number']楼</font></a>
- <!--{/if}-->
- </span>
- </div>
复制代码
更新一下缓存……完成!OK!
[ 本帖最后由 weagle 于 2007-3-18 14:31 编辑 ] |