Discuz教程网

X2.5仿dsu评分美化(取至ARCHY`模版)

  [复制链接]
authicon dly 发表于 2012-5-5 08:45:26 | 显示全部楼层 |阅读模式
演示:
204859u2dbb4zz8eg0zr0r.jpg.thumb.jpg
修改方法开始
emplatedefault orumviewthread_node_body.htm
搜索
  1. <table class="ratl">
  2. <tr>
  3. <th class="xw1" width="120"><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}">{lang have} <span class="xi1"><!--{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:;" class="y xi2 op"><!--{if !empty($_G['cookie']['ratecollapse'])}-->{lang open}<!--{else}-->{lang pack}<!--{/if}--></a>
  9. <i>{lang reason}</i>
  10. </th>
  11. </tr>
  12. <tbody class="ratl_l">
  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"><!--{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 class="xi1"> + $ratelog[score][$id]</td>
  21. <!--{else}-->
  22. <td class="xg1">$ratelog[score][$id]</td>
  23. <!--{/if}-->
  24. <!--{/loop}-->
  25. <td class="xg1">$ratelog[reason]</td>
  26. </tr>
  27. <!--{/loop}-->
  28. </tbody>
  29. </table>
  30. <p class="ratc">
  31. {lang rate_total}:
  32. <!--{loop $post['ratelogextcredits'] $id $score}-->
  33. <!--{if $score > 0}-->
  34. <span class="xi1">{$_G['setting']['extcredits'][$id][title]} + $score</span>
  35. <!--{else}-->
  36. <span class="xg1">{$_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]" title="{lang rate_view}" class="xi2">{lang rate_view}</a>
  40. </p>
复制代码

替换为
  1. <div class="archy_rate cl">
  2. <div class="ratetotal">
  3. <ul class="rateinfo">
  4. <li><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}"><span><strong><!--{echo count($postlist[$post[pid]][totalrate]);}--></strong>参与人数</span></a></li>
  5. <!--{loop $post['ratelogextcredits'] $id $score}-->
  6. <li><span><strong>$score</strong>{$_G['setting']['extcredits'][$id][title]}</span></li>
  7. <!--{/loop}-->
  8. </ul>
  9. <ul class="rateoption">
  10. <li><a href="forum.php?mod=misc&action=viewratings&tid=$_G[tid]&pid=$post[pid]" title="{lang rate_view}" class="xi2">{lang rate_view}</a></li>
  11. </ul>
  12. </div>
  13. <div class="archy_scorelist">
  14. <ul>
  15. <!--{loop $post['ratelog'] $uid $ratelog}-->
  16. <li>
  17. <div class="archy_ratel z"><a href="home.php?mod=space&uid=$uid" c="1" target="_blank"><!--{echo avatar($uid, 'small');}--></a></div>
  18. <dl class="archy_rater z">
  19. <p class="archy_rates">$ratelog[reason]</p>
  20. <p>
  21. <a href="home.php?mod=space&uid=$uid" class="xw1" target="_blank">$ratelog[username]</a>
  22. <!--{loop $post['ratelogextcredits'] $id $score}-->
  23. <!--{if $ratelog['score'][$id] > 0}-->
  24. <span class="xi1">{$_G['setting']['extcredits'][$id][title]} +$ratelog[score][$id]</span>
  25. <!--{else}-->
  26. <span class="xi1">$ratelog[score][$id]</span>
  27. <!--{/if}-->
  28. <!--{/loop}-->
  29. </p>
  30. </dl>
  31. </li>
  32. <!--{/loop}-->
  33. </ul>
  34. </div>
  35. </div>
复制代码

保存 上传 覆蓋

\template\default\common\common.css
在底部加上
  1. /* 评分样式 */
  2. .rateinfo li, .rateinfo span { height: 50px; background: url("{IMGDIR}/rate_bg.png") no-repeat; }
  3. .archy_rate { margin-top: 60px; border-radius: 5px; border: 1px solid {COMMONBORDER}; }
  4. .archy_rate .ratetotal { position: relative; height: 35px; }
  5. .archy_rate .rateinfo { position: absolute; top: -25px; left: 10px; }
  6. .rate .rateinfo li { float: left; padding-left: 10px; margin-right: 15px; width: auto; height: 50px; }
  7. .rateinfo span { float: left; padding-right: 10px; text-align: center; color: #999; background-position: right 0; }
  8. .rateinfo strong { display: block; margin-top: 5px; font: 22px/25px "Arial"; color:#6EA804; }
  9. .xi1, .onerror{color:#6EA804;}
  10. .ratetotal .rateoption { float: right; margin-right: 3px; height: 35px; overflow: hidden; }
  11. .rateoption li { float: left; margin-left: -2px; padding: 0 7px; height: 35px; line-height: 35px; overflow: hidden; }

  12. .rate .archy_scorelist li { width: 49%; float: left; margin: 0 0 4px 4px; border: 1px dotted {COMMONBORDER}; height:auto; text-align:left; }
  13. .archy_ratel img { width: 34px; height: 34px; padding: 2px; }
  14. .archy_rater { padding-left: 6px; }
  15. .archy_rates { color: #999; }
复制代码


保存 上传 覆蓋 后台 界面风格 更新css缓存
2133525161nn45kbb115ck.png
下载此图 命名为 rate_bg.png 上传到 staticimagecommon

图片下载:
游客,如果您要查看本帖隐藏内容请回复




上一篇:经过以下步骤后,一般情况可以解决问题:
下一篇:Discuz X2.5论坛不同环境配置伪静态的方法
authicon lining3721 发表于 2012-5-5 09:09:08 | 显示全部楼层
支持一下看看。
authicon lining3721 发表于 2012-5-5 09:11:25 | 显示全部楼层
支持一下看看。
authicon 中国营销沙龙 发表于 2012-5-5 13:44:03 | 显示全部楼层
强烈支持楼主ing……我不得不顶了……
authicon 主编 发表于 2012-5-5 19:15:01 | 显示全部楼层
GOD,你图片上水印了
authicon  楼主| dly 发表于 2012-5-5 21:43:46 | 显示全部楼层
主编 发表于 2012-5-5 19:15
GOD,你图片上水印了

Oh,my god!我知错了
authicon 紫羽妃 发表于 2012-5-8 09:33:38 | 显示全部楼层
看看,这个好啊
authicon 浪子吟风 发表于 2012-5-13 22:20:00 | 显示全部楼层
我无语了…… 强烈支持楼主ing……
authicon 小何先生 发表于 2012-5-15 23:35:21 | 显示全部楼层
看到这帖子真是高兴!我无语了……
authicon 、_____二少、 发表于 2012-5-21 10:33:51 | 显示全部楼层
强烈支持楼主ing……
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 12:28

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表