Hi,
I have a another site which is not a part of the vbulletin forum but it's located in the parent directory.
vbulletin forum => s-maof/Forum dir
another site => s-maof/aaa dir
I want to idintify users that are logged in the forum in the other site.
I have included this code:
PHP Code:
$dir = dirname(dirname(__DIR__)).'/Forum';
chdir($dir);
include dirname(dirname(__DIR__)).'/Forum/global.php';
print_r($arr = $vbulletin->userinfo);
$userid = isset($arr['userid']) && $arr['userid'] != 0 ? $arr['userid'] : -1;
echo "userid = " . $arr['userid'];
echo "username = " . $arr['username'];
I get the $vbulletin->userinfo array, but I am seen as not logged in,
even though I am.
Any help?