Nigel_S Posted April 19, 2013 Share Posted April 19, 2013 (edited) I can't find this anywhere else, so thought I'd share... As you may know, EU Legislation now requires sites that use any form of cookies to tell visitors to the site that they are being used, along the lines of: "This site uses some unobtrusive cookies to store information on your computer", thus allowing them the option to continue or not. I use the Cookie Control from civicuk.com, which I find does the job perfectly and is cost-free. This is how to do it: 1) Get onto the aformentioned civicuk.com and do the necessary to get your code and download the cookie control script. 2) Upload the control script the root of your site (I put it into a folder called "cookiecontrol"). 3) The code you generated should be installed into themes/[name_of_theme]/footer.tpl - but make sure you back it up first!! 4) Edit the file, scroll to the end and, just before the </body> tag, insert a pair of {literal} {/literal} tags. 5) Copy the generated code and paste it BETWEEN the "literal" tags. 6) Edit the path to where you copied the cookie control script - I used the full path to the file, just to be certain. 7) Again, just to make sure, I also added the full path to the latest version of jQuery.js, like this: <script src="http://code.jquery.c...ry-1.9.1.min.js" type="text/javascript"></script> 8) Finally, I updated the list of Countries that I wanted it to be active for and saved the file. Voila! Cookie Control made easy - I hope you find this useful. Nigel. Take a look at one of my development sites to see it working: www.gmnv.co.uk/stts I have attached my (edited) footer.tpl for reference: footer.zip Edited April 19, 2013 by Nigel_S (see edit history) 2 Link to comment Share on other sites More sharing options...
Recommended Posts