Cookie Control

Started by Fusionhost, November 07, 2013, 01:57:52 AM

Fusionhost

Hi guys,

I want to put cookie control notification on my website in the bottom corner of my website.  But I cannot work out where to put the code? It is in tags.

http://www.civicuk.com/cookie-law/index

When I do this, I receive this message:

QuoteUh oh! Something went wrong ...
Our billing system encountered an temporary error.
Please try to perform last action again. If error persists let us know, we will do our best to fix it.

All EU countries have to have this by law which I informed Kris P of as soon as it was passed.  Needless to say they have not got back to me and I cannot reopen the closed ticket   :o

Any ideas, fixes?

Thanks
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

Fusionhost

fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

Danny

Have you added your code in this tag {literal} your code {/literal} ??
regards
Danny

Fusionhost

Do I add that myself, in the footer?
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

Danny

Yes you must add this in the template file on footer or header where you want
regards
Danny

Fusionhost

I've done that and nothing displays :/  See below, the ## is the folder the files are located in.

Quote
<!-- Footer End -->
{literal}
    <script src="/####/cookieControl-6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
      cookieControl({
          t: {
              title: '<p>This site uses cookies to store information on your computer.</p>',
              intro: '<p>Some of these cookies are essential to make our site work and others help us to improve by giving us some insight into how the site is being used.</p>',
              full:'<p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you\'re not happy with this, we won\'t set these cookies but some nice features on the site may be unavailable.</p><p>To control third party cookies, you can also <a class="ccc-settings" href="browser-settings" target="_blank">adjust your browser settings.</a></p><p>By using our site you accept the terms of our <a href="https://www.fusionhost.co.uk/page/terms-of-service/">Privacy Policy</a>.</p>'
          },
          position:CookieControl.POS_LEFT,
          style:CookieControl.STYLE_TRIANGLE,
          theme:CookieControl.THEME_LIGHT, // light or dark
          startOpen:true,
          autoHide:3000,
          subdomains:true,
          protectedCookies: [], //list the cookies you do not want deleted, for example ['analytics', 'twitter']
          apiKey: '19e10b70ec566d71e07295c956e2a324a46ded9f',
          product: CookieControl.PROD_FREE,
          consentModel: CookieControl.MODEL_INFO,
          onAccept:function(){},
          onReady:function(){},
          onCookiesAllowed:function(){},
          onCookiesNotAllowed:function(){}
          });
       //]]>
    </script>
{/literal}
</body>
</html>

Javascript files installed, path and code done.
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

Danny

Can you access this /####/cookieControl-6.2.min.js if you add your URL like http://domain.tld//####/cookieControl-6.2.min.js if not, than the the link is wrong.

The {literal} tag is working as you can see there is no more error if you go to your site. If there is no action on the site than something on the code is wrong like the link to the cookieControl-6.2.min.js. For testing you can upload the cookieControl-6.2.min.js to your site like http://www.my-domain.de/cookieControl-6.2.min.js and add than this on your code <script src="http://www.my-domain.de/cookieControl-6.2.min.js" type="text/javascript"></script> if this is than working your like before was wrong.
regards
Danny

Fusionhost

It is inside a template folder.  Is that not advisable?  As the directory is correct.
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider

Danny

i mean the thing with the URL above for testing only, so if this has worked, then there was something wrong with the local file or local file link.
regards
Danny

Fusionhost

Sorted it, thanks :) I missed /template/ out, doh
fusionhost - www.fusionhost.co.uk
Leading British Cloud Web Hosting Provider