We have managed to embed the COOKIE CONSENT system developed by http://www.wolf-software.com, into this "DEMO" site: http://carpclobber.com
Several minor edits, but not too difficult. Though we are TESTING this for any unseen glitches.
Printable View
We have managed to embed the COOKIE CONSENT system developed by http://www.wolf-software.com, into this "DEMO" site: http://carpclobber.com
Several minor edits, but not too difficult. Though we are TESTING this for any unseen glitches.
Looks good.
Have you tested it with other languages (that have accents)? I often find they get mangled.
The whole thing is run by a JS file, into which you write appropriate text strings, so I don't see a problem with other languages.
Just load the LIB folder into the root of the server, then add the header code into your template's html_header.php... and away you go.
The header script calls in jquery from google, so if you are running mods calling in jquery (either from Google or elsewhere), then be sure to place the header script into html_header AFTER jquery is called, and to delete the embedded reference to jquery in the bit of script.
One part I am NOT sure on, is:
SEE: http://jconsent.dev.wolf-software.com/Quote:
How do I read the cookie ??
In order to be able to delivery consent that uses non essential cookies you need to be able to check if consent has been given!
if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
//We are allowed to present the feature that requires cookies
// Your code for feature here
} else {
//We are not allowed to present the feature that requires cookies
// Tell the user that they are getting a less-than-perfect experience?
}
My initial reaction was that it looked like a security warning and might scare people off. But presumably people in the EU will become used to these.
But what about the US, where most of our orders originate? Don't need that scaring people off just yet. Anyway to have it set for EU visitors only? Just a wish.
sph
www.prommart.com
This code has a GeoLocation element. It will display ONLY to visitors in the EU. The GeoLocation can be toggled to "true/false", and apparently does not work behind SSL (yet). Wolf is asking for contributions to help fund a SSL-ready version.
But as core ZC is not SSL on the index page, it should not be a problem.
Hi,
here http://www.zen-cart.com/showthread.p...icting-cookies
schoolboy posted the system by http://www.wolf-software.com, detailed over here http://jconsent.dev.wolf-software.com/
I tried the two following
# 1:
I put the lib folder in the root, and added this
to templates/MY_TEMPLATE/common/html_header.php right at the end just before </head>Code:<link href="/lib/jconsent/jconsent-default.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="/lib/jconsent/jconsent-1.0.1.js"></script>
<script type="text/javascript">
$(document).ready( function () {
$.ws.jconsent({
displaySettingsSelector: '.displayCookieSettings'
});
});
</script>
# 2:
I renamed the following files jconsent-1.0.3.js and jconsent-1.0.3.min.js into
jscript_t_jconsent-1.0.3.js and jscript_t_jconsent-1.0.3.min.js
and put them in templates/MY_TEMPLATE/jscript folder
renamed the jconsent-default.css into style_jconsent-default.css and put it in the templates/MY_TEMPLATE/css folder
In case #1 the slider I have in the header doesn't display, and in case #2 the slider does display, but in both cases the consent script won't display.
What am I doing wrong?
I have a slider in the header using jquery, and the files are in the templates/MY_TEMPLATE/jscript folder.
Site is amberprecious dot com
Thank you
Shall I open a new thread?
Hello
I've searched the forum to see if this has been answered and I can't find it anywhere.
I've installed Jconsent, a plugin from jconsent.dev.wolf-software.com/ in the hopes it will provide a solution to the EU cookie law issue. I use Google Analytics, AddThis, a little icon to Twitter and YouTube videos onsite and am presuming all or most of these use non-essential cookies?
The bit I'm confused about it how to read the cookie, the quotes below are taken from the webpage in the link provided.
Quote:
In order to be able to delivery consent that uses non essential cookies you need to be able to check if consent has been given!
I'm at a loss as to where to put this, would it go with the code where, for exampleQuote:
PHP
if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
//We are allowed to present the feature that requires cookies
// Your code for feature here
} else {
//We are not allowed to present the feature that requires cookies
// Tell the user that they are getting a less-than-perfect experience?
}
the AddThis code is and is there an example of the code to put in available?
I think this is a question that will crop up from time time in the future which is
why I started a new thread.
I don't mind paying a reasonable price for the solution, just let me know if that's how it will be
before Europe starts having to cart wheelbarrows full of cash about just to buy a loaf of bread ;)
"reading the cookies" is hardly the correct term.
*You* don't actually "read" the cookies at all.
Instead, you simply would not push to the user any code that sets or uses cookies to perform the functions you would normally ask it to do.
So, your "AddThis" or GA code would go in the section you quoted asie: all the echoing of <script> crap goes in that section. If what you're putting there isn't PHP code then you'll need to end and restart the PHP interpretation with appropriate ?> and <?php statements.Quote:
// Your code for feature here
And if you wish to add a message saying "less than optimal experience" in the other section, you can do that too.
Thus it would become:The site from which you got the code you quoted has some examples for doing those sorts of things.PHP Code:
<?php
if ((isset($_COOKIE['wsjconsent_consent'])) && ($_COOKIE['wsjconsent_consent'] == true)) {
//We are allowed to present the feature that requires cookies
// Your code for feature here
?>
<script junk for addThis crap and Google Analytics crap here>
<?php
} else {
//We are not allowed to present the feature that requires cookies
// Tell the user that they are getting a less-than-perfect experience?
?>
<your custom html or javascript code to display said message here>
<?php
}
?>
Hi,
I had opened a thread which was merged in the following thread, sorry to repost, but it seems the post is not of interest in the thread.
here http://www.zen-cart.com/showthread.p...icting-cookies
schoolboy posted the system by http://www.wolf-software.com, detailed over here http://jconsent.dev.wolf-software.com/
I tried the two following
# 1:
I put the lib folder in the root, and added this
to templates/MY_TEMPLATE/common/html_header.php right at the end just before </head>Code:<link href="/lib/jconsent/jconsent-default.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="/lib/jconsent/jconsent-1.0.1.js"></script>
<script type="text/javascript">
$(document).ready( function () {
$.ws.jconsent({
displaySettingsSelector: '.displayCookieSettings'
});
});
</script>
# 2:
I renamed the following files jconsent-1.0.3.js and jconsent-1.0.3.min.js into
jscript_t_jconsent-1.0.3.js and jscript_t_jconsent-1.0.3.min.js
and put them in templates/MY_TEMPLATE/jscript folder
renamed the jconsent-default.css into style_jconsent-default.css and put it in the templates/MY_TEMPLATE/css folder
In case #1 the slider I have in the header doesn't display, and in case #2 the slider does display, but in both cases the consent script won't display.
What am I doing wrong?
I have a slider in the header using jquery, and the files are in the templates/MY_TEMPLATE/jscript folder.
Site is amberprecious dot com
Thank you
Threads merged above because they're asking the same questions about how to implement the same thing.
Thanks for answering Dr. Byte. I know there are examples but I'm pretty useless at anything beyond maintenance on my best day and it's knowing what to actually write that's the problem. The GA bit is fine but the others I wouldn't know where to start.
I suppose the easiest way for those of us who don't know much is to ditch everything and go without anything other than the basic cart.
Thanks Baa.
Indeed I totally missed that "detail".
Unfortunatelly I managed to see it display only once!?
And now regardless of clearing the cache, and closing and relaunching the browser it doesn't display anymore, not to mention it does block the slider display.
Nevermind.
I think I solved it, if someone please checks at amberprecious dot com, and confirms I'll appreciate.
The slider was using jscript_a_jquery-1.6.2.min.js, I deleted that, and put
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
in common/html_header.php right before
* load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically
i tired this and i never worked for me, i chose a different way and use a script from civicuk.com/cookie-law/index again free
Hi, can I ask where you installed this script as I have tried on my zencart site by entering the code in english.php but it does not show up on the website. Did you add it someplace else?
I should say I have also tried to enter this script on another site I have which is just basic html and could not get it to work on there either so it may be something I am doing wrong.
1) go here http://civicuk.com/cookie-law/configuration and scroll down paste the remade codes for wordpress etc and then config the but how you would like it, left right, black white etc and enter the text you would like to display.
2)contiune and collect the code
3)right click and say as on the download button for the javascript.
4) upload the js to your server
5) add the code snippet from the website into your includes/templates/mytemple/tmp_header.php remember to change the location to where you upload the javascript file in stage 4
6) done
---------
you will need to add information on what cookies your site uses on people mechines etc and what they do etc. zencart uses session cookie and zenid cookies as standard, but you might also use google analytic cookie, youtube cookie, google adwords cookie if you have banner etc
Thanks for the pointer schoolboy, got it working a treat!
[QUOTE]This would also be helpful to me, as i'm having the same problem.
Will this js work with 1.3.9x?
Ta (thank you)
No matter what I do I cannot get this to work.
Can somebody put the instructions in KISS? I am using template 'IC Atheme', zencart v1.3.9.h
I know you guys have spent a long time talking about however little old cannot 'get it' Sorry :-(
Hi,
I tried this but still cannot get anything to show up - so far I have uploaded the javascript file to a new folder under public_html called cookies and I have changed the script to show this and included it at the bottom of the tpl_main_page.php file just above the </body> tog but nothing shows up on my site - any help appreciated as I am tearing my hair out over this and civic quoted a huge amount of money to install this for me :(
I am obviously missing something as not too good with php so if someone can point me in the right direction I would appreciate it.
The code I have in my tpl_main_page.php is (this is just the bottom half of the file):
Code:</table>
<?php
/**
* prepares and displays footer output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
$flag_disable_footer = true;
}
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>
</div>
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="/cookies/cookieControl-4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'<p>This site uses cookies to store information on your computer.</p>',
fullText:'<p>Some cookies on this site are essential, and the site won\'t work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you\'re not happy with this, we won\'t set these cookies but some nice features of the site may be unavailable.</p><p>By continuing to use this website you are agreeing to the placing of these Cookies.</p><p>By using our site you accept the terms of our <a href="http://www.beeunique.co.uk/privacy.html">Privacy Policy</a>.</p>',
position:'left', // left or right
shape:'triangle', // triangle or diamond
theme:'light', // light or dark
startOpen:true,
autoHide:10000,
subdomains:true,
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('');
GATracker._trackPageview();
});
}
//]]>
</script>
</body>
Sorry for double posting but it wont let me edit post above.
I have found that the tpl_main_page.php file shows up in 4 different places - I changed the one with the red * - should I change it somewhere else instead?
Attachment 10588
With all the hints here i got it working on my test site. - Thanks
Does anybody have a clue how to handle multiple languages for this?
The tpl_main_page.php MUST sit inside the COMMON folder(s) of the templates you have installed. If you have tpl_main_page.php in other directories, delete these instances.
Your asterisk shows you have edited the incorrect file. The one that needs editing sits inside the COMMON folder of your custom template.
If your site is LOCATED in the UK, then concern yourself only with English. IF it is LOCATED in another EU country, then translate the text to the language of that country.
If your site serves multiple countries, then just have the text in the language of your home country.
Which script are you talking about? Zencart plugin or http://civicuk.com/cookie-law?Quote:
The tpl_main_page.php MUST sit inside the COMMON folder(s) of the templates you have installed. If you have tpl_main_page.php in other directories, delete these instances
Forget the last post of mine. I have http://civicuk.com/cookie-law working !!!!!!!!!!! Taken me long enough.
As Schoolboy says, for http://civicuk.com/cookie-law to work you must edited the tpl_main_page.php inside the common folder under YOUR-TEMPLATE (I have put my code just before the </body> command.
Complete all questions info on the page then click on 'collect the code'.
Then you click on 'Download the Cookie Control script here' this will take you to the control script. Save this page as javascript and as cookieControl-4.1.min.js, this title may be put in for you. Now this is the bit I could not get my head around, where to put the javascript? I put mine in sub folder 'lib' in my route directory.
Then go back. On left side is some code pick that up and paste it into your /includes/templates/YOUR_DIRECTORY/common/tpl_main_page.php. Make changes to script as to where you have put your javascript. Mine says <script src="lib/cookieControl-4.1.min.js" type="text/javascript"></script> (where 'lib' directory is in the same file as my index page is).
I hope this helps you, or I might have got you completely lost. I have used this script as I cannot get the other plugin to work.
OK I was to quick. This method only worked once and now has given up. :-(
Hi Schoolboy,
Thank you for all the hints n tips, I have got the wolf script working :-) but I would love to alter the text to something more informative and less technical for Joe Public to understand. Could you please describe how you changed the text in your example site please, please, please.
Lol oh no :-( well once I get to my p.c later I can advise how I got the wolf script working on my site, if you would like me to? it works fine, www.shabbylane.co.uk
I have got the http://civicuk.com/cookie-law working. It is all down to a / in the wrong place. The line src="/PATH_TO_COOKIE_CONTROL/cookieControl-4.1.min.js" cookie control path, I have found, I should not have the / before it. With it the script does not work without it it does. IE my script says;and notQuote:
<script src="lib/cookieControl-4.1.min.js" type="text/javascript"></script>
Quote:
<script src="/lib/cookieControl-4.1.min.js" type="text/javascript"></script>
Yes pleaseQuote:
Lol oh no :-( well once I get to my p.c later I can advise how I got the wolf script working on my site, if you would like me to? it works fine,
Hi,
Ive got the Civicuk on working EXCEPT it breaks my slider on the index page (easy slider) as part of the template.
I have done some reading up and now know these two must be conflicting. Some sites talk about using jQuery.noConflict();
Trouble is I have no idea where or how to include this. I have attempted without success. Should this be placed in the civicuk code on tpl_mainpage.php?
or elswhere?
My code below:
-------------------------------
<script src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="cookieControl-4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'<p>This site uses some unobtrusive cookies to store information on your computer.</p>',
fullText:'<p>Some cookies on this site are essential, and the site won\'t work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you\'re not happy with this, we won\'t set these cookies but some nice features of the site may be unavailable.</p><p>By using our site you accept the terms of our <a href="http://www.thepersonalisedtouch.com/index.php?main_page=privacy">Privacy Policy</a>.</p>',
position:'right', // left or right
shape:'diamond', // triangle or diamond
theme:'dark', // light or dark
startOpen:true,
autoHide:6000,
subdomains:true,
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'United Kingdom' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('UA-26988682-1');
GATracker._trackPageview();
});
}
//]]>
</script>
</body>
Is there any reason why not to implement this notification using the stock Zen Cart message stack mechanism?
None of the solutions touted here seem to be multiple-language-friendly.
Hi adb34
my apologies for the delay (kids, enough said...lol)
This is just for the wolf script as first suggested to us all by Schoolboy (thank you again Schoolboy)
So, as we all know, add the lib folder and its contents to your site root then go to INCLUDES_TEMPLATES_YOUR TEMPLATE_COMMON_HTML_HEADER.PHP
as discussed those of us with sliders on our index page have had a few issues, so try this, it works just fine for me...
below is the last half of my html_header.php file for your ease as I personally often get lost when people are vague on where to write code into an existing file.
DO NOT SIMPLY COPY AND PASTE THE ABOVE CODING, USE IT TO COMPARE IT TO YOUR HTML_HEADER.PHP FILE to see where to load the wolf script. Why? Because I have other mods in this file, inparticular CJ Loader that runs FEC javascript and as mentioned I also have a slider on my index page.PHP Code:
<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<?php } //endif FAVICON ?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
<link rel="canonical" href="<?php echo $canonicalLink; ?>" />
<?php } ?>
<?php if($_GET['main_page']=='index' and !$_GET['products_id']){
?>
<script src="js/jquery-1.4.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.tools.min.js" type="text/javascript" charset="utf-8"></script>
<link href="./lib/jconsent/jconsent-default.css" rel="stylesheet" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="./lib/jconsent/jconsent-1.0.3.js"></script>
<script type="text/javascript">
$(document).ready( function () {
$.ws.jconsent({ noConsentCallback: function () {someoneClickedNo();} });
});
function someoneClickedNo() {
alert('Without an essential session ID, you may have problems shopping on our site. Proceed with your visit, and if you have difficulties, please contact us.');
};
$(document).ready( function () {
$.ws.jconsent({
displaySettingsSelector: '.displayCookieSettings',
geolocate: true
});
});
</script>
<?php
}
?>
<?php
/**
* load the loader files
*/
if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
$RI_CJLoader->autoloadLoaders();
$RI_CJLoader->loadCssJsFiles();
$files = $RI_CJLoader->header();
foreach($files['css'] as $file)
if($file['include']) include($file['src']);
else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<link rel=\"stylesheet\" type=\"text/css\" href='{$file['src']}' />\n";
else echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\" />\n";
foreach($files['jscript'] as $file)
if($file['include']) include($file['src']);
else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<script type='text/javascript' src='{$file['src']}'></script>\n";
else echo "<script type=\"text/javascript\" src=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\"></script>\n";
}
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
?>
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="includes/templates/MY_TEMPLATE/css/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="includes/templates/MY_TEMPLATE/css/ie7.css" /><![endif]-->
</head>
<?php // NOTE: Blank line following is intended: ?>
Note that I have changed the version to 1.0.3 (<script src="/lib/jconsent/jconsent-1.0.3.js"></script>) rather than 1.0.1
and thats it!
Good luck and please report back if it works just as much as I'm sure you would if it doesn't work.
OK, just thought I'd try this, but it works...I have got both (civicuk & wolf) script solutions working and happily playing together on my local install of my site by doing exactly as described within this thread.
Attachment 10601
:smartalec:
Mybe I have missed/overlooked it, but how did you avoid the slider conflict with civicuk?
OR which one is the easier to implement? maybe the 'Wolf' looks the least invasive to our guinea pig's (great how we UK's have to test al this out, as if things 'aint bad enough)
I put it down to luck rather than any skill that I have got them both working in tandum.
As for which one I agree, I think wolf script is less invasive, not that civicuk is actually invasive but once the shopper has clicked 'yes' then there its no more reminders that one used cookies therefore leaving them to get on with their browsing.
Picandnix
Thanks for the reply.... I would prefer to get the civicuk working.... Almost considering ridding the slider all together (not by choice)
Presuming 'someone' may have an answer to solving the slider conflict.... Have you got either set up for 'ALL' Euro' countries or just 'English' I presume it need to al EU?
Oh! Why can't one of our GREAT geeks write a mod ;)))
I have the civicuk working in multiple languages and as far as i can see nothing interfeers.
In the end it is a quick and dirty method but it works.
How i did it:
1. Generated and downloaded the script and code snippet from civicuk.
2. Created a sub-folder under the root of the site.
3. Placed de jquery.min.js from google there with the downloaded scipt from civicuk.
4. Created two sub-folders for my extra languages (de and nl) and placed the scripts there also.
My tree is now:
/
--/cookie_script
----jquery.min.js
----cookieControl-4.1.min.js
----/de
------cookieControl-4.1.min.js
----/nl
------cookieControl-4.1.min.js
Modified all tree instances of the script cookieControl-4.1.min.js takes its jquerie from the server instead of google.
(my site is in full ssl and the certificate was broken without this modification)
Translated the two scripts in the de and nl subfolders.
5. Modified the tpl_main_page.php in my_template_folder.
(It would be better to also modify the file in de default folder for if you ever start a new template)
Just before the final /body added the following code:
6. Thats all.Code:
<!--bof cookie control -->
<?php
if ($_SESSION['language']=='dutch') {
?>
<script src="https://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="/cookie_script/nl/cookieControl-4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'<p>Your dutch short text.</p>',
fullText:'<p>Your dutch long text.</p>',
position:'right', // left or right
shape:'triangle', // triangle or diamond
theme:'dark', // light or dark
startOpen:true,
autoHide:10000,
subdomains:true,
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'Europe, Anonymous Proxy'//'Europe, Anonymous Proxy' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('');
GATracker._trackPageview();
});
}
//]]>
</script>
<?php
} elseif ($_SESSION['language']=='german') {
?>
<script src="https://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="/cookie_script/de/cookieControl-4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'<p>Your german short text.</p>',
fullText:'<p>Your german long text.</p>',
position:'right', // left or right
shape:'triangle', // triangle or diamond
theme:'dark', // light or dark
startOpen:true,
autoHide:10000,
subdomains:true,
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'Europe, Anonymous Proxy' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('');
GATracker._trackPageview();
});
}
//]]>
</script>
<?php } else { ?>
<script src="https://www.geoplugin.net/javascript.gp" type="text/javascript"></script>
<script src="/cookie_script/cookieControl-4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
cookieControl({
introText:'<p>This site uses some unobtrusive cookies to store information on your computer.</p>',
fullText:'<p>Some cookies on this site are essential, and the site won\'t work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you\'re not happy with this, we won\'t set these cookies but some nice features of the site may be unavailable.</p><p>By using our site you accept the terms of our <a href="https://YOUR_SITE/privacy">Privacy Policy</a>.</p>',
position:'right', // left or right
shape:'triangle', // triangle or diamond
theme:'dark', // light or dark
startOpen:true,
autoHide:10000,
subdomains:true,
onAccept:function(){ccAddAnalytics()},
onReady:function(){},
onCookiesAllowed:function(){ccAddAnalytics()},
onCookiesNotAllowed:function(){},
countries:'Europe, Anonymous Proxy' // Or supply a list ['United Kingdom', 'Greece']
});
function ccAddAnalytics() {
jQuery.getScript("https://www.google-analytics.com/ga.js", function() {
var GATracker = _gat._createTracker('');
GATracker._trackPageview();
});
}
//]]>
</script>
<?php } ?>
<!--eof cookie control -->
This can work for any language and if you did not define the language in the tpl_man_page.php it will show the message in english.
Notis that all extarnal scripts are adressed in https and if you do not use full SSL change them back to http.
For me it works and i hope it is usefull for someone else.
(You can see it work on www.onderdelenmetshop.nl)
Hi, I will try adding the code to the common/tpl_main_page.php file instead.
Also I am wary of deleting the other files as I paid someone else to upgrade the website and I don't know if they left them there for a reason i.e. if I delete the others then something else they did may not work :(
Thank you all so much the civicuk one now works perfectly on my 1.3.9 version :)
picandnix..... SHUT UP ;))))
Was up at 2am on the las communication and 2.30 the morning after LOL
Bet he 'aint got a slider?
Getting there and thanks for the help BTW
Sounds to me like it's more trouble than it's worth wouldn't a sidebox with a link to your privacy page do, save all the aggro
the civicuk one is really easy tbh
choose locations and icons etc
copy the script provided, place in /includes/templates/(your temp)/common/tpl_main_page.php
place the script code at the very bottom, JUST BEFORE the closing </body>
then look at the script for the line saying <script src="/PATH_TO_COOKIE_CONTROL/cookieControl-5.0.min.js" type="text/javascript"></script>
And change it to say
<script src="./lib/cookieControl-5.0.min.js" type="text/javascript"></script>
save and upload
click the link on the civicuk page for the JS file
file save as...w/e its called
upload the file to a folder in your ROOT directory called lib
all should be working fine
picandnix...
No closer.... defo a conflict with EasySlider loading first and as they are on seperate calls (define_main_page.php for the slider) and (tpl_main_page.php) I can't see any easy way around it.... Not as if I could call the jscrip's from one page (in order)
Trying all the suggestions from general Java forums but nothing works as yet.
So far I have edidted the EasySlider call to the following.... (not working and about to call it a day)
<script>jQuery.noConflict(true);</script>
<script type="text/javascript" src="includes/templates/andover_modern/jscript/jscript_iquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#slider").easySlider({
auto: true,
continuous: true,
numeric: true
});
});
</script>
Might be worth asking Anne in her template thread http://www.picaflor-azul.com/support/viewforum.php?f=7
Thanks.. may well do...had enough for this day. Need to rest me heed!
dam it... Why oh WHY di the Brits have to go first ;(
Especially for you... :cool:
Attachment 10635
You don't even need to worry about this now.
Arghh... So, to which PR%CK do I send my bill ??
Oh... life in the UK eh?
"NO MONEY LEFT" amazing! So the Public School Boy's decide to give the banks 5 bill / month.... And...... No No no no.... Sorry! Not getting drawn on the subject. (off topic)
Our big problem in the UK is that the EU says "JUMP", and the UK says "HOW HIGH"...
The rest of the EU ignores these stupid directives from Brussels and gets on with the task of running business and life in general.
I wish we in the UK had the courage to tell the EU to P1SS OFF - like the rest of the member states do.
Agreed... And the other problem is we're still affected by Victorian principles of past, and we just KNOW the posh boys running this country would only be TOO WILLING to slap a heafty fine on those who dare not to comply!
Pity we do not all stick together and tell them we will follow Germany ;)
Screw ups so far granny tax pastie tax cookie consent scrapping harrier jump jet & nimrod, when's the next flight to la la land so we can send them all there. Sorry having a rant
"consent scrapping harrier jump Jet"
OUCH!!! and look how it did 30yrs ago!
Ok... Back on topic......
I have now taken the decision to NOT go with cookie law "pop-ups" (only got analytics running)
Too distracting, and 'Explicit Concent' now not needed... In short... Much pannick over 'a' nothing.
Search some .gov sites, like your councils, education's Etc. and see how many have gone to the trouble we did...
Simple banner at the very bottom (footer position 3) linking to the privacy page. Just ensure that page list's the cookies used...
And before a certain someone on here (who has been very helpful) pick's on me for not yet updating mine.... Well... it was another 'late-clicky-night' for another reason ;)
Will get mine done tomorrow.
Had this on my site from day one I think it's good enough.
Our Use of Cookies
Cookies are pieces of information that your browser stores on your computer's hard drive which identify you when you enter. The ability to select products on our site is not cookie-driven. We may use session cookies to provide a seamless experience on the site and to combine with our log files so that we can understand our site traffic and analyse our demographic information in aggregate form. If you have set your browser to reject cookies, our site will not identify you when you enter and you will need to manually type in your ID and password.
Picandix:
I just placed the image in the banner 'setup' and just entered the required URL into the banner form on the stup page. Mine is set for banner position 3
I will clear my pm's ;)
I couldnt for the life of me get this script to work, so I did a search and found this one instead. For anyone else who wants to keep in line with this legislation all you need to do is place the following in your tpl_main_page.php in your templates/common and just before </body>
Then place the js file got from this link into your site root... http://js.cookiesdirective.com/cooki...ctive-v1.4.zipCode:<script type="text/javascript">
function cookiesDirectiveScriptWrapper(){
// Cookie creating scripts etc here....
}
</script>
<script type="text/javascript" src="http://YOUR SITE ADDRESS HERE/1.4.js">
</script>
<script type="text/javascript">
// The position of the disclosure ('top' or 'bottom')
// Number of times to display disclosure. Enter 0 to show it forever!!!!
// The URI of your privacy policy
cookiesDirective('top',5,'ADDRESS TO YOUR PRIVACY POLICY HERE E.g. index.php?main_page=privacy');
</script>
big thanks to the http://cookiesdirective.com for this one
Thanks for the heads up on this from everyone involved - I'm thankful I read the whole thread.
Schoolboy - Carpclobber is a really cool and well designed demo site, nice 1.
Are the t shirt & hoodie templates your own? If not can you let me know where you got them as I would love to be able to used them.
Cheers
Brinley
dont know if anyone else getting this problem buit i just found that the civicuk script pops up SSL security issue "insecure content" pop up in chrome when moving to ssl pages, ie login etc.
anyone else found this issue? or solved it?
I found the exact same thing and had to remove it as big red ''insecure content'' warnings at login was bad enough but at checkout is a big no no! I read on here and other websites that the rules had been relaxed so I removed the script and placed a line of text on the site with a link to the cookies info instead. If this civic problem gets resolved I would re-add it. Just wanted you to know it was not just on your site :)
i have spoke with civic and the problem is the GeoPlugin, what you need to do is replace the link in the code to a secure SSL geoplugin,
https://groups.google.com/forum/#!se...A/WhsdYisbu-cJ
could also maybe wrap this with php so it only includes it or displays it on non ssl pages?? as I think people wont land on a site on a ssl page.
I am working on a plug in for the Civic code. It will be finished in a day or so. This makes it multilingual and has an admin page to edit the settings. this makes it simple to install
Nice one Design75 :hug: I know the rules changed but in a case like this it's better to be safe than sorry So this will be really useful
the module has been submitted and is waiting to be approved. the support thread is Cookie Control Support Thread. As sson as the module is approved Iwill post a link in that thread with the location of the module.