I'm having the same problems.
PHP Code:
<?php
chdir("/home/sites/avforums/public_html/forums");
require_once('../forums/global.php');
require_once('/home/sites/avplay/public_html/login_inc.php');
$allowed_userids = "1";
$allowed_users = explode(",",$allowed_userids);
if (!(in_array($vbulletin->userinfo['userid'],$allowed_users))) {
echo ("<P align='center'>Sorry but you do not have permission to access this page.</P>");
include ("/home/sites/avplay/public_html/footer.php");
exit();
}
chdir("/home/sites/avplay/public_html");
...avforums.com and avplay.com are both on the same server and AV Forrums has been set up with the cookie path being / and cookie domain being .avforums.com.
Keeps saying I'm not allowed in, and when I print_r $vbulletin->userinfo is returns a userd of 0.
Help!