Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Unobtrusive EU cookie work-around Details »»
Unobtrusive EU cookie work-around
Version: 1.00, by Kirk Fitzgerald Kirk Fitzgerald is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.0 Rating:
Released: 07-22-2012 Last Update: Never Installs: 7
Template Edits
Re-useable Code  
No support by the author.

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!

Screenshots

File Type: jpg titlehover.jpg (74.5 KB, 0 views)
File Type: jpg loginhover.jpg (55.5 KB, 0 views)
File Type: jpg registerhover.jpg (54.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-23-2012, 03:19 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 07-23-2012, 03:26 PM
NTMID8 NTMID8 is offline
 
Join Date: Feb 2004
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
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.
Reply With Quote
Благодарность от:
Kirk Fitzgerald
  #4  
Old 07-23-2012, 03:40 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
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.
Reply With Quote
  #5  
Old 07-23-2012, 05:17 PM
WorldCraft WorldCraft is offline
 
Join Date: Jun 2010
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Благодарность от:
Kirk Fitzgerald
  #6  
Old 07-23-2012, 08:16 PM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WorldCraft View Post
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.
Reply With Quote
  #7  
Old 07-24-2012, 09:32 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about browsing on a phone? Cookies can still be stored but there is no mouse over.
Reply With Quote
  #8  
Old 07-24-2012, 11:09 AM
Kirk Fitzgerald's Avatar
Kirk Fitzgerald Kirk Fitzgerald is offline
 
Join Date: Apr 2012
Location: Oxford, UK
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hornstar View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04210 seconds
  • Memory Usage 2,306KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (2)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (3)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete