![]() |
Simple EU Cookie Law MOD
1 Attachment(s)
Simple EU Cookie Law MOD
Works also on vBulletin 3.8.X and 5.X.X Thanks to Stefan118 One template edit in the footer: Go to the footer of the standard style, and put on the end: Code:
<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/> https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ Another way is: Download the files, rename the code, and put them on your server. For more information see: http://www.heartinternet.co.uk/eu-cookie-law.html Changelog: V.1.10 Fixed *.png problem |
Changelog:
|
Thanks, I will have a go with it in the next few day's.
|
Thanks, tagged for now as all I need to do now is create a privacy policy. :(
|
So this leaves the tick in the corner for good?
|
Is it recommended to put the .js files on my own server?
|
Quote:
Quote:
|
I decided to stick with just using the vBulletin notification function as I'd rather not have images left on my site.
|
Rather than direct them to google on clicking the x i'd like to direct them to my cookie explanation page, can you allow us the possibility of a custom redirection?
|
To enforce it for server scripts, add the following to an .htaccess file in your home directory:
Code:
SetEnvIf Cookie "eu-opt-in=1" opted_in Code:
document.cookie = mycookiestring; To change Google to an explanatory page, privacy policy or another URL, use the following code: Code:
<script type='text/javascript'> HI.optInCookies.disagreeURL = "/some-page-on-my-site"; </script> Code:
<script type='text/javascript'> HI.optInCookies.l10n.disagreeCaption = "No thanks, see privacy policy"; </script> |
Thanks for that :)
|
There's always one fly in the oinment, i've been asked by one of my users to opt them out after they opted in as they've changed their mind, can we display the x or "opt out" underneath the green tick? Or maybe make the green tick "Click to opt out"
|
Hi.
Excuse me, Any live demo ? :) |
Demo: www.caviaforum.nl
|
Live demo shown in firstpost!!! http://www.heartinternet.co.uk/eu-cookie-law.html
|
Thanks Simon ;)
|
I don't think so, they can remove manually de cookies from the browser settings.
Maybe for a following update :) |
the problem with that is they would have to remove ALL cookies just to opt out of one site :(
|
If you don't mind, i have riped the files main.css, support-opt-in.js, require-opt-in.js and hi-cookie-sprite.png
and saved them localy and translated them into Dutch. Also i removed the green triangle which shows when accepted. Thanks for the mod! |
Quote:
|
Quote:
|
1 Attachment(s)
Quote:
It was realy no big deal. All the images are in that file. I have cut out the triangle, and saved the file again. The mod still loads the triangle, but becouse it is PNG it shows the cutout part witch is nothing, and so you can see the forum through it. No changes made in the rest of the files, exept the language. |
very much appreciated, but I don't see any files apart from the image i would need, I can't find the js files only a link to them, so I don't see how I can do it locally? Im guess I will have to grab them using the url and save them, and change paths etc , not done java before but i'll try.
Right have all the files change my links in the code but I'm not sure yet where to put the png or where to change the script not edited java script before. Right found those, nearly there but not got it working just yet :) Sorted great to learn :) |
If you enter the 3 links in your URL bar of your browser, you get the scripts.
Copy and paste it in a new file and safe them with the same name on your harddrive. |
Thanks alot
|
Yeah I sorted it all and edited them works great
|
Works also great on 3.8.*
Thanks, but it should be editable so I could change the language. Not everyone on my board can read the English language. |
Download the 3 files (and the grafix, maybe) and then translate the part in the "support-opt-in.js" to your language.
|
Quote:
Also thank you for the PNG, I changed it even more and the green corner (and spot) are gone. |
Update: zip file added
|
Quote:
|
Quote:
The zipfile you added has the same image as i attached. The use is the same as your image... |
1.Robru has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.
Dat schiet niet op he :) |
It's free advertising for an ISP. I loved it ... other than for that so I removed it.
|
Update: V.1.10 Fixed *.png problem
|
@Robru
the main.css file is empty please update script and replace the file please |
1 Attachment(s)
The main.css is not empty, please download it again ;)
|
Quote:
its ok, weird |
tnx guys, nice mod!
it doesn't mention in the opening post, but there are some more steps to take after updating your files. **** 2. To enforce it for server scripts, add the following to an .htaccess file in your home directory: SetEnvIf Cookie "eu-opt-in=1" opted_in Header always unset Set-Cookie env=!opted_in 3. To enforce it for client scripts (javascript), modify your code from (example): document.cookie = mycookiestring; To: if(HI.optInCookies.allowed()) document.cookie = mycookiestring; **** I'm not very good at this stuff, so can anyone tell me if step 3 is necessary and where to update my files? I'm running VB 4. |
Can anyone help me with this?
I can't get it to work, I'm running vb 3.8.x with VBA CMPS. If I look in my page source, i see this: Quote:
And I made the entrance in .htaccess as pointed to in number 2 above my post. However, I don't get a popup asking me about the cookie, no png popup. What am I doing wrong? |
All times are GMT. The time now is 07:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|