You haven't edited the file includes/functions.php properly. This is where the check is done. This is how it looks in my site.
PHP Code:
$postvars = construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
// Apply this for special message for banned users.
if (($bbuserinfo['usergroupid']==$vboptions['warn_banned_usergroup_id'] OR $bbuserinfo['usergroupid']==$vboptions['warn_troll_usergroup_id']) AND $bbuserinfo['userid'])
{
$ban = $DB_site->query_first("SELECT liftdate FROM " . TABLE_PREFIX . "userban WHERE userid=$bbuserinfo[userid]");
if ($ban['liftdate']=='0')
{
$until="permanently banned";
}
else
{
$until= vbdate ( $vboptions['dateformat'], $ban[liftdate] ) ;
$until=" temporarily banned, until the $until";
}
eval(print_standard_error('nopermission_banned', true));
}
if ($bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
{
$scriptpath = htmlspecialchars_uni(SCRIPTPATH);
define('VB_ERROR_PERMISSION', true);
eval(print_standard_error('nopermission_loggedout', false));
}
Rgds