Dusky:
But is it possible to display this reason on the page that the banned users sees?
It is.
There are few steps to modify core files, and I think we could try to develop it by default in the next release.
First you may edit setup_mysql.php, locate the function db_ipCheck and instead of
$res=mysql_query("select id from {$GLOBALS['Tb']}...
put
$res=mysql_query("select id, banreason from {$GLOBALS['Tb']}...
and this string:
if($res and mysql_num_rows($res)>0) return TRUE; else return FALSE;
replace to:
if($res and mysql_num_rows($res)>0 and $row=mysql_fetch_row($res)) return $row[1]; else return FALSE;
Then modify index.php and replace this string:
if($user_id!=1 and db_ipCheck($thisIp,$thisIpMask,$user_id)) {
with that one:
if($user_id!=1 and $banRes=db_ipCheck($thisIp,$thisIpMask,$user_id)) {
Then modify templates/main_access_denie
d.html
and put somewhere after </h1> closing tag:
<span class="warning">{$banRes}</span>
P.S. I would still call it taking too much care of dorks, but anyway, we have everything resource-possible to introduce this without any significant load on the server ;)