Psyd0x
12-04-2011, 12:21 PM
How do I do that if the feedback score above 0 the score will be green, and if the feedback score below 0, the score will be red?
thanks for answer here is my code.
<b>
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_left'"><span class="usertitle">
{vb:rawphrase itrader_feedback_score} <vb:if condition="$show['rateinfolink']"><a title="{vb:rawphrase itrader_total_feedback}"href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw post.userid}"></vb:if>{vb:raw post.itrader_total}<vb:if condition="$show['rateinfolink']"></a></vb:if><vb:if condition="$post['itrader_total']"> ({vb:raw post.itrader_pcnt}%)</vb:if></span>
<vb:else />
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_right'"><dl class="userinfo_extra"></vb:if>
<dt>{vb:rawphrase itrader_feedback_score}</dt><dd><vb:if condition="$show['rateinfolink']"><a title="{vb:rawphrase itrader_total_feedback}" href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw post.userid}"></vb:if>{vb:raw post.itrader_total}<vb:if condition="$show['rateinfolink']"></a></vb:if><vb:if condition="$post['itrader_total']"> ({vb:raw post.itrader_pcnt}%)</vb:if></dd>
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_right'"></dl></vb:if></b>
</vb:if>
thanks for answer here is my code.
<b>
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_left'"><span class="usertitle">
{vb:rawphrase itrader_feedback_score} <vb:if condition="$show['rateinfolink']"><a title="{vb:rawphrase itrader_total_feedback}"href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw post.userid}"></vb:if>{vb:raw post.itrader_total}<vb:if condition="$show['rateinfolink']"></a></vb:if><vb:if condition="$post['itrader_total']"> ({vb:raw post.itrader_pcnt}%)</vb:if></span>
<vb:else />
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_right'"><dl class="userinfo_extra"></vb:if>
<dt>{vb:rawphrase itrader_feedback_score}</dt><dd><vb:if condition="$show['rateinfolink']"><a title="{vb:rawphrase itrader_total_feedback}" href="{vb:raw vboptions.bburl}/itrader.php?{vb:raw session.sessionurl}u={vb:raw post.userid}"></vb:if>{vb:raw post.itrader_total}<vb:if condition="$show['rateinfolink']"></a></vb:if><vb:if condition="$post['itrader_total']"> ({vb:raw post.itrader_pcnt}%)</vb:if></dd>
<vb:if condition="$vboptions['itrader_postbit_location'] == 'postbit_userinfo_right'"></dl></vb:if></b>
</vb:if>