|
如何实现本版置顶、分区置顶和全局置顶三级分类分颜色显示?方法很简单,具体安装如下步骤操作即可:
打开template/default/forum/forumdisplay_list.htm找到第97行代码:
- <tbody id="$thread[id]"{if $_G['hiddenexists'] && $thread['hidden']} style='display:none'{/if}>
复制代码
在下方插入:
- <!--{if $tr != $thread['displayorder']}-->
- <!--{if $thread['displayorder'] == 1}-->
- <tbody>
- <tr class="ts">
- <td> </td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
- <td colspan="4"> <font color=Green><b>本版置顶</b></font></td>
- </tr>
- </tbody>
- <!--{elseif $thread['displayorder'] == 2}-->
- <tbody>
- <tr class="ts">
- <td> </td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
- <td colspan="4"> <font color=Blue><b>分区置顶</b></font></td>
- </tr>
- </tbody>
- <!--{elseif $thread['displayorder'] == 3}-->
- <tbody>
- <tr class="ts">
- <td> </td>
- <!--{if $_G['forum']['ismoderator'] && !$_G['gp_archiveid']}--><td> </td><!--{/if}-->
- <td colspan="4"> <font color=red><b>全局置顶</b></font></td>
- </tr>
- </tbody>
- <!--{/if}-->
- <!--{eval $tr = $thread['displayorder'];}-->
- <!--{/if}-->
复制代码
|
|