Vbulletin Login in Sidebar
-
Hello,
I need to put in a vbulletin login on in the sidebar of my wordpress theme.
I got some code that works well alone (without wordpress) but gives errors with wp.
Here it is.
In the header before <html> I put this
$root = $_SERVER['DOCUMENT_ROOT']; $curdir = getcwd (); chdir("$root/forums/"); require("$root/forums/global.php"); chdir ($curdir); ?>
Then to get the login/welcome box I put this in
<?php if ($vbulletin->userinfo['userid']!=0) { $username= $vbulletin->userinfo['username']; echo ("<p>Welcome back, $username!<br /></p>"); } else { echo "LOGIN STUFF GOES HERE!"; } ?>
Now when I put that into wordpress it doesn’t work. I get these errors.
Warning: array_keys() expects parameter 1 to be array, null given in [path]\includes\functions.php on line 4243
Warning: Invalid argument supplied for foreach() in [path]\includes\functions.php on line 4243
Fatal error: Call to a member function query_read_slave() on a non-object in [path]\forums\includes\functions.php on line 3205
Anyone have any idea?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Vbulletin Login in Sidebar’ is closed to new replies.