PDA

View Full Version : chat auto know user is logged in ?


Willard Reece
09-16-2003, 07:15 PM
global $bbuserinfo;
$username=$bbuserinfo['username'];
if ($username == "") {
$username ="Anonymous";

I am trying to figure out how to make this user vb's logged in code,
so when a user clicks the link it know he is already logged in

that above will log in a Anonymouse user but not vb user

assassingod
09-16-2003, 07:21 PM
if ($bbuserinfo[userid]==0) {
show_nopermission();
}


Tried that?

Willard Reece
09-16-2003, 07:31 PM
Like this??

global $bbuserinfo;
$username=$bbuserinfo['username'];
if ($bbuserinfo[userid]==0) {
show_nopermission();
}

that gives me a error at show_nopermission

assassingod
09-16-2003, 07:33 PM
If you are requiring global.php then just use

if ($bbuserinfo[userid]==0) {
show_nopermission();
}