Page 3 of 18 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 173
  1. #21
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    looking at your source code it is not only the script loading twice, but all you css an scripts.
    Once the normal way and once minified.
    I think you did something wrong in your header.php file when you installed the css loader

  2. #22
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    You also have a rewrite module for your urls active, maybe that's not configured properly

  3. #23
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    I submitted version 1.3

    The biggest change is the removal of the css from the javascript, and putting it in its own css file. This way it is much easier to customize. It also makes the script a lot smaller.
    The seccond change is also in jscript_cookieControl-5.1.min.php. I changed some code, so the jquery from google will be called using https when applicable

  4. #24
    Join Date
    May 2005
    Location
    England
    Posts
    626
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    Hello there,

    Is there a way to disable the script on secure pages? I get the 'do you want to display insecure content' on checkout and login. Thanks for any help with this, it is a great module by the way.

  5. #25
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    Quote Originally Posted by HeathenMagic View Post
    Hello there,

    Is there a way to disable the script on secure pages? I get the 'do you want to display insecure content' on checkout and login. Thanks for any help with this, it is a great module by the way.
    If you install version 1.3, it should resolve your problem. I had the same, which was the main reason this latest version was created.

    You only need to replace the file "includes\templates\YOUR_TEMPLATE\jscript\jscript_cookieControl-5.1.min.php" , and add "includes\templates\YOUR_TEMPLATE\css\stylesheet_cookie_control.css" from the new file package

  6. #26
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    Hi,
    i have installed this but think it is effecting my ssl, no padlock showing

    www.onyourbike.co.uk

    have i installed it properly ?

    i did change 2 files and got padlock to show but have removed it in case im not correct

    i changed the 3 images in css file, i uploaded them to my site and changed

    *background-image: url(./includes/templates/onyourbike/images/ccc-icons.gif);
    *background-image: url(./includes/templates/onyourbike/images/widget-x.gif);
    *background-image: url(./includes/templates/onyourbike/images/switch.png);

    i changed tpl_cookie_control.php

    PHP Code:
    <?php
    if ($request_type == 'NONSSL') { ?>
    <script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
    <?php } else { ?>
    <script src="https://ssl.geoplugin.net/javascript.gp" type="text/javascript"></script>
    <?php ?>
    <?php 
    if ($request_type == 'NONSSL') { ?>
    <script type="text/javascript">//<![CDATA[
      cookieControl({
          introText:'<?php echo COOKIE_CONTROL_INTROTEXT;?>',
          fullText:'<p><?php echo COOKIE_CONTROL_FULLTEXT;?> <a href="<?php echo HTTP_SERVER DIR_WS_CATALOG;?>index.php?main_page=privacy">Privacy Policy</a>.</p>',
          cookieOnText:'<?php echo COOKIE_CONTROL_COOKIES_ON;?>',
          cookieOffText:'<?php echo COOKIE_CONTROL_COOKIES_OFF;?>',
          position:'<?php echo COOKIE_CONTROL_POSITION;?>',
          shape:'<?php echo COOKIE_CONTROL_SHAPE;?>',
          theme:'<?php echo COOKIE_CONTROL_THEME;?>',
          startOpen:<?php echo COOKIE_CONTROL_STARTOPEN;?>, // true , false
          autoHide:<?php echo COOKIE_CONTROL_AUTOHIDE;?>, // Time in miliseconds
          protectedCookies: [<?php echo COOKIE_CONTROL_PROTECTEDCOOKIES;?>], //list the cookies you do not want deleted ['analytics', 'twitter']
          consentModel:'<?php echo COOKIE_CONTROL_CONSENTMODEL;?>', // information_only , implicit , explicit
          subdomains:<?php echo COOKIE_CONTROL_SUBDOMAINS;?>, // true , false
          onAccept:function(){ccAddAnalytics();},
          onReady:function(){},
          onCookiesAllowed:function(){ccAddAnalytics();},
          onCookiesNotAllowed:function(){},
          countries:'<?php echo COOKIE_CONTROL_COUNTRIES;?>' // Or supply a list ['United Kingdom', 'Greece']
          });

          function ccAddAnalytics() {
            jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
              var GATracker = _gat._createTracker('<?php echo COOKIE_CONTROL_GOOGLE_ANALYTICS ?>');
              GATracker._trackPageview();
            });
          }
       //]]>
    </script>
    <?php } else { ?>
    <script type="text/javascript">//<![CDATA[
      cookieControl({
          introText:'<?php echo COOKIE_CONTROL_INTROTEXT;?>',
          fullText:'<p><?php echo COOKIE_CONTROL_FULLTEXT;?> <a href="<?php echo HTTP_SERVER DIR_WS_CATALOG;?>index.php?main_page=privacy">Privacy Policy</a>.</p>',
          cookieOnText:'<?php echo COOKIE_CONTROL_COOKIES_ON;?>',
          cookieOffText:'<?php echo COOKIE_CONTROL_COOKIES_OFF;?>',
          position:'<?php echo COOKIE_CONTROL_POSITION;?>',
          shape:'<?php echo COOKIE_CONTROL_SHAPE;?>',
          theme:'<?php echo COOKIE_CONTROL_THEME;?>',
          startOpen:<?php echo COOKIE_CONTROL_STARTOPEN;?>, // true , false
          autoHide:<?php echo COOKIE_CONTROL_AUTOHIDE;?>, // Time in miliseconds
          protectedCookies: [<?php echo COOKIE_CONTROL_PROTECTEDCOOKIES;?>], //list the cookies you do not want deleted ['analytics', 'twitter']
          consentModel:'<?php echo COOKIE_CONTROL_CONSENTMODEL;?>', // information_only , implicit , explicit
          subdomains:<?php echo COOKIE_CONTROL_SUBDOMAINS;?>, // true , false
          onAccept:function(){ccAddAnalytics();},
          onReady:function(){},
          onCookiesAllowed:function(){ccAddAnalytics();},
          onCookiesNotAllowed:function(){},
          countries:'<?php echo COOKIE_CONTROL_COUNTRIES;?>' // Or supply a list ['United Kingdom', 'Greece']
          });

          function ccAddAnalytics() {
            jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
              var GATracker = _gat._createTracker('<?php echo COOKIE_CONTROL_GOOGLE_ANALYTICS ?>');
              GATracker._trackPageview();
            });
          }
       //]]>
    </script>
    <?php ?>
    can anyone let me know if this is correct

    thanks
    bn
    Last edited by bn17311; 30 Nov 2012 at 11:08 PM.

  7. #27
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    Hi Brian,

    You are right, the problem was the google code not being called through https.

    I altered oyur solution a little to keep the code more maintainable

    This is how it will look in a next release, if nothing else changes

    PHP Code:
    <?php
    if ($request_type == 'NONSSL') { ?>
    <script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
    <?php } else { ?>
    <script src="https://ssl.geoplugin.net/javascript.gp" type="text/javascript"></script>
    <?php ?>
    <script type="text/javascript">//<![CDATA[
      cookieControl({
          introText:'<?php echo COOKIE_CONTROL_INTROTEXT;?>',
          fullText:'<p><?php echo COOKIE_CONTROL_FULLTEXT;?> <a href="<?php echo HTTP_SERVER DIR_WS_CATALOG;?>index.php?main_page=privacy">Privacy Policy</a>.</p>',
          cookieOnText:'<?php echo COOKIE_CONTROL_COOKIES_ON;?>',
          cookieOffText:'<?php echo COOKIE_CONTROL_COOKIES_OFF;?>',
          position:'<?php echo COOKIE_CONTROL_POSITION;?>',
          shape:'<?php echo COOKIE_CONTROL_SHAPE;?>',
          theme:'<?php echo COOKIE_CONTROL_THEME;?>',
          startOpen:<?php echo COOKIE_CONTROL_STARTOPEN;?>, // true , false
          autoHide:<?php echo COOKIE_CONTROL_AUTOHIDE;?>, // Time in miliseconds
          protectedCookies: [<?php echo COOKIE_CONTROL_PROTECTEDCOOKIES;?>], //list the cookies you do not want deleted ['analytics', 'twitter']
          consentModel:'<?php echo COOKIE_CONTROL_CONSENTMODEL;?>', // information_only , implicit , explicit
          subdomains:<?php echo COOKIE_CONTROL_SUBDOMAINS;?>, // true , false
          onAccept:function(){ccAddAnalytics();},
          onReady:function(){},
          onCookiesAllowed:function(){ccAddAnalytics();},
          onCookiesNotAllowed:function(){},
          countries:'<?php echo COOKIE_CONTROL_COUNTRIES;?>' // Or supply a list ['United Kingdom', 'Greece']
          });
    <?php if ($request_type == 'NONSSL') { ?>
          function ccAddAnalytics() {
            jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
              var GATracker = _gat._createTracker('<?php echo COOKIE_CONTROL_GOOGLE_ANALYTICS ?>');
              GATracker._trackPageview();
            });
    <?php } else { ?>
          function ccAddAnalytics() {
            jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
              var GATracker = _gat._createTracker('<?php echo COOKIE_CONTROL_GOOGLE_ANALYTICS ?>');
              GATracker._trackPageview();
            });
    <?php ?> 
          }
       //]]>
    </script>
    I had not noticed this fault myself, because I use an altered version to work with the Simple analytics module from berezin

  8. #28
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    thanks

    bn

  9. #29
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Cookie Control Support Thread

    I just submitted an update.
    Version 1.4

    Cookie Control v1.4 Change-log
    • Resolved another https issue
    • Added an option to hide Cookie Control completely after the customer has given consent
    • Updated Readme

  10. #30
    Join Date
    Jan 2013
    Posts
    2
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    Hi,

    cookie control version 1.4 - which I think is the latest version available for Zencart, in IE9 on a zencart 1.39 store, with the IE privacy settings set to 'Medium' or above, the cookie control seems to be blocked and doesn't appear.
    Change privacy to low and the cookie control appears.

    Ps: version 1.5 for wordpress doesn't seem to have this problem.

    any help much appreciated...

    Peter

 

 
Page 3 of 18 FirstFirst 1234513 ... LastLast

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3600
    Last Post: 7 Apr 2024, 05:20 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. BackUp ZC [Support Thread]
    By skipwater in forum All Other Contributions/Addons
    Replies: 285
    Last Post: 23 Dec 2020, 10:40 AM
  4. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  5. Replies: 7
    Last Post: 7 Apr 2011, 10:34 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