Page 4 of 19 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 188
  1. #31
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    It is almost like it isnt using the tpl_contact_us_default.php file..

  2. #32
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Hahaha wow I feel dumb. Just had to enable it in configuration... That's what I get for working so late... I'm going to bed now. Thanks for the great mod

  3. #33
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Quote Originally Posted by davewest View Post
    Lost me with your other messages, but getting back to your first request.... This is what worked for my testing...

    for includes\modules\pages\contact_us\header_php.php

    add this just below the $error = false;

    Code:
     require_once('includes/templates/custom/templates/recaptchalib.php');
    $privatekey = "PRIVATE-KEY-GOES-HERE";  
    $resp = recaptcha_check_answer ($privatekey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);
    
    if ($_POST['submitted'] == 'yes' && !$resp->is_valid) {
        $error = true;
        
    }
    then go down to this line... and add the red section.
    Code:
     if ($zc_validate_email and !empty($enquiry) and !empty($name) and $resp->is_valid) {
    now for includes\templates\classic\templates\tpl_contact_us_default.php

    bottom of the page above the submit button code you see a </fieldset> just above it paste this code..
    Code:
    <?php
         if ($error == true) {
            echo '<span style="color:red;font-style:bold;">*Please re-try entering the 2 word reCAPTCHA:</span>';
        }
        //require_once('recaptcha/recaptchalib.php');
        $publickey = "PUBLIC-KEY-GOES-HERE";  
        echo recaptcha_get_html($publickey);
    ?>
    Of course replace the KEY-GOES-HERE with your key.

    This work for my tests, if captcha fails, your back to the contact us page. If all is right your on to the success page.

    Hi Dave,

    Where do I get the PRIVATE-KEY-GOES-HERE from?

    Thanks

  4. #34
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Adding reCAPTCHA to Contact Us Form

    Quote Originally Posted by PinkLeopard View Post
    Hi Dave,

    Where do I get the PRIVATE-KEY-GOES-HERE from?

    Thanks
    From the reCAPTCHA website.... recaptcha.net
    Dave
    Always forward thinking... Lost my mind!

  5. #35
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Dave!

    Thanks I did that.

    Now, I took a peek at your site and I really like your multi-color reCAPTCHA.

    May I ask which add-on you used?


    Thanks!

  6. #36
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Adding reCAPTCHA to Contact Us Form

    Quote Originally Posted by PinkLeopard View Post
    Dave!

    Thanks I did that.

    Now, I took a peek at your site and I really like your multi-color reCAPTCHA.

    May I ask which add-on you used?


    Thanks!
    I use the 'CAPTCHA using TTF & GD' mod with two sets fonts.
    http://www.zen-cart.com/index.php?ma...roducts_id=551
    Dave
    Always forward thinking... Lost my mind!

  7. #37
    Join Date
    Jun 2009
    Posts
    389
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Thanks Dave again!

  8. #38
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    whaaatt, iv installed this, but i cant even see re-captcha on my admin>configuration>??

    any idea's?
    i may not know how yet, but i soon will....i hope :)

  9. #39
    Join Date
    Jul 2009
    Posts
    495
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    never mind, followed some instructions, and it worked
    i may not know how yet, but i soon will....i hope :)

  10. #40
    Join Date
    Dec 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Hi there - anyone know where the sql files that the install document refers to? there were none with my download??am trying to get the recaptcha mod working and it isn't - I have checked and re-checked and can find no other files anywhere?
    Your speedy assistance would be greatly appreciated.

 

 
Page 4 of 19 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. Contact reCAPTCHA
    By nolsowski in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 29 Apr 2012, 08:54 PM
  2. Contact Recaptcha
    By Miff in forum General Questions
    Replies: 1
    Last Post: 15 Jun 2011, 10:40 PM
  3. Adding a contact form
    By Matt Smith in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Jun 2010, 11:27 PM
  4. Using two modules add extra fields and recaptcha to contact form
    By webmiss in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Feb 2010, 07:43 PM
  5. Removing default contact info on contact us page/adding form to page
    By haggis0929 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Dec 2009, 06:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg