If i run teh same scipt (with my own path ofcourse) i get a blank page with only "Hello".
The reason for this is simply: usergroupid is not stored in the cookie.
Do the following instead instead of the echo $admin:
PHP Code:
echo "Hello $bbuserinfo[usergroupid]";
If you want to know what more information is stored in the $bbuserinfo table, add a line like the following:
PHP Code:
echo "<br />bbuserinfo: <pre>";print_r($bbuserinfo);echo "</pre>";