Page 1 of 2 12 LastLast
Results 1 to 10 of 690

Hybrid View

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

    Default Re: Support Thread for Google reCAPTCHA

    Quote Originally Posted by Coins2012 View Post
    When I add the code and click on the 'Ask a question about this product' the website shows blank page, nothing on it, when I remove the code it works fine so not sure what's going on. Below is the code from line 1 to 59 so when you say insert it around line 40 I guess I am counting the blank lines also?

    <?php
    /**
    * Ask a Question Page (based on Contact Us Page)
    *
    * @package page
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $
    */


    $valid_product = false;
    if (isset($_GET['products_id'])) {
    $product_info_query = "select pd.products_name, p.products_image, p.products_model
    from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
    where p.products_status = '1'
    and p.products_id = '" . (int)$_GET['products_id'] . "'
    and p.products_id = pd.products_id
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'";

    $product_info = $db->Execute($product_info_query);

    if ($product_info->RecordCount() > 0) {
    $valid_product = true;
    }
    }

    if ($valid_product == false) {
    zen_redirect(zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']));
    }

    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

    $error = false;
    if (isset($_GET['action']) && ($_GET['action'] == 'send')) {
    $name = zen_db_prepare_input($_POST['contactname']);
    $email_address = zen_db_prepare_input($_POST['email']);
    $enquiry = zen_db_prepare_input(strip_tags($_POST['enquiry']));

    $zc_validate_email = zen_validate_email($email_address);

    if ($zc_validate_email and !empty($enquiry) and !empty($name)) {
    // auto complete when logged in
    if($_SESSION['customer_id']) {
    $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id
    FROM " . TABLE_CUSTOMERS . "
    WHERE customers_id = :customersID";

    $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer');
    $check_customer = $db->Execute($sql);
    $customer_email= $check_customer->fields['customers_email_address'];
    $customer_name= $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname'];
    } else {
    $customer_email='Not logged in';
    $customer_name='Not logged in';
    }

    // use contact us dropdown if defined
    Typically yes, when a line number is provided blank lines are included and the "second line" of code that wraps around the screen does not count. Considering that David downloaded a recent copy and that the line suggested to modify doesn't match a similar line in the code provided, are you sure that you have the most up-to-date? Also, when providing code, please place it between the appropriate code blocks like ['CODE'] and [/'CODE'] (with the apostrophe's removed).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA

    I am not sure which version I have, it was installed towards end of 2012, is there a way to check what version it was installed?



    Quote Originally Posted by mc12345678 View Post
    Typically yes, when a line number is provided blank lines are included and the "second line" of code that wraps around the screen does not count. Considering that David downloaded a recent copy and that the line suggested to modify doesn't match a similar line in the code provided, are you sure that you have the most up-to-date? Also, when providing code, please place it between the appropriate code blocks like ['CODE'] and [/'CODE'] (with the apostrophe's removed).

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Support Thread for Google reCAPTCHA

    Quote Originally Posted by Coins2012 View Post
    I am not sure which version I have, it was installed towards end of 2012, is there a way to check what version it was installed?
    Yes and no/depends. This conversation is diverging from the central focus of this thread. Might I suggest bening a new thread and then posting the link to that thread in here. My guess would be that it has been updated. At the very least if you go to the current plugin and an update has been provided almost at any time in 2013, then probably old.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA

    I got it working, it was my error, was not entering the code correctly, now it displays the Captcha and works fine when entering the wrong info but when entering the correct captcha info, the email is not sent and error shows that sayts "Error invalid-site-private-key".

    Any ideas?


    Quote Originally Posted by mc12345678 View Post
    Yes and no/depends. This conversation is diverging from the central focus of this thread. Might I suggest bening a new thread and then posting the link to that thread in here. My guess would be that it has been updated. At the very least if you go to the current plugin and an update has been provided almost at any time in 2013, then probably old.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Support Thread for Google reCAPTCHA

    Quote Originally Posted by Coins2012 View Post
    I got it working, it was my error, was not entering the code correctly, now it displays the Captcha and works fine when entering the wrong info but when entering the correct captcha info, the email is not sent and error shows that sayts "Error invalid-site-private-key".

    Any ideas?
    Is this the only place that you have recaptcha activated? Have you tried at say the contact us page?

    If the answer is first time trying, then I would suggest revisiting the installation instructions. There are some things that need to be entered, changed, etc in order for this plugin to communicate properly with google and validate the entry. Basically need to have an account and provide the plugin the "login" details.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2012
    Posts
    89
    Plugin Contributions
    0

    Default Re: Support Thread for Google reCAPTCHA

    I have it in the Contact US Page and Create Account Page, that works fine, not getting error but sometimes even if you don't enter the capthca info it still sends the info and you are able to create an account, I think some other people had this problem.

    As far as the 'As A Question', not sure why I am getting that error.




    Quote Originally Posted by mc12345678 View Post
    Is this the only place that you have recaptcha activated? Have you tried at say the contact us page?

    If the answer is first time trying, then I would suggest revisiting the installation instructions. There are some things that need to be entered, changed, etc in order for this plugin to communicate properly with google and validate the entry. Basically need to have an account and provide the plugin the "login" details.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Support Thread for Google reCAPTCHA

    Quote Originally Posted by Coins2012 View Post
    I have it in the Contact US Page and Create Account Page, that works fine, not getting error but sometimes even if you don't enter the capthca info it still sends the info and you are able to create an account, I think some other people had this problem.

    As far as the 'As A Question', not sure why I am getting that error.
    Okay, couple of things going on with that statement: sometimes things work, sometimes they don't. If the sometimes this plugin doesn't stop traffic there are a few things to look into. Do you have files that have been "renamed" but still end with .php? So like header_php_old.php for example. (In most cases any file ending in .php will be loaded. Sometimes alphabetically, sometimes by whatever, etc...need to verify that the applicable "trigger" code is provided so that can't leave a blank entry or incorrectly enter the recaptcha and for it to carry on.

    Now, about the current ask a question issue. It seems that perhaps the "last" necessary file is not "loaded". Wondering if this is a result of a missing notifier, or the observer is not looking for the notifier that is present or a combination. The thought being, when a specific line of code is processed, that a series of actions occurs which includes loading the file that has your credentials for recaptcha.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jun 2013
    Location
    UK
    Posts
    49
    Plugin Contributions
    0

    help question Re: Support Thread for Google reCAPTCHA

    Problem with the display of the reCapture image.

    I have installed this excellent addition to my site, but the image is not displaying correctly on any of three relevant pages.

    Please can anybody tell me how I 'clean-up' this image?

    I am using 1.5.3 with the Responsive Sterling Grand Template

    Click image for larger version. 

Name:	ReCapture.JPG 
Views:	240 
Size:	35.0 KB 
ID:	14798

  9. #9
    Join Date
    Feb 2008
    Location
    Amersham, Buckinghamshire, United Kingdom
    Posts
    141
    Plugin Contributions
    1

    Default Re: Support Thread for Google reCAPTCHA

    Saw this before once - it's your css that is causing it. I'll see if I can find the previous post with the same problem. In the meantime a link to your site would be useful.
    Regards
    David

  10. #10
    Join Date
    Feb 2008
    Location
    Amersham, Buckinghamshire, United Kingdom
    Posts
    141
    Plugin Contributions
    1

    Default Re: Support Thread for Google reCAPTCHA

    Found the previous post - looks like it wasn't css, but a problem with some image scripts
    Regards
    David

 

 
Page 1 of 2 12 LastLast

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

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