Welcome Guest, Not a member yet? Register   Sign In
Hooking reCAPTCHA into forms HTML output automatically
#1

[eluser]jfox[/eluser]
I am using the Ci-Bonfire mod for CodeIgniter 2.1 and have a question.

When enabled, I would like my HMVC Anitspam module for Bonfire to automatically add a reCAPTCHA form to any public user forms (register, contact, login, etc). I am thinking of using a hook to accomplish this, but I'm not sure the best approach. The hook would need to:

- Capture the form HTML output and inject the reCAPTCHA form
- Hook into the form submission and validate the reCAPTCHA submission before proceeding with processing the rest of the form validation and handling
- Set a template message, break form handling and render an error message to the view

I've not messed with hooks much outside of Wordpress, so I'm appreciative for any helpful advice or suggestions. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB