帖子评分明细【结合7.0+6.1评分样式】
7.0后帖子评分效果看见不少站长有意见,说不醒目,所以就修改了下模板;效果描述:保持7.0原有的评分头像和评分次数,美化头像边框,使之与UCH小头像风格一致;
评分头像下面显示每条评分的详细信息;修改步骤:
1、下载附件,解压后对应目录上传;
2、打开tempaltes/default/viewthread_node.htm文件,查找:<!--{if !empty($post[\'ratelog\'])}-->
<dl class=\\\"newrate\\\">
<dt>
<!--{if !empty($postlist[$post][\'totalrate\'])}-->
<strong><a href=\\\"misc.php?action=viewratings&tid=$tid&pid=$post\\\" onclick=\\\"floatwin(\'open_viewratings\', this.href, 600, 410);return false;\\\" title=\\\"{lang thread_rate_log_lately}\\\">{echo count($postlist[$post]);}</a></strong>
<p>{lang thread_rate_count}</p>
<!--{/if}-->
</dt>
<dd>
<ul class=\\\"s_clear\\\">
<div id=\\\"post_rate_$post\\\"></div>
<!--{loop $post[\'ratelog\'] $uid $ratelog}-->
<li>
<div id=\\\"rate_{$post}_{$uid}_menu\\\" class=\\\"attach_popup\\\" style=\\\"display: none;\\\">
<p class=\\\"cornerlayger\\\">$ratelog
<!--{loop $ratelog[\'score\'] $id $score}-->
<!--{if $score > 0}-->
<em>{$extcredits[$id]} + $score $extcredits[$id]</em>
<!--{else}-->
{$extcredits[$id]} $score $extcredits[$id]
<!--{/if}-->
<!--{/loop}-->
</p>
<p class=\\\"minicorner\\\"></p>
</div>
<p id=\\\"rate_{$post}_{$uid}\\\" onmouseover=\\\"showMenu(this.id,false,2)\\\" class=\\\"rateavatar\\\"><a href=\\\"space.php?uid=$uid\\\" target=\\\"_blank\\\">{echo discuz_uc_avatar($uid, \'small\');}</a></p>
<p><a href=\\\"space.php?uid=$uid\\\" target=\\\"_blank\\\">$ratelog</a></p>
</li>
<!--{/loop}-->
</ul>
</dd>
</dl>
<!--{else}-->
<div id=\\\"post_rate_div_$post\\\"></div>
<!--{/if}-->
<!--{/if}-->
<!--{if $post[\'first\']}-->
<!--{if $lastmod[\'modaction\']}--><div class=\\\"modact\\\"><a href=\\\"misc.php?action=viewthreadmod&tid=$tid\\\" title=\\\"{lang thread_mod}\\\" onclick=\\\"floatwin(\'open_viewthreadmod\', this.href, 600, 410);return false;\\\">{lang thread_mod_by}</a></div><!--{/if}-->
<!--{if $lastmod[\'magicname\']}--><div class=\\\"modact\\\"><a href=\\\"misc.php?action=viewthreadmod&tid=$tid\\\" title=\\\"{lang thread_mod}\\\" onclick=\\\"floatwin(\'open_viewthreadmod\', this.href, 600, 410);return false;\\\">{lang magics_logs}</a></div><!--{/if}-->
<div class=\\\"useraction\\\">
<a id=\\\"ajax_favorite\\\" {if $discuz_uid}href=\\\"my.php?item=favorites&tid=$tid\\\" onclick=\\\"ajaxmenu(event, this.id, 3000, 0)\\\"{else}href=\\\"logging.php?action=login\\\" onclick=\\\"floatwin(\'open_login\', this.href, 600, 400);return false;\\\"{/if}>{lang thread_favorite}</a>
<a id=\\\"emailfriend\\\" href=\\\"misc.php?action=emailfriend&tid=$tid\\\" onclick=\\\"floatwin(\'open_emailfriend\', this.href, 250, {if $discuz_uid}380{else}200{/if});return false;\\\">{lang thread_email_friend}</a>
<a id=\\\"ratelink\\\" {if $discuz_uid}href=\\\"misc.php?action=rate&tid=$tid&pid=$post\\\" onclick=\\\"floatwin(\'open_rate\', this.href, 250, 270);return false;\\\"{else}href=\\\"logging.php?action=login\\\" onclick=\\\"floatwin(\'open_login\', this.href, 600, 400);return false;\\\"{/if}>{lang rate}</a>
</div>
<!--{/if}-->
替换为:<!--{if !empty($post[\'ratelog\'])}-->
<dl class=\\\"newrate\\\">
<dt>
<!--{if !empty($postlist[$post][\'totalrate\'])}-->
<strong><a href=\\\"misc.php?action=viewratings&tid=$tid&pid=$post\\\" onclick=\\\"floatwin(\'open_viewratings\', this.href, 600, 410);return false;\\\" title=\\\"{lang thread_rate_log_lately}\\\">{echo count($postlist[$post]);}次</a></strong>
<!--{/if}-->
</dt>
<dd>
<ul class=\\\"s_clear\\\">
<div id=\\\"post_rate_$post\\\"></div>
<!--{loop $post[\'ratelog\'] $uid $ratelog}-->
<li>
<div id=\\\"rate_{$post}_{$uid}_menu\\\" class=\\\"attach_popup\\\" style=\\\"display: none;\\\">
<p class=\\\"cornerlayger\\\">$ratelog
<!--{loop $ratelog[\'score\'] $id $score}-->
<!--{if $score > 0}-->
<em>{$extcredits[$id]} + $score $extcredits[$id]</em>
<!--{else}-->
{$extcredits[$id]} $score $extcredits[$id]
<!--{/if}-->
<!--{/loop}-->
</p>
<p class=\\\"minicorner\\\"></p>
</div>
<div id=\\\"rate_{$post}_{$uid}\\\" onmouseover=\\\"showMenu(this.id,false,2)\\\" style=\\\"padding: 5px 0 0 0px; width: 60px; margin-right:9px; height: 60px; background: url(images/48_avatar_bg.gif) no-repeat;\\\">
<a href=\\\"space.php?uid=$uid\\\" target=\\\"_blank\\\"><img src=\\\"/uc/avatar.php?uid=$uid&size=small\\\" style=\\\"height:48px;width:48px;\\\"></a></div>
</li>
<!--{/loop}-->
</ul>
</dd>
</dl>
<div></div>
<p class=\\\"cornerlayger\\\">
<!--{loop $post[\'ratelog\'] $uid $ratelog}-->
评分人:<a href=\\\"space.php?uid=$uid\\\" target=\\\"_blank\\\">$ratelog</a>
<!--{loop $ratelog[\'score\'] $id $score}-->
<!--{if $score > 0}-->
<em>{$extcredits[$id]} + $score $extcredits[$id]</em>
<!--{else}-->
{$extcredits[$id]} $score $extcredits[$id]
<!--{/if}-->
<!--{/loop}-->
理由:$ratelog<br>
--------------------------------------------------------------------------------------------------------------------<br>
<!--{/loop}-->
</p>
<p class=\\\"minicorner\\\"></p>
<!--{else}-->
<div id=\\\"post_rate_div_$post\\\"></div>
<!--{/if}-->
<!--{/if}-->
<!--{if $post[\'first\']}-->
<!--{if $lastmod[\'modaction\']}--><div class=\\\"modact\\\"><a href=\\\"misc.php?action=viewthreadmod&tid=$tid\\\" title=\\\"{lang thread_mod}\\\" onclick=\\\"floatwin(\'open_viewthreadmod\', this.href, 600, 410);return false;\\\">{lang thread_mod_by}</a></div><!--{/if}-->
<!--{if $lastmod[\'magicname\']}--><div class=\\\"modact\\\"><a href=\\\"misc.php?action=viewthreadmod&tid=$tid\\\" title=\\\"{lang thread_mod}\\\" onclick=\\\"floatwin(\'open_viewthreadmod\', this.href, 600, 410);return false;\\\">{lang magics_logs}</a></div><!--{/if}-->
<div class=\\\"useraction\\\">
<a id=\\\"ajax_favorite\\\" {if $discuz_uid}href=\\\"my.php?item=favorites&tid=$tid\\\" onclick=\\\"ajaxmenu(event, this.id, 3000, 0)\\\"{else}href=\\\"logging.php?action=login\\\" onclick=\\\"floatwin(\'open_login\', this.href, 600, 400);return false;\\\"{/if}>{lang thread_favorite}</a>
<a id=\\\"ratelink\\\" {if $discuz_uid}href=\\\"misc.php?action=rate&tid=$tid&pid=$post\\\" onclick=\\\"floatwin(\'open_rate\', this.href, 250, 270);return false;\\\"{else}href=\\\"logging.php?action=login\\\" onclick=\\\"floatwin(\'open_login\', this.href, 600, 400);return false;\\\"{/if}>{lang rate}</a>
<a id=\\\"emailfriend\\\" href=\\\"misc.php?action=emailfriend&tid=$tid\\\" onclick=\\\"floatwin(\'open_emailfriend\', this.href, 250, {if $discuz_uid}380{else}200{/if});return false;\\\">{lang thread_email_friend}</a>
</div>
<!--{/if}-->
理由的字数能再多点嘛?在哪加?太少了,剩下的看不到
还有小头像没显示出来
jackson1 发表于 2009-3-3 23:12 http://www.lanyudongli.com/images/common/back.gif
这个功能没有任何问题,我用原版的7.0测试过,理由这个修改在 论坛的后台-全局设置-论坛功能-管理相关的里面设置文字
页:
[1]