Ok, for the member who asked for a different message, when a banned member tries to log in the site, I have found the place to check it out and produce a different message. I am not releasing it as a new version though, as I want to elaborate on it a bit, but if you are in a hurry to put this into action, here is what you have to do:
Edit file functions.php and find:
PHP Code:
$postvars = construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
if ($bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
Replace that, with:
PHP Code:
$postvars = construct_post_vars_html();
$bbuserinfo['badlocation'] = 1; // Used by exec_shut_down();
if (($bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR $bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id']) AND $bbuserinfo['userid'])
{
eval(print_standard_error('nopermission_banned', true));
}
if ($bbuserinfo['userid'] AND (!$bbuserinfo['usergroupid']==$warn_opts['banned_usergroup_id'] OR !$bbuserinfo['usergroupid']==$warn_opts['troll_usergroup_id'])
{
eval(print_standard_error('nopermission_loggedin', true));
}
else
Also, create a new phrase, named nopermission_banned, its type being Front-End Error Messages, which says something like:
HTML Code:
<p><strong>$bbuserinfo[username]</strong>,<p> You do not have permission to access the forums, because you are temporarily banned.<p>Sorry, we hope to see you again in our forums soon.
<p><div align="$stylevar[right]"> <a href="login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]">Log Out</a> <a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a> </div>
Try this out and let me know if it works, I have a reservation, since I am not sure if warn_opts have been evaluated at that point. If not, I'll give you a better solution tomorrow.