View Full Version : Display user infos. How?
TheRealso0sick
11-19-2014, 12:42 AM
Hi,
I want to display some user info (taken from the postbits) on a different page on my vbulletin.
I'm talking about things like postcount, user rank, reputation..
How would I go about that?
When i try to insert something like <span>{vb:raw post.postcount}</span>
I end up having an empty span element on my page.
Why is it like that?
Can somebody help me out please?
ozzy47
11-19-2014, 12:45 AM
What page are you trying to display this on?
TheRealso0sick
11-19-2014, 12:47 AM
On every page in the "header".
I want to add some statistics up there and I'm confused because
usually it worked like that..
ozzy47
11-19-2014, 12:49 AM
No, it won't work like that, as {vb:raw post.postcount} is only available in the postbit template.
You would need to write queries for the info you want, and then register the variables to what ever template you are going to display them in.
TheRealso0sick
11-19-2014, 12:52 AM
Ugh, I guess this goes far behind my knowledge.
Is there any tip you can give me or a link on how to do this?
And once again, thank you ozzy for helping out.
ozzy47
11-19-2014, 01:02 AM
Actually now that I think about it, postcount is available in the header like this, {vb:raw bbuserinfo.posts}
As well as, user rank, reputation
TheRealso0sick
11-19-2014, 01:11 AM
Damn, thank you!
You just saved me a lot of time
Works perfectly
ozzy47
11-19-2014, 01:13 AM
Glad it's working for you.
I just had to think about it for a minute, because I remembered I added such info before, and I was pretty sure I did not add any queries. :)
TheRealso0sick
11-19-2014, 01:15 AM
Got you.
I tend to think more complicated than i actually need to too, lol.
Thanks again man
ozzy47
11-19-2014, 01:16 AM
Believe me, I waaay over think coding side of things all the time. :p
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.