美观修改Discuz7的“评分”

Disucz 7.0开始,评分这个选项,一直“躲”在下面不起眼的位置,如果论坛着重评分的话,就需要修改成这样美观的方式:

Photobucket

这样看起来,是不是美观很多?

具体的修改办法是:

1、打开templates/default/viewthread_node.htm,查找:<div>

<a href=”javascript:;” onclick=”showDialog($(‘favoritewin’).innerHTML, ‘info’, ‘{lang thread_favorite}/{lang thread_attention}’)”>{lang thread_favorite}</a>

<a href=”javascript:;” id=”share” onclick=”showDialog($(‘sharewin’).innerHTML, ‘info’, ‘{lang thread_share}’)”>{lang thread_share}</a>

替换为

<style>.nrate{width:400px}</style>

<div>

<a href=”javascript:;” onclick=”showDialog($(‘favoritewin’).innerHTML, ‘info’, ‘{lang thread_favorite}/{lang thread_attention}’)”>{lang thread_favorite}</a>

<a href=”javascript:;” id=”share” onclick=”showDialog($(‘sharewin’).innerHTML, ‘info’, ‘{lang thread_share}’)”>{lang thread_share}</a>

<a id=”ratelink” {if $discuz_uid}href=”misc.php?action=rate&amp;tid=$tid&amp;pid=$post[pid]” onclick=”showWindow(‘rate’, this.href);return false;”{else}href=”logging.php?action=login” onclick=”showWindow(‘login’, this.href);return false;”{/if}>{lang rate}</a>

打开templates/default/css_common.htm文件,在最底部加入:

#ratelink { background-position: 0 -100px; }

This entry was posted in 程序 and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>