EU Cookie Directive

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

EU Cookie Directive

Post by magic » Mon Jun 18, 2012 12:29 pm

Living in the UK, I now need to ask consent for cookies (in Line with the EU Cookie Directive). :(

1. Has anyone produced one for Serendipity?
2. Is anyone working on one?
3. If neither, can anyone advise how to implement one - there are lots of javascript ones available online

Only the EU could come up with something that sets a cookie to remember that the user doesn't want cookies !!!
Many thanks
Dave
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: EU Cookie Directive

Post by onli » Mon Jun 18, 2012 7:22 pm

Are you sure that the UK made a local law for that? An EU-directive alone is not a law you need to follow.
Last edited by onli on Mon Jun 18, 2012 10:51 pm, edited 1 time in total.

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: EU Cookie Directive

Post by Timbalu » Mon Jun 18, 2012 8:18 pm

http://www.h-online.com/news/item/EU-gr ... 17656.html
This tells us a law on the use of browser cookies has come into force in the UK.
We can't be sure about the need for local laws, as even the German "Bundesbeauftragte für den Datenschutz", Peter Schaar, says: "sie gelten prinzipiell seit Mai 2011" ... und er "gehe davon aus, dass sie hierzulande auch ohne gesondertes Umsetzungsgesetz direkt anwendbar sind".
Close the web! :twisted:
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Mon Jun 25, 2012 3:07 pm

Yep, it applies to all the EU, including the UK - although there are a couple of variations in the UK, mainly regarding 'implied' consent. There's also lotsa companies making 'big bucks' out of doing cookie audits implementing scripts, etc.

I've got an 'ok' javascript one that works OK on html websites, and also a friend has written one for glFusion which would probably work on Serendipity, but I don't know where to insert the script.

Perhaps someone - or even one of the devs - could point me in the right direction !!!!

TIA
Dave
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: EU Cookie Directive

Post by yellowled » Mon Jun 25, 2012 5:19 pm

magic wrote:Perhaps someone - or even one of the devs - could point me in the right direction !!!!
You have received answers by two s9y devs already. How many do you think you're going to need before you calm down?

As for the JS version, you can just reference that in yout template's index.tpl. It would be much easier to give you directions on that if you posted the JS code you'd need to insert.

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Mon Jun 25, 2012 5:55 pm

Hi Yellowled, many thanks for your response ........
Now that I've calmed down (!!!) there's not much in the previous two responses that is of much help, is there ?

Here's the one I'm using on a glFusion site - you can see it in action at http://www.idhsgb.com/web/
This is the one I'd like to use, if it will work on every page ...

Instructions

Code: Select all

To install it correctly, place the files or the code within, in their 
proper places.  Follow the example in the header.thtml file and place 
the JS file in the proper directory.  Place the CSS code in your style.css 
file accordingly.
Code to insert in index.tpl?

Code: Select all

<!-- ADD THIS TO YOUR HEADER.THTML FILE -->
    <!-- THIS SCRIPT BROUGHT YOU BY SPACEQUAD INTERNET SERVICES - PLEASE SEND ALL INQUIRIES TO http://www.spacequad.net/profiles.php?uid=3 -->
    <script type="text/javascript" src="http://dev.spacequad.com/javascript/eucookies.js"></script>
    <div class="eucookieoptinpanel" id="eucookieoptinpanel" style="visibility:hidden;">
    <strong>EU Cookie Law Opt-in</strong>
    <br/><br/>
    On May 26th 2011 the EU brought into effect a new "Cookie Law". This law requires web-sites to obtain informed consent from visitors before transmitting or requesting information from their web browsing device.
    <br/>
    This website uses Cookies from Google Analytics and also as part of its content management system. Disabling these Cookies will affect the functionality of this site. For more information to make an informed decision to accept our cookies please see our <a href="/privpol.php">Privacy & Cookies statement</a><br /><br /><strong>You will need to re-enter our URL in your browser bar or a page cannot be found error might popup.</strong>
    <br/><br/>
    <form action="" method="post" name="eucookieoptinform" id="eucookieoptinform">
    <input type="checkbox" id="optin" name="optin" onclick="euoptinhandler(this);"/> <strong>I agree to accept cookies from this site.</strong>
    </form>
    </div>
    <script>eucookiehandler();</script>
    <!-- END OF EU-COOKIE SCRIPT -->
Stylesheet code

Code: Select all

/* Custom Code */
/* Cookie Code */

.eucookieoptinpanel
{
position: fixed;
left: auto;
right: auto;
bottom: 0px;
height:175px;
width: 97%;
 
color:rgb(255,255,255);
background:rgb(200,0,0);
opacity: 0.95;
text-align:center;
 
border-top: 2px solid black;
border-bottom: 2px solid black;
}

/* End Cookie Code */
Many thanks again
Dave
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: EU Cookie Directive

Post by yellowled » Mon Jun 25, 2012 7:53 pm

magic wrote:Code to insert in index.tpl?
Yep, just dump that piece of code in your template's index.tpl. Apparently, this should be placed in the head, so it should be safe to add this right before the closing </head> tag. Then add the stylesheet code at the end of your template's style.css. Don't forget so save both files. Done. (I guess.)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

User avatar
onli
Regular
Posts: 2355
Joined: Tue Sep 09, 2008 10:04 pm
Contact:

Re: EU Cookie Directive

Post by onli » Mon Jun 25, 2012 11:53 pm

Better place it right after the <body>, as there is a div as part of the code.

Note that for Germany and probably a lot of other countries, the directive is not a law yet and thus not binding (Schaar has a very strange view of the legal system and his regulatory power, Ian, completely absurd). Therefore, this is something that doesn't affect us yet. Given that it is a very unpleasant and crazy directive, I won't write a single line of code to cope with that. Probably Garvin will take care of that issue as soon as he sees that as a requirement for s9y.
Which should just mean: Help yourself like you are already doing :) After some time, if necessary, we'll offer an option for that.

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Tue Jun 26, 2012 7:21 pm

Thanks Yellowled, that has worked perfectly :D

Dave
"Patience is never more important than when you're at the edge of losing it !!"

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Tue Jun 26, 2012 7:26 pm

From what I've read this actually came in 2011, but we all ignored it - and it became effective in all EU states on May 26th 2012. Most of the UK, including government websites haven't implemented it yet though.

Totally agree that it's crazy, ineffective, and just about impossible to monitor anyway - thats the EU bureaucrats for you !!! Curvature on banana's etc; come to mind !!!! :lol:

Dave
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: EU Cookie Directive

Post by Lux » Wed Jun 27, 2012 2:35 pm

Hi!

Would it be an option to offer this functionality as plugin?

Cheers

Dirk

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Wed Jun 27, 2012 2:54 pm

Lux wrote:Hi!

Would it be an option to offer this functionality as plugin?

Cheers

Dirk
Hi Dirk
I'm putting this together, and also discussing it with the guy who did the original .js file ... then it will go online 'somewhere'. I'll post back here when it's ready.

Dave
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: EU Cookie Directive

Post by Lux » Wed Jun 27, 2012 3:56 pm

magic wrote:I'm putting this together, and also discussing it with the guy who did the original .js file ... then it will go online 'somewhere'. I'll post back here when it's ready.
Great Dave!

Thanks a lot

Dirk

magic
Regular
Posts: 14
Joined: Sun Dec 09, 2007 3:40 pm
Location: Devon, UK

Re: EU Cookie Directive

Post by magic » Thu Jun 28, 2012 12:21 pm

Dirk

Not a plugin, more of a file 'hack'.
It's available @ Spacequad Internet Services - http://www.spacequad.net/

You will need to register & login - look in the forums for the 'scripts' board.

Any questions just post here, over there, or PM me

Hope it helps
Dave :wink:
"Patience is never more important than when you're at the edge of losing it !!"

User avatar
Lux
Regular
Posts: 764
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

Re: EU Cookie Directive

Post by Lux » Thu Jun 28, 2012 12:35 pm

magic wrote:Not a plugin, more of a file 'hack'.
Thanks!

Dirk

Post Reply