QQ截圖20120315170913.jpg

開啟 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]"
    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="" ><!--{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. </tr>
  26. <!--{/loop}-->
  27. </tbody>
  28. </table>
  29. <p >
  30. {lang rate_total}:
  31. <!--{loop $post['ratelogextcredits'] $id $score}-->
  32. <!--{if $score > 0}-->
  33. <span >{$_G['setting']['extcredits'][$id][title]} + $score</span>
  34. <!--{else}-->
  35. <span >{$_G['setting']['extcredits'][$id][title]} $score</span>
  36. <!--{/if}-->
  37. <!--{/loop}-->
  38. <a
    href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]"
    title="{lang rate_view}" >{lang rate_view}</a>
  39. </p>

替換成:

  1. <!--評分美化開始-->
  2. <div >
  3. <a ></a> 本帖評分記錄: 共<!--{echo
    count($postlist[$post[pid]][totalrate]);}--> 條 [總計: <!--{loop
    $post['ratelogextcredits'] $id $score}--><!--{if $score >
    0}-->{$_G['setting']['extcredits'][$id][title]} +
    $score<!--{else}-->{$_G['setting']['extcredits'][$id][title]}
    $score<!--{/if}--><!--{/loop}-->]
  4. [<a
    href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]"
    title="{lang rate_view}"> 檢視全部評分記錄</a>]
  5. </div>
  6. <div >
  7. <div >
  8. <!--{loop $post['ratelog'] $uid $ratelog}-->
  9. <div title="$ratelog[reason]">
  10. <a href="home.php?mod=space&uid=$uid" target="_blank"
    c="1"><img
    src="http://xiaoyao-heroes.cn/uc/avatar.php?uid=$uid&size=small"
    style="float:left; margin-right:4px; width:36px;
    height:36px"></a>
  11. <em>$ratelog[dateline]</em>
  12. <a target="_blank" href="home.php?mod=space&uid=$uid">$ratelog[username]</a>
  13. <font color="#FF6600">
  14. <!--{loop $ratelog['score'] $id $score}-->
  15. <!--{if $score > 0}-->
  16. {$_G['setting']['extcredits'][$id][title]} + $score $_G['setting']['extcredits'][$id][unit]
  17. <!--{else}-->
  18. {$_G['setting']['extcredits'][$id][title]} $score $_G['setting']['extcredits'][$id][unit]
  19. <!--{/if}-->
  20. <!--{/loop}-->
  21. </font>
  22. <em><a
    href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$uid&touid=$uid&pmid=0&daterange=2"
    onclick="hideMenu('userinfo1298');showWindow('sendpm', this.href)"
    title="發短訊息" > 傳送簡訊</a></em>
  23. <div >$ratelog[reason]</div>
  24. </div>
  25. <!--{/loop}-->
  26. </div>
  27. </div>
  28. <!--評分美化結束-->

儲存前請搜尋

  1. http://xiaoyao-heroes.cn/uc/

更改為你的 uc 位址

開啟 template/default/common/common.css 在底部新增 (如不是預設模版請先檢視你現在使用的模版有否此模版)

  1. /*評分美化*/
  2. .pjia_a { padding:0 5px; margin-left:10px; background:#FFF1D6;
    border:1px solid #F9C89A; color:#DA4901; margin-bottom:6px;
    float:left;_margin-left:5px;}
  3. .pjia_a a{ color:#DA4901}
  4. .pjia_a a:hover{ text-decoration:none}
  5. .readjiafen { width:732px;margin-left:10px; overflow:hidden; padding-bottom:5px}
  6. .readjiafenb { width:746px;cursor: default}
  7. .readjiafen_a { border:1px dotted #bebebe;_border:1px dashed
    #bebebe;background:#f8f8f8; width:356px; float:left; margin-right:6px;
    padding:2px; margin-bottom:6px; }
  8. .readjiafen_a em{ font-style:normal; float:right; font-size:10px; color:#999; padding-right:1px}
  9. .readjiafen_a:hover{ background:#fff;}
  10. .pfenico {background:url(static/image/common/pfen.png)
    no-repeat; height:14px; width:14px; display:block; float:left;
    margin:2px 4px 0 0}
  11. .pfenico2 {background:url(static/image/common/pmto.gif)
    no-repeat; height:14px; width:60px; display:block; float:left;
    margin:2px 4px 0 0;text-align:right;}

開啟 sourcemoduleforumforum_viewthread.php 查詢

  1. $postlist, $postcache, $_G['setting']['ratelogrecord']);

在下新增

  1. $ratelogs[$ratelog['pid']][$ratelog['uid']]['dateline'] = dgmdate($ratelog['dateline'],"u");

(重要) 進後臺 介面 --> 介面設定 --> 帖子內容頁 --> 是否在頁面上顯示評分理由 選擇是!儲存,並且更新快取,及更新 css
最後上傳附件