vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Simple EU Cookie Law MOD (https://vborg.vbsupport.ru/showthread.php?t=284819)

Robru 06-22-2012 10:00 PM

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"/>
<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

Quote:

Originally Posted by GamerPerfection (Post 2342816)
So this leaves the tick in the corner for good?

Yes!

Quote:

Originally Posted by chriske (Post 2342827)
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:

Code:

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):

Code:

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

Please note that this will require http://www.heartinternet.co.uk/eu-co...port-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:

Code:

<script type='text/javascript'> HI.optInCookies.disagreeURL = "/some-page-on-my-site"; </script>
To change the text of the ?No? option:

Code:

<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

Quote:

Originally Posted by Stefan118 (Post 2368013)
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

Quote:

Originally Posted by Stefan118 (Post 2368013)
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

1 Attachment(s)
Quote:

Originally Posted by 1F42 (Post 2372517)
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

Quote:

Originally Posted by Draffi (Post 2373643)
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

Quote:

Originally Posted by Stefan118 (Post 2372781)
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

Quote:

Originally Posted by Robru (Post 2374730)
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

1 Attachment(s)
The main.css is not empty, please download it again ;)

TheSupportForum 11-07-2012 09:27 PM

Quote:

Originally Posted by Robru (Post 2379236)
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:
Quote:

<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?


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
  • Page Generation 0.01299 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete