实现三级置顶分成:总置顶主题、区域置顶主题、本区推荐主题for 6.0
插件名称:实现三级置顶分成:总置顶主题、区域置顶主题、本区推荐主题
适合版本:Discuz 6.0正式版
数据库升级:无
修改模板:1个
难易程度:容易
演示地址:http://bbs.151733.com
1.修改:forumdisplay.htm模版
首先必须把全角&换成半角&
查找:<!--{if $separatepos == $key + 1}-->
</table>
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4">{lang forum_normal_threads}</td></tr>
</thead>
<!--{/if}--> 替换为:<!-- 三级置顶分开——http://bbs.151733.com--->
<!--{if $tr != $thread['displayorder']}-->
<tr class="category"><td> </td><td colspan="6">
<!--{if $thread['displayorder'] == 1}-->
<thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=#000000><b>本版置顶</b></font>
</thead>
<!--{elseif $thread['displayorder'] == 2}-->
<thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=#000000><b>分类置顶</b></font>
</thead>
<!--{elseif $thread['displayorder'] == 3}-->
<thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=#000000><b>全局置顶</b></font>
</thead>
</b><!--{else}-->
<thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td></td><td colspan="4"><font color=#000000><b>{lang forum_normal_threads}</b></font>
</thead>
<!--{/if}-->
</td></tr>
<!--{eval $tr = $thread['displayorder'];}-->
<!--{/if}-->
<!-- 三级置顶分开——http://bbs.151733.com---> 效果图:
[ 本帖最后由 poemsea 于 2007-8-30 12:49 编辑 ] |