The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$userinfo in plugin?
What is the equivalent of $userinfo outside of the templating system? $vbulletin->userinfo is actually $bbuserinfo from what I can tell.
I'm trying to get $userinfo->[field8] in one of my plugins, but all I can access is the actual logged in user (usually $bbuserinfo) as $vbulletin->userinfo. I wish there was a general howto for something like this. |
#2
|
|||
|
|||
What part of the site are you trying to access the information in?
|
#3
|
|||
|
|||
User Profile (member.php)
|
#4
|
||||
|
||||
Use either one from:
Code:
$userinfo['field8'] $prepared['field8'] |
#5
|
|||
|
|||
wow... that easy...
So $vbulletin->userinfo is the logged in user and $userinfo is the page of the currently viewed user... just to clarify for others. I'm guessing this is the case for site wide (although $userinfo wouldn't be defined unless we were on a member page) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|