The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
make $vbulletin-> global?
Hi, am trying to use $vbulletin->userinfo['usernamne']; within a wordpress function, it works outside of the function but not inside, and i cant send it. So I need to make it global.
I tried echo global $vbulletin->userinfo['usernamne']; but no luck, some one have any tips? |
#2
|
|||
|
|||
have you tried to put global $vbulletin; at beginning of the function?
function wordpress whatever() { global $vbulletin; makesomething; } |
#3
|
||||
|
||||
I tend to access it with $GLOBALS['vbulletin']
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|