![]() |
How can I get the username of the profile I am viewing
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 |
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. |
Quote:
|
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.)
|
PHP: [minicode]$userinfo['username'][/minicode]
Templates: [minicode]$userinfo[username][/minicode] |
All times are GMT. The time now is 02:21 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:
|