Results 1 to 10 of 174

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    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

  2. #2
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    thanks

    bn

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    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

  4. #4
    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

  5. #5
    Join Date
    Jan 2013
    Posts
    2
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    I've done a bit more digging and it appears to be a jquery problem on a sub-domain, the Zencart site I installed it on was a test site which was a sub-domain. I've installed it on a www. domain and the cookie control appears ok.
    Though I am seeing a problem on IE7 - the text at the top of the box doesn't display correctly - the 'c' icon just repeats obscuring the words 'Cookie Control'. IE8 and IE9 appear ok...

    Thanks, Peter

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

    Default Re: Cookie Control Support Thread

    thanks for the update The lay out of cookie control is out of the box as done by the developers of civic, and I must admit didn't really bother to check on older browsers for that.

  7. #7
    Join Date
    Oct 2010
    Location
    Shropshire
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    Just installed - straight forward for a novice - great. Its on http://www.freight-stop-shop.co.uk/tickets/

    I wonder if I missed something -
    Normally when you 'mouse over' a button the button changes colour and the mouse pointer changes to a 'hand'.
    Why is this not the case when the mouse goes over the 'cookie toggle' button?

    Is the cookie toogle button supposed to look as it does? with the 'green 'On' to the right, and the red 'Off' to the left and the On/Off buttons not lined up?

    Currently we dont use google analytics - but the 'onAccept' jscript code still calls ccAddAnalytics - should it? I tried setting the analytics string to an empty string - but it is still called - I had expected that with the string empty the code generated for onAccept would not call ccAddAnalytics.

    Any advice appreciated.

    Allan
    Last edited by tsrplatelayer; 8 Jan 2013 at 11:32 AM.

  8. #8
    Join Date
    Oct 2010
    Location
    Shropshire
    Posts
    174
    Plugin Contributions
    0

    Default Re: Cookie Control Support Thread

    Just checked on http://www.civicuk.com/cookie-law/index
    and the mouse over changes to a hand - but the image does not change colour,

    but this is not the case on my installation.

    Allan

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3672
    Last Post: 11 Sep 2025, 05:07 PM
  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

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