30-Jul-2011, 02:48 PM
Hello everyone,
All my work is done locally.
I have two problems with adding "commentics" code to my web pages.
When I use the example.php file that is given by the Commentics in the initial folder created at unzip time EVERYTHING is OK.
1. I move example.php into the folder of my site and change the ../comments/ (as explained in the documentation) for both css and the $path...... In this situation I cannot add anymore comments because I get :
"Comments
You have just been banned.
This can be due to a variety of reasons including swearing, spamming and hacker-related behaviour.
If you feel that this was in error, please contact the administrator, quoting your IP Address."
Even after cleaning the cookies, deleting the records in the banned table (where the reason says: Incorrect referrer.) and even after changing the php code in the processor.php as following:
function cmtx_check_if_banned() { //check if user is banned
global $mysql_table_prefix, $ip_address; //globalise variables
$ban_found = false; //initialise flag as false
if (mysql_num_rows(mysql_query("SELECT * FROM `".$mysql_table_prefix."banned` WHERE ip_address = '$ip_address'"))) { //if user's IP address is found in 'banned' database table
$ban_found = false; //set flag as true
}
if (isset($_COOKIE['Commentics-Ban']) && $_COOKIE['Commentics-Ban'] == "Banned") { //if a banning-cookie is found
$ban_found = false; //set flag as true
}
$ban_found = false;
if ($ban_found) { //if a ban was found
die(CMTX_BAN_MESSAGE_BANNED_PREVIOUSLY); //end scripting and output message to user explaining they were previously banned
}
}
I still get banned!!!!!!!!!
2. If I copy and paste the code of example.php into one of my web pages (of course I add also the line: ob_start(); ) I cannot add anymore comments because the "Add Comment" button stays greyed out!
Any help is very much appreciated!
Thank you,
Carly
All my work is done locally.
I have two problems with adding "commentics" code to my web pages.
When I use the example.php file that is given by the Commentics in the initial folder created at unzip time EVERYTHING is OK.
1. I move example.php into the folder of my site and change the ../comments/ (as explained in the documentation) for both css and the $path...... In this situation I cannot add anymore comments because I get :
"Comments
You have just been banned.
This can be due to a variety of reasons including swearing, spamming and hacker-related behaviour.
If you feel that this was in error, please contact the administrator, quoting your IP Address."
Even after cleaning the cookies, deleting the records in the banned table (where the reason says: Incorrect referrer.) and even after changing the php code in the processor.php as following:
function cmtx_check_if_banned() { //check if user is banned
global $mysql_table_prefix, $ip_address; //globalise variables
$ban_found = false; //initialise flag as false
if (mysql_num_rows(mysql_query("SELECT * FROM `".$mysql_table_prefix."banned` WHERE ip_address = '$ip_address'"))) { //if user's IP address is found in 'banned' database table
$ban_found = false; //set flag as true
}
if (isset($_COOKIE['Commentics-Ban']) && $_COOKIE['Commentics-Ban'] == "Banned") { //if a banning-cookie is found
$ban_found = false; //set flag as true
}
$ban_found = false;
if ($ban_found) { //if a ban was found
die(CMTX_BAN_MESSAGE_BANNED_PREVIOUSLY); //end scripting and output message to user explaining they were previously banned
}
}
I still get banned!!!!!!!!!
2. If I copy and paste the code of example.php into one of my web pages (of course I add also the line: ob_start(); ) I cannot add anymore comments because the "Add Comment" button stays greyed out!
Any help is very much appreciated!
Thank you,
Carly