Per bloccare lo spam che arriva tramite Joomla Virtuemart 1.5 mediante il modulo di richiesta informazioni sul singolo articolo in vendita bisogna procedere come segue.
La soluzione è stata trovata qui http://forum.virtuemart.net/index.php?topic=66513.0
-----
I have noticed that there are many posts of people wanting to use captcha in VirtueMart, specifically using the "Ask a Question" feature for product inquiry. I was looking for this as well as I have been getting about 4 Spam inquiries a day. After many, many hours of reading and tweaking, I have finally figured out a fairly straightforward and easy way to add captcha to this. Since it was so hard for me to find and figure out how to do, I thought I would share with everyone how I got this accomplished.
This tutorial involves three basic steps:
1. Signing up for reCaptcha so you can use their wonderful service
2. Downloading and configuring the JEZ reCAPTCHA Integrator plugin
3. Adding a single word of code to the file - joomla\components\com_virtuemart\themes\default\templates\pages\shop.ask.tpl.php
Step 1
Go to the http://recaptcha.net/ website. Here you will sign up for an account where you can get a public and private key to use reCaptcha. Make sure that you have these keys readily available for the next step.
Step 2
Go to the website http://www.joomlaez.com/ and download the Joomla reCAPTCHA Integrator Plugin. After you have this installed, go to your plugin manager and open the settings for this plugin and do the following:
Enable the plugin
Enter the public and private keys where indicated
Set Inclusion Syntax to YES
Set Auto-verify to YES
Apply or save the settings
Step 3
Open the file - joomla\components\com_virtuemart\themes\default\templates\pages\shop.ask.tpl.php
Once you have this opened, browse to around line 35. Look for the line that says
Save the file and you are done. Now when you go to a product page and click the link "Ask a question about this product" you should have reCAPTCHA at the bottom of the page.
Hope this helps someone!
I made these changes this morning and have not received any spam yet, but obviously it has not really been long enough to know how well this works. Hopefully it will get you started in the right direction though.
-----------------------------
;-)
Nessun commento:
Posta un commento