jQuery allert after enabling Cookie Law
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Tue Jul 28, 2015 10:35 pm
- Reply with quote
- Report this post
Google arrogates from websites using AdSense a cookie law tool til September, 30.
So I enabled the build-in plugin for the Cookie Law. After enabling the module the browser shows an allert box with following information:
How can I update jQuery in this template?
Thanks in advance for assistance!
Versions installed:
Joomla 3.4.3
k2: 2.6.9
So I enabled the build-in plugin for the Cookie Law. After enabling the module the browser shows an allert box with following information:
"Developer: Caution! In order to use Cookie Consent, you need to use jQuery 1.4.4 or higher."
How can I update jQuery in this template?
Thanks in advance for assistance!
Versions installed:
Joomla 3.4.3
k2: 2.6.9
-
- Fresh Boarder
- GK User
- Tue Jul 28, 2015 10:47 pm
- Reply with quote
- Report this post
Hi,
in that template several months ago we used script from https://silktide.com/tools/cookie-consent/
but I guess it uses JQuery from Joomla itself, not from our template.
But please try to edit that file: gk_musicstate\layouts\blocks\cookielaw.php
and following part:
Replace with
If will not help, you have to use addcional cookie plugin/module until we do not fix it in future update
in that template several months ago we used script from https://silktide.com/tools/cookie-consent/
but I guess it uses JQuery from Joomla itself, not from our template.
But please try to edit that file: gk_musicstate\layouts\blocks\cookielaw.php
and following part:
<?php if($this->API->get('cookie_consent', '0') == '1') : ?>
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<!-- cookie conset latest version or not -->
<?php if($this->API->get('cookie_latest_version', '0') == '0') : ?>
<?php if($this->API->get('cookiecss', '1') == '1') : ?><link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/1.0.7/style.min.css"/><?php endif; ?>
<script type="text/javascript" src="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/1.0.7/plugin.min.js"></script>
<?php else : ?>
<?php if($this->API->get('cookiecss', '1') == '1') : ?><link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/current/style.min.css"/><?php endif; ?>
<script type="text/javascript" src="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/current/plugin.min.js"></script>
<?php endif; ?>
Replace with
<?php if($this->API->get('cookie_consent', '0') == '1') : ?>
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<!-- cookie conset latest version -->
<script type="text/javascript" src="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/current/plugin.min.js"></script>
If will not help, you have to use addcional cookie plugin/module until we do not fix it in future update
-
- Platinum Boarder
- GK User
- Wed Jul 29, 2015 11:49 pm
- Reply with quote
- Report this post
Thanks for the reply!
Unfortunately editing the file wasn't the solution. OK: The allert box disappeared. But build-in cookie law tool wasn't seen.
Using a external cookie law tool like Cookie Control from civikuk.com don't work - because it needs jQuery 1.4 also.
Unfortunately editing the file wasn't the solution. OK: The allert box disappeared. But build-in cookie law tool wasn't seen.
Using a external cookie law tool like Cookie Control from civikuk.com don't work - because it needs jQuery 1.4 also.
-
- Fresh Boarder
- GK User
- Thu Jul 30, 2015 12:24 pm
- Reply with quote
- Report this post
you can try to install addcional jquery plugin which will load new version.
-
- Platinum Boarder
- GK User
- Thu Jul 30, 2015 2:43 pm
- Reply with quote
- Report this post
Jep, tnx for the info about the additional plugin for installing a new version from jQuery.
I've used "eorisis: jQuery". The build-in cookie-law-tool is now running perfectly.
Thanks again for your assistance!
I've used "eorisis: jQuery". The build-in cookie-law-tool is now running perfectly.
Thanks again for your assistance!
-
- Fresh Boarder
5 posts
• Page 1 of 1