PDA

View Full Version : make $vbulletin-> global?


zardos
11-21-2007, 07:44 AM
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?

ragtek
11-21-2007, 07:49 AM
have you tried to put global $vbulletin; at beginning of the function?

function wordpress whatever() {
global $vbulletin;

makesomething;
}

UK Jimbo
11-21-2007, 11:26 AM
I tend to access it with $GLOBALS['vbulletin']