貼一個自己寫的簡單的精華 :
修改模板 SHOWTHREAD
搜尋 :
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite">
前面加入 :
<!-- EC added -->
<if condition="$show['ratethread2']">
<div>----<img class="inlineimg" src="$stylevar[imgdir_rating]/rating_6.gif" alt=精華文章/><label for="vote6"><input type="radio" name="vote" id="vote6" value="6" $votechecked[6] />精華</label></div></if>
<!-- added end-->
------------------------------------------------------------
修改 showthread.php
搜尋 :
$show['ratethread'] = iif($show['threadrating'] AND (!$threadinfo['vote'] OR $vboptions['votechange']), true, false);
後面加入 :
///////////////////// EC Added
$show['ratethread2'] = iif($show['threadrating'] AND (!$threadinfo['vote'] OR $vboptions['votechange']) AND can_moderate($forumid),true, false);
//////////////////////////////////////
------------------------------------------------------------
修改 threadrate.php
搜尋 :
if ($vote < 1 OR $vote >5)
改成 :
///////////////////// EC Added
//if ($vote < 1 OR $vote >5)
if ($vote < 1 OR $vote >6)
//////////////////////////////////////
|