Forums

ReCaptcha Error Message

habdaddy 21 Sep, 2009
The recaptcha plugin is great. The only issue I have with it is the error message that gets displayed when the images do not match is not very friendly. I modified the cf_recaptcha.php file so that you can add your own message that gets displayed. I do not like hacking the core files and would like to see the ability to modify the message in the core code.

Thanks
GreyHead 21 Sep, 2009
Hi habdaddy,

Good thought, please will you try the attached version which has two extra fields - an input for the error message and Yes/No button to add the ReCaptcha error message on the end.

I think it works but let me know if you find any bugs.

Bob

PS To install unzip and copy the file to your ChronoForms Plugins folder, you may want to backup the old copy first.
habdaddy 21 Sep, 2009
I installed it and it works. The only issue is that when you select No for the Show reCATPTCHA message, it shows the text in the custom field. Select yes and it shows the default message.
GreyHead 21 Sep, 2009
Hi habdaddy,

Hmm - the same custom message should be shown in both cases - if you select Yes then the rather cryptic message returned by ReCaptcha e.g. 'incorrect-captcha-sol' will be added on the end. (This may not be useful except for debugging).

Are you seein something different?

Bob

PS I can see that the field titles could be better . . .
habdaddy 25 Sep, 2009
Yes, that is what I am seeing. Sorry for the confusion.
This topic is locked and no more replies can be posted.