Results 1 to 10 of 676

Threaded View

  1. #11
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Support Thread for Google reCAPTCHA plugin

    Quote Originally Posted by David Allen View Post
    Hi eric
    I think the problem comes with having the two reCAPTCHAs on the same page.
    Could you try re-naming the form in mega-menu, so in tpl_mega_menu.php at line 238, change
    Code:
    <?php echo zen_draw_form('contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
    to
    Code:
    <?php echo zen_draw_form('another_contact_us', zen_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
    Then try with the
    Code:
    <?php echo recaptcha_get_html($publickey, $resp->error, $request_type == 'SSL'); ?>
    added into both forms.

    I haven't tried it so let me know how you get on, and good luck with the rest of the site :)

    Regards
    Here's my thought on it, based on David's response and thinking about this through the weekend:

    The process for reCaptcha I think is basically this: Assign an error checking value so that it defaults to an error, load/show the reCaptcha, enter the data, submit, and reset the error check if all of the data was entered and is correct. So, when the menu loads, the contact_us error checking is initiated (again, if not quite right, I think the process I am describing will work itself out) resetting any value that identified a satisfactory entry. As for being on the contact us page, there probably is something associated with what David is describing above; however, there may be some other affects of changing the form action...

    Based on the report of the OP, that removing the contact_us from the menu bar allows the reCaptcha to be seen on the contact_us page, and the fact that after submission of the reCaptcha from the menu_bar that it appears that the user entered the wrong reCaptcha information, my recommendation would be in the tpl_mega_menu (or wherever the contact_us section is loaded by the template/menu system) to compare the current page's main_page value to either the contact_us page or (and I forget if a successful result goes to another page) the successful contact_us page and if the main_page equals either of those, to not display the contact_us section in the menu...

    Make sense? Afterall, if on the contact_us page, why have a second contact_us option that mimics the current page?
    Last edited by mc12345678; 18 Nov 2013 at 02:31 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Support Thread for CKEditor Plugin
    By DivaVocals in forum Addon Admin Tools
    Replies: 213
    Last Post: 18 Nov 2024, 04:17 AM
  2. Back to Top Plugin [Support Thread]
    By picaflor-azul in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 6 Feb 2016, 10:52 PM
  3. v151 Plug 'n' Pay plugin [Support Thread]
    By KetchRescue in forum Addon Payment Modules
    Replies: 5
    Last Post: 28 Nov 2015, 04:56 AM
  4. Justuno Plugin [Support Thread]
    By JustunoApp in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 24 May 2015, 11:00 PM
  5. VendingBox Plugin Support Thread
    By vb_support in forum All Other Contributions/Addons
    Replies: 31
    Last Post: 10 Feb 2013, 07:24 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