Forums

Custom Captcha

Monkofdoom 12 May, 2009
Hello,

I am currently trying to implement a custom validation captcha for a project I am working on and have got a little stuck.

I have managed to get the form to display my new captcha and post the data through etc, and I have managed to check whether the value being sent is valid/invalid by adding code to the "On Submit code - before sending email:" section.

What I'm unsure how to do is when I conclude whether to go back to the form and display an error, how to do this?

So

if ($customVerificationFailed) {

}

what would I put in the if to fail verification and display an error message?

I'm using the newest versions of joomla/chrono forms.

I hope this is clear and thank you for your help!
Monkofdoom 12 May, 2009
I apologise, it turns out I'm not, I'm using joomla version 1.0 and chrono 2.3.2.

I don't have the ability to upgrade either system (as it's client based) so is it possible to do with these versions?

Sorry for my mistake
GreyHead 12 May, 2009
Hi MonkofDoom,

Those are old versions of both products :-(

What exactly are you trying to do with the custom Captcha?

Can you use ReCaptcha? That can be integrated into almost anything?

Bob
Monkofdoom 12 May, 2009
Thank you for your reply, I've realised how old they are😟

Unfortunetly it's an inhouse captcha that has special accessibility features on it that ReCaptcha and other systems don't provide.
GreyHead 12 May, 2009
Hi MonkofDoom,

:-(

Try $error_found = true; showform($_POST); to reshow the form. There have been some variations around this syntax through teh development of ChronoForms but I think this goes back far enough.

Bob
Monkofdoom 12 May, 2009
thank you, I will have try with those in a minute - Have to swap PC's first and will keep you updated
Monkofdoom 12 May, 2009
Hello again,

I believe that has worked and the form is behaving how I had hoped, thank you!

When an error is called and the form is re-shown is there a switch to get it to show the posted data in the text fields or is it a case of manually setting the values on the form html section.
GreyHead 12 May, 2009
Hi MonkofDoom,

There's a switch in the current versions on the Anti-Spam tab but I don't think that it was in 2.3.2 :-(

You'll need to set the input values from $_POST in the Form HTML I'm afraid.

Bob
Monkofdoom 12 May, 2009
Ok, well thank you for your support - I've been very impressed by your responses and how quickly you make them.

Hopefully my next encounter with chronoforms will be with a newer version πŸ˜€

Have a good day
This topic is locked and no more replies can be posted.