 Some time ago I started using the "AkoComment tweaked" component with my joomla instalation. Even though it is protected with the captcha image that you have to enter everytime before you submit the form, some spambots somehow broke this protection and kept flooding my comments. This was the reason why, I decided to replace the default captcha mechanism with my own PHP MathGuard Class. Here is a short overview how to apply my patch.
Update - AkoComment TSE 1.4.6 with MathGuard anti-spam ! - installer To make the process described below simpler, I just added the fixed version of Akocomment TSE 1.4.6 with the MathGuard anti-spam do the download section. Now you don't have to mess around with editing some files. Just unpack the zip, install all files and put ClassMathGuard.php into your joomla directory. Don't forget to disable the old security code. That's it.. Please make sure that "Report on Comment" setting in Akocomment administration is set to No. Some spambots use this technique to send spam messages. Enjoy ! Matto
Original manual patching procedure follows below (obsolete if you installed the whole bundle above) 1. Disable the default security code in the joomla administration If you want to apply the same change for your website, first you have to disable the Akocomment's security code. You will find it in the joomla's AkoComment administration under the "Posting" tab.  Disabling the captcha in Akocomment administration
2. Backup your joomla installation It is useful to backup your joomla installation, if something would go wrong. For example the versions won't match or whatever.. 3. Download Download the akocomment-anti-spam-patch.zip from the download section of this website. Then, unpack the akocomment-anti-spam-patch.zip to your joomla installation. 4. Replace the old files It replaces the old files with ones that are changed. 5. Test the result When everything works well, instead of this:  The original AkoComment form with the captcha
you should see this:  Patch that replaces the captcha with my own MathGuard anti-spam protection
If there are some problems, eg. the different version, have a look at the code and add the sections within the comments: //modified by Matej Koval www.codegravity.com That way you can identify the parts that were changed. Enjoy :)
|
Comments
however-
installer doesn't workfor me . joomla says its missing the xml. i am assumng that you replace the original akocomment.php with the one that comes in the zip. same with akocommentbot.php.
where does the ClassMathGuard.php go? does it remain in a folder called akocomment-anti-spam-patch Folder inside the component folder?
With these changed files you will just overwrite the original ones.
The ClassMathGuard.php belongs to the root directory of your joomla.
Hope I helped you, if you'd have any further problems, feel free to ask.
Im using mambo 4.6.0 and Akocomment but have big problem with spammers. Im trying to use MathGuard but i cannot get it to work (comments does not show at all on the page). Do you have any tips on what to try? I was under the impression that mambo and joomla were more or less the same so it should work?!
sorry, I don't know on what scale mambo and joomla are different
'Cause now I have the php file in com_akocomment folder and dosn't work!! I mean.. don't read the "class.akocomment.php"
I have a problem with this patch. If I install the new files, I lose the links "comment" or "Be first to comment this article ".
I use Joomla 1.0.12 and AkoComment tweaked special Edition 1.4.5
The problem come to the akocommentbot I think, but where?
Thanks if you have an idea
I go to look at the php file, but if someone has a other idea
After a closer look I found this piece of code that should be responsible for this. akocommentbot.php line 661:
if ($ac_mainmode == "0") {
$row->text = str_replace( "{moscomment}", "$replacementlin k"._AKOCOMMENT_COM MENTS." ($total)".$showextralinks ."", $row->text );
} elseif (in_array ($row->sectionid, $seclistarray)) {
$row->text = str_replace( "{moscomment}", "", $row->text );
// Changed by Arnaud Bonneville, 25/08/2005
// If Zero comments are posted we dont show "0 comments"
if ($total>0) {
$row->text = $row->text."$replacementlin k"._AKOCOMMENT_COM MENTS." ($total)";
} else {
$row->text = $row->text."$replacementlin k"._AKOCOMMENT_WRI TEFIRSTCOMMENT."";
}
// End of change
// END ADDING OPTIONS BY Bernard Gilly
$row->text .= $showextralinks ."";
}
wondering what is there wrong in your case..
It's cool
There is probably a bug with Akocomment 1.4.5
Thanks for your help.
It really works.
RSS feed for comments to this post