資料來源皆為AL8
FOR Discuz! 6.1.0 UTF-8 OR BUG-5
皆由我安裝確認過
---------------------
呢個
插件可以明顯分開
公告、三個置頂同普通主題,可以清楚咁睇到佢地既分別
其實已經有會員ap328595 發了
http://www.alan888.com/Discuz/vi ... p;page=1&extra=
但也有會員 張威杰 要求發我自己改的版本,其實我早就弄了這個,只是沒時間發了,給ap328595老兄早發了
演示:
http://bbs.carrotforum.com,進入PSP區比較可以看到演示
在forumdisplay.htm找:
<form method="post" name="moderate" action="topicadmin.
php?action=moderate&fid=$fid">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0">
<thead class="category">
<tr>
<td class="folder"> </td>
<td class="icon"> </td>
<th>{lang subject}</th>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td>
</tr>
</thead>
<!--{if $page == 1 && !empty($announcement)}-->
<tbody>
<tr>
<td class="folder"><img src="{IMGDIR}/folder_common.gif" alt="announcement" /></td>
<td class="icon"> </td>
<th>{lang announcement}: <!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></th>
<td class="author">
<cite><a href="space.php?uid=$announcement[authorid]">$announcement[author]</a></cite>
<em>$announcement[starttime]</em>
</td>
<td class="nums">-</td>
<td class="lastpost">-</td>
</tr>
</tbody>
<!--{/if}-->
<!--{if $threadcount}-->
<!--{loop $threadlist $key $thread}-->
<!--{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}-->
改為:
<form method="post" name="moderate" action="topicadmin.php?action=moderate&fid=$fid">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table summary="forum_$fid" {if !$separatepos}id="forum_$fid"{/if} cellspacing="0" cellpadding="0">
<!--{if $page == 1 && !empty($announcement)}-->
</table>
<!-- 公告分開BY:開心的小孩@http://bbs.carrotforum.com -->
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td> </td><td> </td><td><font color=red><b>全壇公告</b></font>({lang subject})</td>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td></tr>
</thead>
<tbody>
<tr>
<td class="folder"><img src="{IMGDIR}/folder_common.gif" alt="announcement" /></td>
<td class="icon"> </td>
<th>{lang announcement}: <!--{if empty($announcement['type'])}--><a href="announcement.php?id=$announcement[id]#$announcement[id]" target="_blank">$announcement[subject]</a><!--{else}--><a href="$announcement[message]" target="_blank">$announcement[subject]</a><!--{/if}--></th>
<td class="author">
<cite><a href="space.php?uid=$announcement[authorid]">$announcement[author]</a></cite>
<em>$announcement[starttime]</em>
</td>
<td class="nums">-</td>
<td class="lastpost">-</td>
</tr>
</tbody>
<!-- 公告分開BY:開心的小孩@http://bbs.carrotforum.com -->
<!--{/if}-->
<!--{if $threadcount}-->
<!--{loop $threadlist $key $thread}-->
<!-- 三級置頂分開BY:開心的小孩@http://bbs.carrotforum.com -->
<!--{if $tr != $thread['displayorder']}-->
<!--{if $thread['displayorder'] == 1}-->
</table>
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td> </td><td> </td><td><font color=Green><b>本版推薦主題</b></font>({lang subject})</td>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td></tr>
</thead>
<!--{elseif $thread['displayorder'] == 2}-->
</table>
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td> </td><td> </td><td><font color=blue><b>分區推薦主題</b></font>({lang subject})</td>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td></tr>
</thead>
<!--{elseif $thread['displayorder'] == 3}-->
</table>
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td> </td><td> </td><td><font color=red><b>全壇重要主題</b></font>({lang subject})</td>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td></tr>
</thead>
<!-- 三級置頂分開BY:開心的小孩@http://bbs.carrotforum.com -->
<!-- 普通主題分開BY:開心的小孩@http://bbs.carrotforum.com -->
</b><!--{else}-->
</table>
<table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
<thead class="separation">
<tr><td> </td><td> </td><td><font color=#000000><b>本版普通主題</b></font>({lang subject})</td>
<td class="author">{lang author}</td>
<td class="nums">{lang replies}/{lang views}</td>
<td class="lastpost">{lang lastpost}</td></tr>
</thead>
<!--{/if}-->
<!--{eval $tr = $thread['displayorder'];}-->
<!--{/if}-->
<!-- 普通主題分開BY:開心的小孩@http://bbs.carrotforum.com -->