Page 2 of 19 FirstFirst 123412 ... LastLast
Results 11 to 20 of 188
  1. #11
    Join Date
    Sep 2007
    Location
    Neenah, WI
    Posts
    112
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    Thank you so much for your help Dave. Everything is working exactly as I wanted it! If we lived closer to each other I would buy you a drink.

  2. #12
    Join Date
    Apr 2009
    Location
    Dallas, TX
    Posts
    2
    Plugin Contributions
    0

    help question Re: Adding reCAPTCHA to Contact Us Form

    This worked for me also, thanks

    Should the reCaptcha be added to other portions of the site such as reviews?

    Has anyone added the mailhide api to protect against mail scraping?

  3. #13
    Join Date
    Sep 2007
    Location
    Neenah, WI
    Posts
    112
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    I'm working on a way to add it to the creat account form. So far I've got the captcha displaying, but can't seem to get the validation routine to work.

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

    Default Re: Adding reCAPTCHA to Contact Us Form

    bsteinagel..

    I don't do answers in PM's... I don't use CAPTCHA on that form.

    Have you tried CAPTCHA using true type fonts by Andrew in the addon section! Has CAPTCHA installed on the files your looking for. I use it with two fonts, not just the one it came with. Much better then the reCAPTCHA project.... no call backs.

    The only differnce with create_account is that its' form validation is in includes\modules\YOUR_TEMPLATE\create_account.php the edits should be close to the same as contact_us.
    Dave
    Always forward thinking... Lost my mind!

  5. #15
    Join Date
    Dec 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    I tried to input the reCAHPTHa code that process the "Contact Us" form into includes\modules\pages\contact_us\header_php.php but I get this error message.

    Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/.herbert/ostenzen/ostenzenherbs.com/includes/templates/simple_zen/templates/recaptchalib.php:47) in /home/.herbert/ostenzen/ostenzenherbs.com/includes/templates/template_default/templates/recaptchalib.php on line 55

    Where does the form reside that processes the contact us form?

    Help appreciated.

    --Chris

  6. #16
    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 jottoleivi View Post

    Fatal error: Cannot redeclare _recaptcha_qsencode() (previously declared in /home/.herbert/ostenzen/ostenzenherbs.com/includes/templates/simple_zen/templates/recaptchalib.php:47) in /home/.herbert/ostenzen/ostenzenherbs.com/includes/templates/template_default/templates/recaptchalib.php on line 55
    recaptchalib.php should not be in both folders, remove the one in template_default.
    Dave
    Always forward thinking... Lost my mind!

  7. #17
    Join Date
    Dec 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    That worked perfect!

    Thanks for your help.

    --Chris

  8. #18
    Join Date
    Jun 2009
    Posts
    5
    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 Davewest, i just recently installed zencart. I got the register Capthca working. I was trying to follow your instructions for the contact us page Capthca. I did everything correctly: header_php.php, tpl_contact_us.default.php, but i'm getting a white page? I noticed others seemed to get it to work? What did i do wrong? Thank you. Iaqsuk

  9. #19
    Join Date
    Jun 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Adding reCAPTCHA to Contact Us Form

    never mind, i figured it out, one too many ")" after

    and !empty($name).

    Got it working, thank you.

  10. #20
    Join Date
    Jun 2009
    Posts
    83
    Plugin Contributions
    4

    Default Re: Adding reCAPTCHA to Contact Us Form

    I finished writing the code for the reCAPTCHA plugin. It supports configuration options in the admin page, and only requires a few files to upload. I just uploaded it to the add ons, and waiting approval. Here is a link to download it.
    oldeparsonage.com/wp-content/uploads/2009/06/contactus_recaptcha_v1-0.zip

 

 
Page 2 of 19 FirstFirst 123412 ... 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

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR