Cookie-law banner don't work
October 2015 Joomla Template
Rate this topic:
- GK User
- Wed Mar 29, 2017 1:24 pm
- Reply with quote
- Report this post
I'm having problems with the cookie-law banner. Google Chrome shows me this error:
Failed to load resource: the server responded with a status of 403 (Forbidden). Plugin.min.js
Could you help me solve this?
Thanks
Failed to load resource: the server responded with a status of 403 (Forbidden). Plugin.min.js
Could you help me solve this?
Thanks
-
- Expert Boarder
- Joshua M
- Fri Mar 31, 2017 9:10 pm
- Reply with quote
- Report this post
Hi,
Please edit your layouts/blocks/cookielaw.php file and change this line:
into:
Please edit your layouts/blocks/cookielaw.php file and change this line:
- Code: Select all
<script type="text/javascript" src="https://s3-eu-west-1.amazonaws.com/assets.cookieconsent.silktide.com/current/plugin.min.js"></script>
into:
- Code: Select all
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>
-
- Moderator
- GK User
- Sun Apr 02, 2017 11:43 am
- Reply with quote
- Report this post
I have done this that you tell me to do and now if a cookie warning appears. But this notice is not the same as it was before. It don't have the same options and css styles...
-
- Expert Boarder
- GK User
- Mon Apr 03, 2017 12:48 pm
- Reply with quote
- Report this post
Hi!
The translation has also been lost.
How can I modify this plugin? I need to modify the text and also add a link to the cookies policy
Thanks
The translation has also been lost.
How can I modify this plugin? I need to modify the text and also add a link to the cookies policy
Thanks
-
- Expert Boarder
- Joshua M
- Tue Apr 04, 2017 3:25 pm
- Reply with quote
- Report this post
Hi,
Cookieconsent script was changed unfortunately, so we have to modify and adjust our template settings and styles. We'll fix it with the next templates update.
Cookieconsent script was changed unfortunately, so we have to modify and adjust our template settings and styles. We'll fix it with the next templates update.
-
- Moderator
- GK User
- Tue Apr 04, 2017 9:54 pm
- Reply with quote
- Report this post
Wow... Something else to do in this template...
How can I translate the text of the plugin?
This page for example uses this same plugin, but it is in Spanish and includes a link to the page of terms and conditions.
Thanks
How can I translate the text of the plugin?
This page for example uses this same plugin, but it is in Spanish and includes a link to the page of terms and conditions.
Thanks
-
- Expert Boarder
- Joshua M
- Wed Apr 05, 2017 10:27 am
- Reply with quote
- Report this post
You have to replace this fragment from cookielaw.php file:
with this code (add your own text phrases and link):
- Code: Select all
<script type="text/javascript">
// <![CDATA[
cc.initialise({
cookies: {
social: {},
analytics: {}
},
settings: {
bannerPosition: <?php echo '"'.$this->API->get('banner_position', 'bottom').'"'; ?>,
consenttype: <?php echo '"'.$this->API->get('consenttype', 'explicit').'"'; ?>,
onlyshowbanneronce: false,
style: <?php echo '"light"'; ?>,
refreshOnConsent: <?php if($this->API->get('refreshOnConsent', '0') == '1') : ?>true<?php else : ?>false<?php endif; ?>,
useSSL: <?php if($this->API->get('cookie_use_ssl', '0') == '1') : ?>true<?php else : ?>false<?php endif; ?>,
tagPosition: <?php echo '"'.$this->API->get('banner_tag_placement', 'bottom-right').'"'; ?>
},
strings: {
socialDefaultTitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SOCIALDEFAULTTITLE'); ?>',
socialDefaultDescription: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SOCIALDEFAULTDESCRIPTION'); ?>',
analyticsDefaultTitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ANALYTICSDEFAULTTITLE'); ?>',
analyticsDefaultDescription: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ANALYTICSDEFAULTDESCRIPTION'); ?>',
advertisingDefaultTitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ADVERTISINGDEFAULTTITLE'); ?>',
advertisingDefaultDescription: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ADVERTISINGDEFAULTDESCRIPTION'); ?>',
defaultTitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_DEFAULTTITLE'); ?>',
defaultDescription: '<?php echo JText::_('TPL_GK_LANG_COOKIE_DEFAULTDESCRIPTION'); ?>',
learnMore: '<?php echo JText::_('TPL_GK_LANG_COOKIE_LEARNMORE'); ?>',
closeWindow: '<?php echo JText::_('TPL_GK_LANG_COOKIE_CLOSEWINDOW'); ?>',
notificationTitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_NOTIFICATIONTITLE'); ?>',
notificationTitleImplicit: '<?php echo JText::_('TPL_GK_LANG_COOKIE_NOTIFICATIONTITLEIMPLICIT'); ?>',
customCookie: '<?php echo JText::_('TPL_GK_LANG_COOKIE_CUSTOMCOOKIE'); ?>',
seeDetails: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SEEDETAILS'); ?>',
seeDetailsImplicit: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SEEDETAILSIMPLICIT'); ?>',
hideDetails: '<?php echo JText::_('TPL_GK_LANG_COOKIE_HIDEDETAILS'); ?>',
allowCookies: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLOWCOOKIES'); ?>',
allowCookiesImplicit: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLOWCOOKIESIMPLICIT'); ?>',
allowForAllSites: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLOWFORALLSITES'); ?>',
savePreference: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SAVEPREFERENCE'); ?>',
saveForAllSites: '<?php echo JText::_('TPL_GK_LANG_COOKIE_SAVEFORALLSITES'); ?>',
privacySettings: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PRIVACYSETTINGS'); ?>',
privacySettingsDialogTitleA: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PRIVACYSETTINGSDIALOGTITLEA'); ?>',
privacySettingsDialogTitleB: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PRIVACYSETTINGSDIALOGTITLEB'); ?>',
privacySettingsDialogSubtitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PRIVACYSETTINGSDIALOGSUBTITLE'); ?>',
changeForAllSitesLink: '<?php echo JText::_('TPL_GK_LANG_COOKIE_CHANGEFORALLSITESLINK'); ?>',
preferenceUseGlobal: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCEUSEGLOBAL'); ?>',
preferenceConsent: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCECONSENT'); ?>',
preferenceDecline: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCEDECLINE'); ?>',
notUsingCookies: '<?php echo JText::_('TPL_GK_LANG_COOKIE_NOTUSINGCOOKIES'); ?>.',
allSitesSettingsDialogTitleA: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLSITESSETTINGSDIALOGTITLEA'); ?>',
allSitesSettingsDialogTitleB: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLSITESSETTINGSDIALOGTITLEB'); ?>',
allSitesSettingsDialogSubtitle: '<?php echo JText::_('TPL_GK_LANG_COOKIE_ALLSITESSETTINGSDIALOGSUBTITLE'); ?>',
backToSiteSettings: '<?php echo JText::_('TPL_GK_LANG_COOKIE_BACKTOSITESETTINGS'); ?>',
preferenceAsk: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCEASK'); ?>',
preferenceAlways: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCEALWAYS'); ?>',
preferenceNever: '<?php echo JText::_('TPL_GK_LANG_COOKIE_PREFERENCENEVER'); ?>'
}
});
// ]]>
</script>
with this code (add your own text phrases and link):
- Code: Select all
<script>
window.cookieconsent_options = {
message: 'This website uses cookies to ensure you get the best experience on our website',
dismiss: 'OK',
learnMore: 'More info',
link: 'http://example.com/cookiepolicy'
};
</script>
-
- Moderator
- GK User
- Wed Apr 05, 2017 4:30 pm
- Reply with quote
- Report this post
Perfect, thank you very much.
-
- Expert Boarder
8 posts
• Page 1 of 1