PDA

View Full Version : Replace rep image with text issue


Charlie98902
01-11-2010, 09:47 PM
I am using this code but seem to can't get it to close right. Any help would be great.

<vb:if condition="$show['reputation']">
<div>
<vb:if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span><br /></vb:if>
<span id="repdisplay_$post[postid]_$post[userid]">$vbphrase[reputation]: <vb:if condition="$post[showreputation]"><font color=<vb:if condition="$post[reputation]>0">"green"<else /><vb:if condition="$post[reputation]<0">"red"<else />"gray"</vb:if></vb:if> title="$post[username] $post[level]"><b>$post[reputation]</b></font><else />hidden</vb:if
</div>
</vb:if>

The original code didn't have the vb:if but just the if and that won't work obviously.

Charlie98902
01-16-2010, 01:40 AM
I am shocked for no answers. Giving a bump and see what's wrong with the coding.

stefano9lli
01-18-2010, 11:21 AM
i've found that
{vb:raw post.reppower}
but it doesn't work 'coz it depend from $show['reppower'] variable.
:(