vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326371

Using CookieConsent
by weinstoc
08 May 2018 02:53

Elsewhere I found the following code which at least someone claims has worked with VB3. I cannot figure out which template(s) to install it in, and where. This is for GDPR compliance. Can someone point me in the right direction?

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
}
})});
</script>

Seven Skins 10 May 2018 23:46

Try adding this to footer template.

PinkMilk 12 May 2018 16:53

Cookie Consent by Insite website states:
Quote:

Add the code in the header of your website, just before the </head> tag.
so it should be placed in the headinclude template.

Seven Skins 12 May 2018 21:55

For best page load speed js should be loaded from footer as it will not block any DOM content from loading.


All times are GMT. The time now is 16:02.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.