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)
-   -   Miscellaneous Hacks - Unobtrusive EU cookie work-around (https://vborg.vbsupport.ru/showthread.php?t=285863)

Kirk Fitzgerald 07-22-2012 10:00 PM

Unobtrusive EU cookie work-around
 
1 Attachment(s)
The EU Legislation regarding website cookies may on the surface appear not to concern forum owners, but I am afraid it does very much concern us, the cookie that "Remember Me?", login and register downloads constitute 'non-essential cookies' and is in actuality a direct violation of the EU Legislation.

Even if you do not agree with this Legislation, the facts remain the same, it is a Law and whether we like it or not as forum owners we can be held accountable, in light of this I figure why have a messy image or annoying pop-up infuriating your users when we can use a simple title html function.

You can see it working live on my own site here: http://lightpathways.gi9.co/forum.php

OPEN:
header template

FIND:
Code:

<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
REPLACE WITH:
Code:

<li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow" title="In accordance with EU Laws we must inform you that registering with us will store a cookie on your computer!">{vb:rawphrase register}</a></li>
FIND:
Code:

<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" />
REPLACE WITH:
Code:

<input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register} In accordance with EU Laws we must inform you that logging in will store a cookie on your computer!" accesskey="s" />
FIND:
Code:

<label for="cb_cookieuser_navbar">
REPLACE WITH:
Code:

<label for="cb_cookieuser_navbar" title="In order for this site to work correctly, and for us to improve the site we need to store a small file (called a cookie) on your computer. Most every site in the World does this, however since the 25th of May 2011, according to EU Laws we have to get your permission first. If you click the box for 'Remember Me?' we will store a cookie on your computer, you do not have to click this box if you do not want us to download a cookie onto your computer but if you make this choice then this site will not work properly, the choice is yours to make!">


SAVE AND CLOSE header TEMPLATE


NOTE: You can of course alter the text if you wish but be sure to maintain the following basic structure or it wont work properly, replace ONLY the text in red!

WorldCraft 07-23-2012 03:19 PM

Sorry, I might be missing something but I can't see anything relating to the EU cookie law in the demo. What am I looking for?

NTMID8 07-23-2012 03:26 PM

Quote:

Originally Posted by WorldCraft (Post 2350766)
Sorry, I might be missing something but I can't see anything relating to the EU cookie law in the demo. What am I looking for?

Mouse over the Remember Me check box.

Kirk Fitzgerald 07-23-2012 03:40 PM

Quote:

Originally Posted by WorldCraft (Post 2350766)
Sorry, I might be missing something but I can't see anything relating to the EU cookie law in the demo. What am I looking for?

My fault, I just added an attached image to make it clear. :)

WorldCraft 07-23-2012 05:17 PM

Oh cool, thanks. That's pretty neat.
Although saying that, even if they don't click the remember me box and just register or login, you're still storing cookies on their computer and they may not see that notification...

Kirk Fitzgerald 07-23-2012 08:16 PM

Quote:

Originally Posted by WorldCraft (Post 2350805)
Oh cool, thanks. That's pretty neat.
Although saying that, even if they don't click the remember me box and just register or login, you're still storing cookies on their computer and they may not see that notification...

Perfectly valid point there, just in case those get targeted I have added edits to cover ourselves for those eventualities too. ;)

Hornstar 07-24-2012 09:32 AM

What about browsing on a phone? Cookies can still be stored but there is no mouse over.

Kirk Fitzgerald 07-24-2012 11:09 AM

Quote:

Originally Posted by Hornstar (Post 2350995)
What about browsing on a phone? Cookies can still be stored but there is no mouse over.

Ah, an interesting point, I don't use one so I cannot look into that one, do you have a suggestion perhaps?

I haven't read anything pertaining to mobiles and cookies to be honest, has this been addressed by the Eu then, can you link me to the information please?


All times are GMT. The time now is 11:58 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.01191 seconds
  • Memory Usage 1,733KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete