Change error message in Recaptcha

james.bourque 28 Dec, 2009
I was able to get the Recaptcha plugin working fine in chronoforms but was wondering if anyone knew what file needs to be edited to create a custom error when verification fails. I know normally it would reside in the code for the form itself but I was unable to locate it. I basically just need to find the code containing the following snippet and replace it with my own:

if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
GreyHead 29 Dec, 2009
Hi james.bourque,

You can change the text of the message in the Plugin Configuration.

I'm not usre if this is what you are asking though?

Bob
adam.hughes 14 Jun, 2010
Sorry Bob , but where in the plugin coinfiguration can you change the error message that get's displayed ?
The only option's I have when I go into the config are :
configure
public key
private key
ssl
theme
language name
advanced
recaptcha server
recaptcha secure server
recaptcha verify server

Cheers
GreyHead 14 Jun, 2010
Hi Adam,

You are right, you'd have to hack the plug-in code (or wait for the next version that does have that option).

Bob
shannongrey0510 25 Jun, 2010
Great! I have experienced the same problem, finally got the answers that I have long searching for.
This topic is locked and no more replies can be posted.