you have to put it after
PHP Code:
if (!$servertoobusy) {
require('./admin/sessions.php');
} else {
$session = array();
$bbuserinfo = array();
}
as the bbuserinfo array isn't loaded till then.
I use
PHP Code:
if(!$bbuserinfo[userid]) {
$welcome_msg = "Welcome Guest!";
} else {
$welcome_msg = "Welcome back, $bbuserinfo[username]";
}
though ig you are only going to use it on the forum index you should modify the /index.php page at the point which checks if its a registered user or guest.