修改方法:

打开 template/default/forum/viewthread_node_body.htm 文件查找 (如果自己第三方模板中也有这个文件,那就修改第三方模板目录下的该文件)

  1. <table >
  2. <tr>
  3. <th width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}">{lang have} <span ><!--{echo count($postlist[$post[pid]][totalrate]);}--></span> {lang people_score}</a></th>
  4. <!--{loop $post['ratelogextcredits'] $id $score}-->
  5. <th width="50"><i>{$_G['setting']['extcredits'][$id][title]}</i></th>
  6. <!--{/loop}-->
  7. <th>
  8. <a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post[pid]', this);" ><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
  9. <i>{lang reason}</i>
  10. </th>
  11. </tr>
  12. <tbody >
  13. <!--{loop $post['ratelog'] $uid $ratelog}-->
  14. <tr id="rate_{$post[pid]}_{$uid}">
  15. <td>
  16. <a href="home.php?mod=space&uid=$uid" target="_blank" c="1"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a>
  17. </td>
  18. <!--{loop $post['ratelogextcredits'] $id $score}-->
  19. <!--{if $ratelog['score'][$id] > 0}-->
  20. <td > + $ratelog[score][$id]</td>
  21. <!--{else}-->
  22. <td >$ratelog[score][$id]</td>
  23. <!--{/if}-->
  24. <!--{/loop}-->
  25. <td >$ratelog[reason]</td>
  26. </tr>
  27. <!--{/loop}-->
  28. </tbody>
  29. </table>
  30. <p >
  31. {lang rate_total}:
  32. <!--{loop $post['ratelogextcredits'] $id $score}-->
  33. <!--{if $score > 0}-->
  34. <span >{$_G['setting']['extcredits'][$id][title]} + $score</span>
  35. <!--{else}-->
  36. <span >{$_G['setting']['extcredits'][$id][title]} $score</span>
  37. <!--{/if}-->
  38. <!--{/loop}-->
  39. <a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}" >{lang rate_view}</a>
  40. </p>

替换为:

  1. <style type="text/css">
  2. <!--
  3. .ratl img { border:1px solid #CCCCCC; height:20px; padding:2px; width:20px; }
  4. -->
  5. </style>
  6. <table style="border:1px solid #CCCCCC;">
  7. <tr bgcolor="#efeeee">
  8. <th width="3"></th>
  9. <th width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}">{lang have} <span ><!--{echo count($postlist[$post[pid]][totalrate]);}--></span> {lang people_score}</a></th>
  10. <!--{loop $post['ratelogextcredits'] $id $score}-->
  11. <th width="50"><i>{$_G['setting']['extcredits'][$id][title]}</i></th>
  12. <!--{/loop}-->
  13. <th>
  14. <a href="javascript:;" onclick="toggleRatelogCollapse('ratelog_$post[pid]', this);" ><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
  15. <i>{lang reason}</i>
  16. </th>
  17. </tr>
  18. <tbody >
  19. <!--{loop $post['ratelog'] $uid $ratelog}-->
  20. <tr id="rate_{$post[pid]}_{$uid}">
  21. <td width="3"></td>
  22. <td>
  23. <a href="home.php?mod=space&uid=$uid" target="_blank" c="1"><!--{echo avatar($uid, 'small');}--></a> <a href="home.php?mod=space&uid=$uid" target="_blank">$ratelog[username]</a>
  24. </td>
  25. <!--{loop $post['ratelogextcredits'] $id $score}-->
  26. <!--{if $ratelog['score'][$id] > 0}-->
  27. <td > + $ratelog[score][$id]</td>
  28. <!--{else}-->
  29. <td >$ratelog[score][$id]</td>
  30. <!--{/if}-->
  31. <!--{/loop}-->
  32. <td >$ratelog[reason]</td>
  33. </tr>
  34. <!--{/loop}-->
  35. </tbody>
  36. </table>
  37. <p style="border: 1px solid #cccccc; border-top:none;background-color:#efeeee;padding-left:5px;">
  38. {lang rate_total}:
  39. <!--{loop $post['ratelogextcredits'] $id $score}-->
  40. <!--{if $score > 0}-->
  41. <span >{$_G['setting']['extcredits'][$id][title]} + $score</span>
  42. <!--{else}-->
  43. <span >{$_G['setting']['extcredits'][$id][title]} $score</span>
  44. <!--{/if}-->
  45. <!--{/loop}-->
  46. <a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" onclick="showWindow('viewratings', this.href)" title="{lang rate_view}" >{lang rate_view}</a>