if ($bbuserinfo['usergroupid']==1 || $bbuserinfo['usergroup']==3) { echo "You are not logged in, or you have not confirmed your e-mail address."; }