13-Aug-2011, 10:51 AM
Hi,
There isn't a setting to turn it off.
You will have to open comments/includes/functions/processor.php, find the cmtx_ban function (line 1187), and comment out the code within it, like this:
There isn't a setting to turn it off.
You will have to open comments/includes/functions/processor.php, find the cmtx_ban function (line 1187), and comment out the code within it, like this:
PHP Code:
<?php
function cmtx_ban ($reason) { //ban user
/*
global $mysql_table_prefix, $settings, $ip_address, $is_admin; //globalise variables
if (!$is_admin) { //if not administrator
//insert user's IP address into 'banned' database table
mysql_query("INSERT INTO `".$mysql_table_prefix."banned` (ip_address, reason, dated) VALUES ('$ip_address', '$reason', NOW())");
@setcookie("Commentics-Ban", "Banned", 60*60*24*$settings->banning_cookie_days + time(), '/'); //set banning-cookie
//time calculation: seconds * minutes * hours * days + current time
cmtx_notify_admin_new_ban($ip_address, $reason); //notify admin of new ban
die(CMTX_BAN_MESSAGE_BANNED_NOW); //end scripting and output message to user explaining they are now banned
}
*/
} //end of ban function