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 . ")");
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 . ")");
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
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
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
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
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
You are right, you'd have to hack the plug-in code (or wait for the next version that does have that option).
Bob
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.
