![]() |
How to Pull Self Userinfo From Server
I'm making a blank page and I'm trying to list out information of the person. How would I do something like this...
Username: {person's username} Posts: {person's posts} You can get the idea there. I'm making a custom page with information on it, but I can't specify an exact location to look because I want it to pull the information for whoever is looking at it. If I look at the page, I want it to say xYarub with 1000 posts. Whereas if Bob is looking at it, I want it to say Bob with 200 posts. See what I'm getting at? Can this be done without extra files? Is there just a phrase or something I can use? Please help. |
Just include global.php in the top of your script. If someone is logged in, you will find all the user information in the $vbulletin->userinfo array.
|
I'm using Dream's page wrapper to do this... so the global.php would already be in there, correct? I'm not making an actual php file or anything. I'm just creating a blank page through Styles & Templates.
|
Still lookin. =\
|
Just include $vbulletin->userinfo[username] and $vbulletin->userinfo[posts] in your template.
|
That's what I've been using.
HTML Code:
<tr> View Profile: Array[username] |
Then use instead:
HTML Code:
{$vbulletin->userinfo[username]} |
Thank you very much! You're a good guy, Marco. =D
|
All times are GMT. The time now is 09:00 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:
|