Hi Bill,
I have been literally working on this for 5 hours. I moved the forum from the subdomain of forums.supermandatabase.com to supermandatabase.com/forums to run this script.
I am running vb 3.6.4. After no success of getting the Welcome 'user' to work once logged in I created a test.php with no other code bu the code supplied in the zip file.
Here is what I have:
Code:
<?php
$curdir = getcwd ();
chdir('/home/superman/public_html/forums/');
require_once('/home/superman/public_html/forums/global.php');
chdir ($curdir);
?>
<?php
require_once('login_inc.php');
?>
<?php
if ($vbulletin->userinfo['usergroupid'] == '6' )
{
echo "This is only visible to people in usergroup 6";}
?>
In FIREFOX:
So I go to supermandatabase.com/forums/test.php and I login. It takes me to the vBulletin login and process me and redirects me back to test.php and I see Welcome Superman! and "This is only visible to people in usergroup 6" But when I click log out, it takes me to vBulletin and says cookies cleared, but when I go back to test.php I see the Welcome Superman I can't logoff via the test.php
SOLVED!!!
In EXPLORER:
Exact opposite happens. I go to test.php, enter information, and I am processed and redirected back expect I don't see Welcome Superman! I see the login information without the "This is only visible to people in usergroup 6" being echoed. I am also getting a warning message that says "Problems with this web page might prevent it from being displayed properly.
Line : 9
Char: 1
Error: Expected '('
Code: 0
I have no clue what to do. The cookies are set to "/" and not '/forums/"
Any suggestions or anyone else had this issue?
Thanks in advance for the help.