PDA

View Full Version : Display Forum Reputation Points on Navbar Template


elementsofdance
10-23-2010, 11:51 AM
Hey Guys,

I hope someone can help me out on this one. I'm not a programmer, but after trying for a few hours, I can't for the life of me figure out how to post the users reputation points number on the Forum's Template Navbar.

Is there some generic code I can implement to display the logged in users rep points on the forums Navbar?

Thanks in advance,

EOD

BirdOPrey5
10-23-2010, 12:27 PM
The code that would do it is:
$bbuserinfo[reputationdisplay]

But I'm not sure it's available in the navbar template by default.

elementsofdance
10-23-2010, 12:34 PM
Hey, thanks for the response. That code doesn't work. I don't see anything appear when I put it in the template. Am I doing something incorrect?

I'd like to basically have this following code (or a version of it) on the NAVtemplate..



<if condition="$show['reputation'] & $show['reppower']">
<tr>
<td align="right" class="time" width="50%">Rep Points:</td>
<td align="left"><span id="reppower_$post[postid]_$post[userid]">$post[reputation]</span></td>
</tr>
</if>

kh99
10-23-2010, 12:41 PM
If you haven't already, maybe try just $bbuserinfo[reputation]

elementsofdance
10-23-2010, 12:43 PM
Is that all that I type, just $bbuserinfo[reputation] and it should display? Do i have to do anything else?

**EDIT** Oh wow, it worked, awesome thank you so much lol.

kh99
10-23-2010, 12:45 PM
BTW, anything with $post is unlikely to work since that's used to hold the info for a specific post, and so won't be set in the navbar.

ETA: glad it worked.