vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




bbuserinfo change from 3.0.8 to 3.5?

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.


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum