The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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. |
#2
|
|||
|
|||
![]()
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.
|
#3
|
||||
|
||||
![]()
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.
|
#4
|
||||
|
||||
![]()
Still lookin. =\
|
#5
|
|||
|
|||
![]()
Just include $vbulletin->userinfo[username] and $vbulletin->userinfo[posts] in your template.
|
#6
|
||||
|
||||
![]()
That's what I've been using.
HTML Code:
<tr> <td class="tcat">$vbphrase[view_profile]<span class="normal">: $vbulletin->userinfo[username]</span></td> </tr> View Profile: Array[username] |
#7
|
|||
|
|||
![]()
Then use instead:
HTML Code:
{$vbulletin->userinfo[username]} |
#8
|
||||
|
||||
![]()
Thank you very much! You're a good guy, Marco. =D
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|