1.開啟"template/default/forum/forumdisplay_list.htm"檔案(依風格有所不同)
尋找
[PHP] 純文本查看 復制代碼 <tbody id="$thread[id]">
2.於下方添加
[PHP] 純文本查看 復制代碼 <!--{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.更新緩存
|