Log in

View Full Version : Displaying reputation amount? How to


Fulla
05-27-2009, 03:12 PM
I've noticed on alot of forums, they've managed to alter the rep displayed under Usernames so it also displays the actual numerical amount. I searched around a bit for some mods, but couldn't find anything.

So basically wanted to ask if anyone knows what part of the script I need to alter in templates?

Here is a screenshot, just to further clarify what I want to change.
https://vborg.vbsupport.ru/external/2009/05/32.jpg


I'd like it to alter it so it displays - Username - Reputation Message - (Amount of Rep) -
Thx for any help.

Cryo
05-27-2009, 03:39 PM
Use $post[reputation] to display the number.

Fulla
05-27-2009, 03:57 PM
Ok I tried this:

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>

However it displays Outside the box, how can I make it inside?

BlueNinjaGo
05-27-2009, 03:58 PM
Where in the template did you put it?

Cryo
05-27-2009, 03:58 PM
Can you explain what you're trying to do?

Fulla
05-27-2009, 04:07 PM
Where in the template did you put it?

In: postbit_legacy

Can you explain what you're trying to do?

Basically when you move your cursor over someone's rep, I'd like the actual physical numerical amount to also appear in the box at the end in brackets. Example:
https://vborg.vbsupport.ru/external/2009/05/31.jpg

The code I posted above, partially works, but the rep displayed permanently appears outside the box next the rep bars.

Cryo
05-27-2009, 05:11 PM
I'm pretty sure that the $post[reputationdisplay] is constructed on the backend and spits out the final result (images + title). I haven't played it it so I can't really tell you how you would alter it to edit the title portion.