Quote Originally Posted by mikestaps View Post
David,
Thanks for the awesome module! Initial installation was a super simple.
I am atttempting to add the reCaptcha to the AJAX FAQ module following the tips you gave others on adding it to the ask a question module.
Unfortuantely I have not gotten far, with the added reCaptcha code to the class file for the faq when I click submit nothing happens...
You can take a look on the product page HERE by clicking on Ask A Question, just below the part number.
Any insight on how to get this working as well as it does on the other pages would be greatly appreciated.

Hi Mike
Just had a quick look at it (nice site btw). I think what you need to do is in the class.faq_request.php file:

Add at the beginning of the function update (just after the global $messagestack):
Code:
$error=false;
$zco_notifier->notify('NOTIFY_FAQ_CAPTCHA_CHECK');
then change the line 2 below from
Code:
if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject'])) {
to
Code:
if(isset($_POST['email_address']) && !empty($_POST['email_address']) && isset($_POST['fullname']) && !empty($_POST['fullname']) && isset($_POST['message']) && !empty($_POST['message']) && isset($_POST['subject']) && !empty($_POST['subject']) && $error==false) {
in the class.google_recaptcha.php file add (line 23 ish)
Code:
$pages_to_check[] =  'NOTIFY_FAQ_CAPTCHA_CHECK';
Hopefully that should sort it - if not I'll have another look

Regards
David