View Full Version : [Need Help] Show {vb:raw post.reputation} in everywhere
hoangserip
03-23-2011, 08:04 PM
Hi all,
I want show {vb:raw post.reputation} in Forumhome, Memberinfo, ... but it no work :((
Please help me, thank you so much !!! :)
Lynne
03-23-2011, 09:15 PM
$post is only used int he postbit templates. The variable name is different in different templates. You will need to look in the templates and get the variable name. Then also check the query and make sure the reputation field was grabbed there or you will need to add it to the query.
hoangserip
03-23-2011, 09:30 PM
Thanks Lynne!!!
But i want show in Forumhome and Memberinfo, how to add query?
Lynne
03-23-2011, 10:31 PM
You may not need a query if the info is already available.
You really need to be more specific though. On the forumhome, where are you going to put this? And who's reputation are you going to show? and exactly where? Same thing with the memberinfo page - who's reputation and exactly where? Have you looked in the templates for the variables? What have you tried and where?
hoangserip
03-24-2011, 07:43 AM
Thanks Lynne, please view attach :)
Lynne
03-24-2011, 03:18 PM
You are talking about different users for each place. For the Welcome box, you are wanting the reputation of *you*, so $bbuserinfo[reputation] and on the member page, you want it for that member - you'll have to look in the template and find that variable name since I can't remember it (userinfo or prepared or something like that).
hoangserip
03-24-2011, 05:01 PM
oh yeah, thanks Lynne so much, it work perfect!!!
Thr33
02-02-2012, 11:59 PM
Im trynna get this to work in the header template. Tried a few things n cant seem to the find right string...
{vb:raw bbuserinfo.reputation}
{vb:raw session.reputation}
{vb:raw userinfo.reputation}
trynna put it directly after the Welcome, $username. Any help?
Lynne
02-03-2012, 03:57 AM
If any of those are going to work, it would be {vb:raw bbuserinfo.reputation}. But I can't remember the variable name used in the header template, so you will need to look that up and adjust the variable name as needed.
Thr33
02-06-2012, 04:56 AM
Thanks Lynne, {vb:raw bbuserinfo.reputation} worked. For some odd reason (probably a typo) it didnt work the first time i tried it lol.
nyenius
08-23-2012, 11:42 PM
I've posted a question like this here https://vborg.vbsupport.ru/showthread.php?p=2359478
the different is, I want to show give reputation button in forumdisplay, not the reputation point or rep bar.
--------------- Added 1345769505 at 1345769505 ---------------
$post is only used int he postbit templates. The variable name is different in different templates. You will need to look in the templates and get the variable name. Then also check the query and make sure the reputation field was grabbed there or you will need to add it to the query.
where to check the query?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.