版塊列表分類(全局置頂/分類置頂/本版置頂)
1.開啟"template/default/forum/forumdisplay_list.htm"檔案(依風格有所不同)尋找
<tbody id="$thread">
2.於下方添加
<!--{if $tr != $thread['displayorder']}-->
<!--{if $thread['displayorder'] == 1}-->
<tbody>
<tr class="ts">
<td> </td>
<!--{if $_G['forum']['ismoderator'] && !$_GET['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'] && !$_GET['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'] && !$_GET['gp_archiveid']}--><td></td><!--{/if}-->
<td colspan="4"> <font color=red><b>全局置頂</b></font></td>
</tr>
</tbody>
<!--{/if}-->
<!--{eval $tr = $thread['displayorder'];}-->
<!--{/if}-->
3.儲存與覆蓋檔案
4.更新緩存
頁:
[1]