ICQ:53-755-182 RSS channel for codegravity.com homepage Bookmark!

59/5NEW projects | 4 businesses NEW! | 258 web resources | 173/2NEW freelancers | 484 topics


JoomlaWatch
JoomlaWatch Stats 1.2.6 by Matej Koval
We have 7 guests and 2 members online


Login form:





Lost Password?
Register
Partners:

Google Page Rank Checker

My CV / resume

WinAsm Studio

Prehliadac Opera

ColdFusion, Flex, PHP Web development worldwide

View a profile on proagora.com
view my profile

CodeGravity.com is
looking for the
link partnership
with related websites.

Relax, oddych, zabava, ubytovanie

Ubytovani, volny cas, zabava

Vyšné Ružbachy

Reštaurovanie, kameň, bronz, drevo

Slobodne forum

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:
rss feed
Home

MathGuard anti-spam patch for Joomla's Akocomment component

Sponsored links:

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 :)





Sponsored links:

Comments (13)
RSS comments
1. 03-08-2007 19:56
this is sweet way to keep us safe from spam. seen it on other sites and i want it. 
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?
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
2. 06-08-2007 15:50
It's not a module archive !
Please don't consider akocomment-anti-spam-patch.zip as joomla module/component archive or something. It's just an archive where are the patched files.  
 
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.
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
3. 21-08-2007 19:11
Mambo
Hi, 
 
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?!
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
4. 19-09-2007 07:23
RE: Mambo
Hi Bjorn, 
sorry, I don't know on what scale mambo and joomla are different :upset
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
5. 25-09-2007 06:58
RE: Mambo
Where do I have to PUT exactly "class.akocomment.php"? 
 
'Cause now I have the php file in com_akocomment folder and dosn't work!! I mean.. don't read the "class.akocomment.php"
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Registered)
6. 27-09-2007 18:56
Just reinstall
Please just uninstall the old component and install the new one from the zip archive. That's all.. You don't have to copy anything manually.
Written by matto (Registered)
7. 17-10-2007 16:53
Problem with this patch
Sorry for my english :sigh  
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
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
8. 18-10-2007 06:53
Problem with this patch
There were no major changes in the code except those where the if/else code that adds a new comment is inserted. Maybe you lost the configuration you had. Maybe try to enable those links in the configuration of AkoComment. Or that might be a difference between version 1.4.5 and 1.4.6 that comes with this bundle.
Written by matto (Registered)
9. 18-10-2007 08:51
Problem with this patch
Thanks, but the option to enable the links don't exist in the configuration. Those links are the base of this component. I don't understand where the code disable this option. 
 
I go to look at the php file, but if someone has a other idea :?
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Guest)
10. 18-10-2007 10:26
Problem with this patch
Interesting.. here on CodeGravity.com those "Be first to comment this article" or "comment" appear by default. You can check it on the main page, and as I remember did nothing more than re-installation of an old AkoComment (components, modules, mambots).  
 
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}", "$replacementlink"._AKOCOMMENT_COMMENTS." ($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."$replacementlink"._AKOCOMMENT_COMMENTS." ($total)";  
} else { 
$row->text = $row->text."$replacementlink"._AKOCOMMENT_WRITEFIRSTCOMMENT."";  

// End of change 
 
// END ADDING OPTIONS BY Bernard Gilly  
$row->text .= $showextralinks."";  
}
 
 
wondering what is there wrong in your case.. :roll
Written by matto (Registered)
11. 18-10-2007 11:13
Works with the 1.4.6 version
I have decided to install de 1.4.6 version. And it works. 
It's cool :)  
 
There is probably a bug with Akocomment 1.4.5 :?  
 
Thanks for your help.
Written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it (Registered)
12. 18-10-2007 11:38
Works with the 1.4.6 version
You are welcome. Enjoy it. 8)
Written by matto (Registered)
13. 30-10-2007 23:51
Works with the 1.4.6 version
guddd....
Written by andro (Guest)

Write Comment
Name:
E-mail
Homepage
Title:
BBCode:Web AddressEmail AddressBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



I wish to be contacted by email regarding additional comments
MathGuard security question, please solve:

5LR         BKM      
5 T    Y      2   B5R
E 7   OYF   3GM      
A U    O      1   YJ8
L3C         XO5      

Powered by AkoComment Tweaked Special Edition v.1.4.6
AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com
All right reserved

<JoomlaWatch - A real-time AJAX joomla monitor and live stats MathGuard PHP form anti-spam protection>
 











Download the NEW JoomlaWatch 1.2.5 from 24.3.2008 that works with Joomla 1.5 and Joomla 1.0

Sponsored:



Popular:
MathGuard
Random screenshot:

tipper01.jpg


Poll
JoomlaWatch 1.2.5 installation was for me
 

News:

Registration required
I know that people don't like registering on websites, but I had to do it. From this moment you have to register first, before you download any file. This is better, because this way I can give you quick info about new version of downloadable files (eg. MathGuard) or some necessary security fixes. Thanks for understanding. (26.08.2007)

Books about investing and finance
I'd like to recommend you to read a book by Robert T. Kiyosaki - "Rich Dad, Poor Dad". However many people say it's quite a controversial book, it gave me a good motivation to improve my financial intelligence. (23.08.2007)

Fighting with the spam
All of the forms were protected with my own PHP antispam class - MathGuard, including the forms in the joomla modules I use. (02.05.2007)

Forum
Converted posts from the old punbb forum to the new joomlaboard (25.02.2007)

Improvement
Fixed some issues with the freelance registration, added a possibility to add a new programming resource, reorganized the structure of the programming resources. (24.02.2007)

New content management system
Codegravity.com is now running on joomla cms :) Added features like comments, forum etc. I hope you'll like it. Today I fixed the problem with the comment module which was not showing the correct images. There is also a new URL structure. For the old urls there is a 301 (Moved permanently) http redirect. (10.02.2007)

Moved to another hosting
Codegravity.com has been moved to another web hosting - CustomHosting.sk, from the previous pipni.cz, mainly because of the mod_rewrite problems and slow loading of the website. Sorry for some problems that lasted for about an hour. (19.01.2007)

Bookmark feed
The new feed from the del.icio.us has been added to the homepage codegravity.com. You 'll always have the latest information about the sites I like and you should visit as well! (21.11.2006)

News improved
Today I improved the news feeds. They are sorted into categories and I also added some other feeds that may be interested for you. (31.03.2006)

The Antispam verification
My email form was hijacked by the spam bots and I was recieving a lots of junk into my mailbox everyday. So, I decided to put a simple verification in the end of the form. You have to answer the result of addition of two numbers. Thank you for your understanding. (07.03.2006)

Java SE 6 Beta Mustang is out !
This beta release is a major milestone in the development of Mustang. It provides a complete stable snapshot of the final release functionality. http://mustang.dev.java.net (20.02.2006)

Google analytics, apply online
Apply online to google-analytics.com. They offer the new way of analysis of your website visitors. It is very promising, and when you will recieve the invitation code, you can send me one :) Thank you :) (13.02.2006)

Money Manager 2 - software for mobile accounting

FaceRSS - simple JavaServer Facer (JSF) component
I registered my new project - FaceRSS on freshmeat.net, here is the description: FaceRSS is a simple JavaServer Faces (JSF) component that allows you to display news from a specified URL source in one configurable JSP tag. This allows you to place news feeds on a Web site in a very simple way. It uses rsslib4j and therefore supports RSS version 0.9x, 1.0, and 2.0 with Dublin Core and Syndication namespaces. (06.01.2006)

My new blog :)
Check out my new [jroller.com/page/matto3c] blog on jroller.com website. Here is the RSS feed [http://jroller.com/rss/matto3c] if you'd like to add it into your news reader. (14.12.2005)

ERM-II and Slovakia
SLOVAKIA, my home country, is now one step closer to adopting the common European currency - EURO. At midnight between November 25 and November 26, the country joined the Exchange Rate Mechanism 2 (ERM-II) (30.11.2005)

www.jground.com
I established a new website - http://www.jground.com, it's all based on JSF and it should be all about Java and all other related things. Enjoy! (25.11.2005)

Swing text antialiasing

Java webhosting
I'm trying a new http://www.move.cz java webhosting on www.move.cz, but it seems they don't respond to my questions about JSF ;( (16.11.2005)

Migration from Weblogic to JBoss
Currently I am working on a task: Migration of one J2EE application from Weblogic to JBoss application server. So, if you have any suggestions or resources, I would be glad if you'll send me some. Thanks (15.11.2005)

Increased Java performance
Java increased its performance on desktop by 58% : [http://www.javalobby.org/java/forums/t54006.html] Java Performance
Improvement (15.11.2005)

Exadel Studio Pro
At this time I'm playing with JSF (Java Server Faces). I want to recommend you a great IDE - Exadel JSF Studio Pro. It costs about $99, and there is 15 days trial available. You can also try MyEclipse which has also like Exadel - WYSIWYG editor for editing JSP, JSF pages. It can save you a lot of time. For more info, visit www.exadel.com (27.09.2005)

Programming directory
added a new programming resources directory, where you can submit your own programming website (14.09.2005)

Programming forum
Now the Programming forum is included in website design. I put there some topics from previous version of this forum. (19.08.2005)

Ubytovanie, podnajom Poprad
Ponuka na podnajom, ubytovanie: Zrekonštruované podkrovie - rodinny dom Poprad-Matejovce - 2 izby + pracovna + kúpelna s kuchynou, strešné a plastové okná, samostatné plynové kúrenie, drevené plávajúce podlahy, garáž, velká záhrada a samostatný vchod. . . Cena: dohodou
Kontakt: 0949 401 409 (18.02.2008)
Privacy policy | freelance programmers | webmaster resources | business directory | advertise with codegravity.com

Locations of visitors to this page


©2003-2007 Codegravity.com - MathGuard anti-spam patch for Joomla's Akocomment component