Page 1 of 2

EU Cookie Directive

Posted: Mon Jun 18, 2012 12:29 pm
by magic
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

Re: EU Cookie Directive

Posted: Mon Jun 18, 2012 7:22 pm
by onli
Are you sure that the UK made a local law for that? An EU-directive alone is not a law you need to follow.

Re: EU Cookie Directive

Posted: Mon Jun 18, 2012 8:18 pm
by Timbalu
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:

Re: EU Cookie Directive

Posted: Mon Jun 25, 2012 3:07 pm
by magic
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

Re: EU Cookie Directive

Posted: Mon Jun 25, 2012 5:19 pm
by yellowled
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

Re: EU Cookie Directive

Posted: Mon Jun 25, 2012 5:55 pm
by magic
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

Re: EU Cookie Directive

Posted: Mon Jun 25, 2012 7:53 pm
by yellowled
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

Re: EU Cookie Directive

Posted: Mon Jun 25, 2012 11:53 pm
by onli
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.

Re: EU Cookie Directive

Posted: Tue Jun 26, 2012 7:21 pm
by magic
Thanks Yellowled, that has worked perfectly :D

Dave

Re: EU Cookie Directive

Posted: Tue Jun 26, 2012 7:26 pm
by magic
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

Re: EU Cookie Directive

Posted: Wed Jun 27, 2012 2:35 pm
by Lux
Hi!

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

Cheers

Dirk

Re: EU Cookie Directive

Posted: Wed Jun 27, 2012 2:54 pm
by magic
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

Re: EU Cookie Directive

Posted: Wed Jun 27, 2012 3:56 pm
by Lux
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

Re: EU Cookie Directive

Posted: Thu Jun 28, 2012 12:21 pm
by magic
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:

Re: EU Cookie Directive

Posted: Thu Jun 28, 2012 12:35 pm
by Lux
magic wrote:Not a plugin, more of a file 'hack'.
Thanks!

Dirk