Log in

View Full Version : Mini Mods - Simple EU Cookie Law MOD


Robru
06-22-2012, 10:00 PM
Simple EU Cookie Law MOD

Works also on vBulletin 3.8.X and 5.X.X (https://vborg.vbsupport.ru/showthread.php?t=289275)
Thanks to Stefan118 (https://vborg.vbsupport.ru/member.php?u=414463)

One template edit in the footer:

Go to the footer of the standard style, and put on the end:

<link rel="stylesheet" type="text/css" href="http://www.heartinternet.co.uk/eu-cookie/main.css"/>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js"></script>
<script type="text/javascript" src="http://www.heartinternet.co.uk/eu-cookie/require-opt-in.js" read_more="http://www.your-site.com/privacy-policy"></script>


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

Robru
06-23-2012, 06:27 AM
Changelog:


V.1.10 Fixed *.png problem

MoreLinux
06-24-2012, 11:03 AM
Thanks, I will have a go with it in the next few day's.

GamerPerfection
06-25-2012, 04:14 PM
Thanks, tagged for now as all I need to do now is create a privacy policy. :(

GamerPerfection
06-25-2012, 05:40 PM
So this leaves the tick in the corner for good?

chriske
06-25-2012, 06:18 PM
Is it recommended to put the .js files on my own server?

Robru
06-26-2012, 06:50 AM
So this leaves the tick in the corner for good?
Yes!

Is it recommended to put the .js files on my own server?
That's not nessesary.

GamerPerfection
06-26-2012, 07:49 AM
I decided to stick with just using the vBulletin notification function as I'd rather not have images left on my site.

Simon Lloyd
07-24-2012, 07:48 AM
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?

Robru
07-24-2012, 08:31 AM
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

To enforce it for client scripts (javascript), modify your code from (example):

document.cookie = mycookiestring;
To:
if(HI.optInCookies.allowed()) document.cookie = mycookiestring;

Please note that this will require http://www.heartinternet.co.uk/eu-cookie/support-opt-in.js to be loaded on each page.

To change Google to an explanatory page, privacy policy or another URL, use the following code:

<script type='text/javascript'> HI.optInCookies.disagreeURL = "/some-page-on-my-site"; </script>

To change the text of the ?No? option:

<script type='text/javascript'> HI.optInCookies.l10n.disagreeCaption = "No thanks, see privacy policy"; </script>

Simon Lloyd
07-24-2012, 10:13 AM
Thanks for that :)

Simon Lloyd
07-25-2012, 08:56 AM
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"

Kış
07-25-2012, 09:03 AM
Hi.
Excuse me, Any live demo ? :)

Robru
07-25-2012, 10:07 AM
Demo: www.caviaforum.nl

Simon Lloyd
07-25-2012, 10:07 AM
Live demo shown in firstpost!!! http://www.heartinternet.co.uk/eu-cookie-law.html

Robru
07-25-2012, 10:08 AM
Thanks Simon ;)

Robru
07-25-2012, 10:12 AM
I don't think so, they can remove manually de cookies from the browser settings.
Maybe for a following update :)

Simon Lloyd
07-25-2012, 10:16 AM
the problem with that is they would have to remove ALL cookies just to opt out of one site :(

Stefan118
09-23-2012, 07:34 PM
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!

1F42
10-12-2012, 12:00 PM
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!

Can you post yours then, I don't want the triangle after either

Robru
10-12-2012, 02:16 PM
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!
That's no problem ;)

Stefan118
10-13-2012, 07:10 PM
Can you post yours then, I don't want the triangle after either

attached below...
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.

1F42
10-14-2012, 09:42 AM
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 :)

Stefan118
10-14-2012, 09:57 AM
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.

Mardaki
10-14-2012, 11:56 AM
Thanks alot

1F42
10-14-2012, 01:40 PM
Yeah I sorted it all and edited them works great

mp3president
10-17-2012, 03:43 AM
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.

Draffi
10-17-2012, 06:13 AM
Download the 3 files (and the grafix, maybe) and then translate the part in the "support-opt-in.js" to your language.

mp3president
10-19-2012, 03:26 AM
Download the 3 files (and the grafix, maybe) and then translate the part in the "support-opt-in.js" to your language.

Thanks, I did that and it works perfect.
Also thank you for the PNG, I changed it even more and the green corner (and spot) are gone.

Robru
10-20-2012, 08:05 AM
Update: zip file added

Robru
10-21-2012, 09:58 AM
attached below...
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.
Stefan, can you explain how to use your added image?

Stefan118
10-22-2012, 11:34 AM
Stefan, can you explain how to use your added image?

How you mean?
The zipfile you added has the same image as i attached.

The use is the same as your image...

Stefan118
10-22-2012, 02:56 PM
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 :)

Mr Anarch
10-23-2012, 05:26 AM
It's free advertising for an ISP. I loved it ... other than for that so I removed it.

Robru
10-23-2012, 08:55 AM
Update: V.1.10 Fixed *.png problem

TheSupportForum
11-07-2012, 07:39 PM
@Robru

the main.css file is empty please update script and replace the file please

Robru
11-07-2012, 08:30 PM
The main.css is not empty, please download it again ;)

TheSupportForum
11-07-2012, 09:27 PM
The main.css is not empty, please download it again ;)

thanks, for some reason main.css was empty for me, now i download it again
its ok, weird

ojoj
12-20-2012, 04:46 PM
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.

Black Tiger
02-28-2013, 08:12 PM
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:
<link rel="stylesheet" type="text/css" href="http://www.myforum.org/cookie/main.css"/>
<script type="text/javascript" src="http://www.myforum.org/cookie/support-opt-in.js"></script>
<script type="text/javascript" src="http://www.myforum.org/cookie/require-opt-in.js"
read_more="http://www.myforum.org/privacy-policy"></script>

The files are in the http://www.myforum.org/cookie directory.
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?

Black Tiger
03-06-2013, 02:56 PM
Nobody any clue why this is not working on my forums, in spite of the fact that it's in the page source?

Teascu Dorin
03-06-2013, 04:35 PM
I believe that I do not need this if I use SSL Certificate on my site (https instead of http) ?!

craigvm
03-15-2013, 02:47 PM
HOW CAN I REMOVE THE IMAGE IN THE CORNER AFTER YOU ACCEPT?

Robru
03-15-2013, 04:36 PM
HOW CAN I REMOVE THE IMAGE IN THE CORNER AFTER YOU ACCEPT?
See this post: https://vborg.vbsupport.ru/showpost.php?p=2372781&postcount=22

g00gl3r
03-21-2013, 06:57 PM
Cool mod. I needed this!

Black Tiger
03-21-2013, 07:25 PM
@Robru: Any clue on why it's not working on my forums?

BaldiPl
03-29-2013, 02:23 PM
thanks a lot, fast and simple solution with those stupid eu rules.

Black Tiger
03-29-2013, 02:42 PM
Well I think I'm going to uninstall it due to lack of support and lack of working with VBadvanced.

On the previous page the coder gives an answer to somebody else, but not to my problem 2 posts above that.:(

ikorolis
03-31-2013, 12:20 PM
thanks but no installed

Vitesse
06-25-2013, 09:13 AM
Having exactly the same problem as Black Tiger

Ive uploaded everything to /cookie

added the code in the footer however I just get text and no image. Here is the site http://www.squidgybanana.co.uk/forum.php

However if i set the paths to heartinternet ones I get the image and it works properly. I've double-checked the paths are set correctly to main.css etc.

Any ideas what else I can try?

Thanks

Black Tiger
06-25-2013, 11:42 AM
I've fixed it, I just don't know how I did it anymore. Changed to originale files. Only editted the url to heartinternet and something. I don't know. Suddenly it worked partly, only the images was messed up. Re-uploaded the image, uploaded another image and then it worked.

Don't exactly know what I did anymore otherwise I could have been of help.

Fatal Hazard
06-29-2013, 07:18 PM
I love it, thank you

vithorius
11-13-2013, 04:04 PM
Is this translatable? My forum is in portuguese and it would make much more sense to have it in portuguese...

Thank you.

Robru
11-13-2013, 04:20 PM
Is this translatable? My forum is in portuguese and it would make much more sense to have it in portuguese...

Thank you.Yes in the file: support-opt-in.js :)

migratoria
01-26-2014, 05:12 PM
Image not found in vb 4.2.2
Solutions?

Delphiprogrammi
05-31-2014, 09:25 AM
Doesn't work with 4.2.2 ...... no image appaering

Oh wait it does work the problem seems to be main.css is corrupt create your own file and save it in the right format (*.css) upload and that fixed it at least in my case.

Robru
05-31-2014, 01:45 PM
Fine it's works now for you :)
There are no problems with this mod in all versions of vB.

ciccio8777
05-30-2015, 09:34 AM
if i write mydomain/main.css image don't apper

can you help me

OmekaTeam
07-28-2015, 08:05 AM
I understand that you do not return your the ink, the picture appears. Close friend or the solution to the problem, or remove this mod. I renamed the link you provided in the example with my domain, I have created a folder eu-cookie, I uploaded files, but the image does not appear when you view it with your link, you want to solve this problem? Thank You. :mad::down:

Bastien
07-28-2015, 11:46 AM
Installed ! Thank you, translated into french, looks good :)

StarBuG
07-28-2015, 04:11 PM
Thanks, works great.
Translated to German :)

Alan_SP
07-29-2015, 11:49 AM
I'd like to have a mod that really complies with EU cookies law and not the mod that sends users to different location, i.e. that deletes cookies, including cookies from third parties (AdSense i Analytics).

OmekaTeam
07-29-2015, 01:01 PM
I think you've entered this MOD only for your own benefit, to advertise your hosting. MI wonder why the management does not intervene, however, I will make a report.

jind
08-01-2015, 05:05 PM
Does not work if the user has Adblock

OmekaTeam
08-01-2015, 05:49 PM
Does not work if the user has Adblock

Do not use Adblock.

X-or
04-20-2017, 10:19 PM
External Content, no thanks

mavortium
07-17-2017, 07:18 PM
Doesn't work any more.