I am also looking for this information. I tried the following:
PHP Code:
require_once($_SERVER['DOCUMENT_ROOT'] . "/forums/global.php");
// IF USER IS LOGGED IN
if ($bbuserinfo[userid])
{
// CODE TO EXECUTE IF USER IS LOGGED IN
echo 'logged in';
}
else
{
// CODE IF USER IS NOT LOGGED IN
echo 'not logged in';
}
You would think this would work. I just need to verify the user is logged in when they are on other pages outside the forum.