Hi Ealltech,
I'm afraid that almost every spamcheck is a bit broken these daya. You might get better results with ReCaptchas as I believe that Google do some filtering of repeat offenders. (You'll need to check that you have the updated Google API URLs though.)
Otherwise you may get some improvement by using serverside validation. It looks as though the text inputs are mostly junk so asking the user to type a known word in one might help.
Bob
Hi Greyhead, Thanks for your rapid reply. I try the reCaptcha this morning according to you. but failure always. Is there another recaptha solution as you know? Please kindly advise more.
Hi all,
To use reCapcha with ChronoForms
Sign up for reCaptcha and get Public and Private keys for your domain
Unzip and copy the attached chrono_recaptchalib.php file into your components/com_chronocontact folder
Add this code to your Form HTML where you want the reCaptcha to appear
CODE: SELECT ALL
<?php
include_once(JPATH_COMPONENT_SITE.DS.'chrono_recaptchalib.php');
// you got this from the signup page
$publickey = "###~~your public key~~###";
echo "<div style='width:312px; height:125px;'>".recaptcha_get_html($publickey)."</div>";
?>
Go to the Validation Tab for your Form; enable Server Side Validation.
Go to the Anti-Spam tab andmake sure that imageverification is disabled.
Enter this code in the ServerSide Validation Code box
CODE: SELECT ALL
<?php
include_once(JPATH_COMPONENT_SITE.DS.'chrono_recaptchalib.php');
$privatekey = "###~~your private key~~###";
$resp = recaptcha_check_answer (
$privatekey,
$_SERVER["REMOTE_ADDR"],
JRequest::getVar("recaptcha_challenge_field"),
JRequest::getVar("recaptcha_response_field") );
if ( !$resp->is_valid ) {
return "The reCAPTCHA wasn't entered correctly. Go back and try it again<br />
(reCAPTCHA said: ".$resp->error.")";
}
?>
Make sure that you have the correct reCaptcha key in each code block
Bob
ATTACHMENTS
chrono_recaptchalib.zip
Hi ealltech,
Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6.
Both the current versions have ReCaptcha built in - the code you qoted is for an older version still.
Bob
Hi Bob
Thanks for your kindly reply. I check my chronoforms, the version is as below.
Chrono Contact V 3.2 09 Nov 2010 Chronoman
Thank you!
Hi ealltech,
In ChronoForms v3 the ReCaptcha plug-in is available in the plug-ins column at the left hand side of the Forms Manager. You need to add {ReCaptcha} in the Form HTML where you want the ReCaptcha image to display and you may need to change the URLs to the new Google version.
Bob
Hi bob
I'm trying, but what google version of recapthca? Thanks.
Advanced parameters - do not change
ReCaptcha server
ReCaptcha secure server
ReCaptcha verify server