I know this is an old question, but I searched the forum and couldn't come up with anything good. Here's what I'm doing right now...
PHP Code:
require_once '../forum/global.php';
global $vbulletin;
print_r($vbulletin->userinfo);
...even if a user is logged in, the print_r shows me that [userid] => 0 [usergroupid] => 1 [username] => Unregistered.
I guess global.php does not check for active user sessions in the cookies?
How do I go about checking to see if a user is already actively logged in using PHP?