![]() |
Show Reputation Count on User public profile
This will show the number of rep points on the users public profile.
I have it set to show in the mini statistics box but you can use it anywhere! The dt class & dd class are just text formatting to make it fit in with the site. FIND in memberinfo_block_ministats Code:
<dd>$prepared[posts]</dd> Code:
<dt class="shade">Reputation Count: </dt><dd>$userinfo[reputation]</dd> Enjoy! DEMO HERE |
Updated - fixed variable so it shows rep / karma count for the user who's profile page you're viewing.
It will now work so guests can see users rep points |
thank u man
|
Thanks. Very helpful :)
Just wondering. How would I do the same in the postbit legacy template? I tried using the same functions as your code but it looks like it revolves around a different code I think for the postbit templates. My current Rep code in the postbit template. Which is just for the blobs. I want to have blobs and then the number underneath of it. Code:
<if condition="$show['reputation']"><tr bgcolor="#ececec"><td align="center" style="border:1px;border-color:#d4d4d4;border-style:double;width:160px;"> Code:
<div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></tr></td></if> |
Quote:
In Postbit FIND Code:
<div> Code:
<div> IN postbit_legacy FIND Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div> Code:
<div> This variable - $post[reputation] can be used anywhere in the postbit / postbit_legacy template so feel free to alter the layout to suit your needs. DEMO HERE |
great work man
|
Okay, what exactly do I have to edit if I want those pips to instead say Reputation: x,xxx?
|
Nice --Thanks
|
Hi I need some help, I do the edit in 3.8.3 and nothing hows up. Do I need to clear a cache or something? Maybe it does work with 3.8.3?
|
All times are GMT. The time now is 02:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|