PDA

View Full Version : Reputation will not show up in postbit


Lotus28
06-06-2012, 05:00 AM
Hi, I have looked everywhere and cannot figure this out. I have reputation turned on, but the little green bar/number will not show up... here is what I have in the postbit_legacy template


<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}">Reputation: {vb:raw post.reputation}</span>
</vb:if>


Can someone please help? I have spent hours on this! Thanks.

kh99
06-06-2012, 12:39 PM
What version are you running? In the latest version the reputation bar code from postbit_legacy looks like this:

<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
</vb:if>



But I think it only changed to using vb:each a few versions ago.

Lotus28
06-07-2012, 05:07 PM
Hi, how can I put the rep points to the left of the rep power bar? Here is what I have, how far off am I? Thanks!


<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}"> <vb:if condition="$show['reputation']"><div>{vb:rawphrase reptotal}: {vb:raw post.reputation}</div></vb:if>
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
</vb:if>