標題:
全局固定主題、區域重要主題、本區推薦主題for 6.0(修改少一條線代碼)
[打印本頁]
作者:
admin
時間:
2007-11-17 08:08
標題:
全局固定主題、區域重要主題、本區推薦主題for 6.0(修改少一條線代碼)
其實我是看了有2、3版本,覺得固定主題、重要主題、推薦主題蠻不錯
而我個人蠻喜歡固定、重要、推薦,所以就從官方轉帖到我自己論壇收藏
以免要找的時候找來找去找不到 真是抱歉~忘了修正
1.修改:forumdisplay.htm模版
查找:
<!--{if $separatepos == $key + 1}-->
</table>
<table summary="forum_$fid"
id="forum_$fid" cellspacing="0" cellpadding="0">
<thead
class="separation">
<tr><td> </td><td> </td><td
colspan="4">{lang forum_normal_threads}</td></tr>
</thead>
<!--{/if}-->
複製代碼
替換為:
<!-- 三級置頂分開 -->
<!--{if $tr != $thread['displayorder']}-->
<tr class="category"><td> </td><td colspan="6">
<!--{if $thread['displayorder'] == 1}-->
<thead class="separation">
<tr><td>空格</td><td>空格</td><td colspan="4"><font color=Green><b>推薦主題</b></font>
</thead>
<!--{elseif $thread['displayorder'] == 2}-->
<thead class="separation">
<tr><td>空格</td><td>空格</td><td colspan="4"><font color=Brown><b>重要主題</b></font>
</thead>
<!--{elseif $thread['displayorder'] == 3}-->
<thead class="separation">
<tr><td>空格</td><td>空格</td><td colspan="4"><font color=red><b>固定主題</b></font>
</thead>
</b><!--{else}-->
<thead class="separation">
<tr><td>空格</td><td>空格</td><td colspan="4"><font color=#000000><b>{lang forum_normal_threads}</b></font>
</thead>
<!--{/if}-->
</td></tr>
<!--{eval $tr = $thread['displayorder'];}-->
<!--{/if}-->
<!-- 三級置頂分開 -->
複製代碼
DZ6的quote代碼好像存在問題,注意在替換上面一段後繼續將
空格
這兩個字替換為
複製代碼
歡迎光臨 沙仕網 (http://www.sas.tw/sas/)
Powered by Discuz! 7.0.0