Log in

View Full Version : Showing reputation points in 3.0.3?


Cold Steel
09-21-2004, 05:53 PM
3.0.3 gives users the additional option of hiding their reputation.

In my postbit_legacy template, I show exactly how many reputation points a user has:

Points: $post[reputation]

Is there a conditional I can use to hide that number if the user has opted to hide their reputation?

Dean C
09-21-2004, 06:12 PM
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you :)

Thanks,
- Dean

deathemperor
09-22-2004, 06:44 AM
it should be:


<if condition="$post['reputationdisplay']">$post[reputation]</if>

Cold Steel
09-22-2004, 05:12 PM
Thanks Dean C.

That conditional had no effect for me, deathemperor.

deathemperor
09-23-2004, 10:26 AM
I used <if condition="$userinfo['reputationdisplay']">$userinfo[reputation]</if> for my MEMBERINFO template and it works, replacing the userinfo with post should make it work on postbit.

Ok, I figured it out.

<if condition="$show['reputation']">$post[reputation]</if>
it should be fine

Cold Steel
09-23-2004, 07:41 PM
That's not working 100% for me.

This is what I have in my template:

<if condition="$show['reputation']">
<fieldset>
<legend><strong>Karma:</strong></legend>
Points: $post[reputation]
$post[reputationdisplay]
</fieldset>
</if>

http://asiansinc.com/forums/showpost.php?p=56&postcount=1

As you can see from the above link, the image alt tag says that I've disabled reputation. However, the actual numerical value of 30 still shows.

deathemperor
09-24-2004, 02:36 AM
now I'm lost

this is what the default postbit do to show the reputation if the user enables
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>

I also tested this but it doesn't work either

Cold Steel
09-25-2004, 12:26 AM
I did a search on vb.com, and found the answer:

<if condition="$post['showreputation']"></if>

http://www.vbulletin.com/forum/showpost.php?p=596501&postcount=8

Thanks for your time. Much appreciated.