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>


All times are GMT. The time now is 10:29 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.01234 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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