The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am adding a mod to a player's profile. I added a plugin and have it showing, but I don't know how to get the name of the person who's profile you are viewing. Like $vbulletin->userinfo['username'] is for your username, how do I get the username of the person who's profile your viewing
Using 3.6.9 |
#2
|
||||
|
||||
![]()
I believe it is just plain $userinfo['username'] or actually just $userinfo[username] (no single quotes) if you are using it in the template.
$vbulletin->userinfo['username'] and $bbuserinfo['username'] would be of the person *doing* the viewing - you in this case. |
#3
|
|||
|
|||
![]()
What about outside the template
|
#4
|
||||
|
||||
![]()
I think it's without the single-quotes in a plugin and with the single-quotes in the template. (I always just try it and see.)
|
#5
|
|||
|
|||
![]()
PHP: [minicode]$userinfo['username'][/minicode]
Templates: [minicode]$userinfo[username][/minicode] |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|