Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Nov 2007, 09:44
zardos zardos is offline
 
Join Date: Apr 2006
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?
Reply With Quote
  #2  
Old 21 Nov 2007, 09:49
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
have you tried to put global $vbulletin; at beginning of the function?

function wordpress whatever() {
global $vbulletin;

makesomething;
}
Reply With Quote
  #3  
Old 21 Nov 2007, 13:26
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
I tend to access it with $GLOBALS['vbulletin']
__________________
administrator: visordown.com
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:57.

Layout Options | Width: Wide Color: