Page 4 of 19 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 184
  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
    392
    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
    Acton, California
    Posts
    399
    Plugin Contributions
    1

    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
    WarehouseToYou.net -- FourSaleBuyU.com (true Auction and 'Make-an-Offer' site)

  5. #35
    Join Date
    Jun 2009
    Posts
    392
    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
    Acton, California
    Posts
    399
    Plugin Contributions
    1

    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
    WarehouseToYou.net -- FourSaleBuyU.com (true Auction and 'Make-an-Offer' site)

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

    Default Re: Adding reCAPTCHA to Contact Us Form

    Thanks Dave again!

  8. #38
    Join Date
    Jul 2009
    Posts
    468
    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
    468
    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. 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
  2. Adding Contact Us Form into EZPages
    By chris32882 in forum General Questions
    Replies: 1
    Last Post: 22 Oct 2008, 08:35 PM
  3. Adding fileds to the contact us form
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Dec 2007, 07:22 AM
  4. Adding fields to contact form???
    By kgmmusic in forum General Questions
    Replies: 2
    Last Post: 6 Aug 2006, 10:38 PM

Bookmarks

Posting Permissions

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