scotty2260
02-15-2006, 11:01 PM
I just switched from 3.0.8 to 3.5, and now my site can't get the $bbuserinfo variable from global.php anymore?
Did they switch something?
here is the code I was using:
<?php
chdir('./forum');
require_once('forum/global.php');
chdir('./../');
extract ($bbuserinfo);
?>
noppid
02-16-2006, 05:32 AM
In the php files it's now in an object.
$vbulletin->userinfo
$vbulletin->userinfo['userid']
And so forth...
scotty2260
02-16-2006, 10:48 AM
awesome, that worked! thank you!
One thing though, the page loads, but at the bottom of the page I get this error:
Fatal error: Call to a member function on a non-object in /home/mousegu/public_html/forum/includes/functions.php on line 4303
It doesn't seem to mess anything up, so is there anyway to stop it from showing or fix it?
noppid
02-16-2006, 11:16 AM
It's still $bbuserinfo in templates. Could that be the issue? Using the object in a template?
I assume you did not edit functions.php?
scotty2260
02-16-2006, 06:02 PM
no, I didn't edit functions.php. i dont even know what it does?
I am using the script on pages outside of the forum directory, and the only code the pages use is what I posted above.
scotty2260
02-16-2006, 06:58 PM
Ok, I just went to line 4303 and put a @ in front of the code. works fine now.
no harm no foul i guess.