Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2016-06-02 19:48:02

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Cookie Module

In CE4 I had a great deal of help from forum members on getting the Cookie compliance aspect of a European site effective. I noted this morning that even on Facebook, they are prompting me as a user that cookies are in use.
Is the inclusion of a cookie use message on the feature list? There must be many TTG users who have to design their site to comply with European law.
I started to try and incorporate what I had in CE4 but I have yet to see if it works properly as it was based on the integrated WP blog with a WP plugin.
Making changes and testing is sooooooo much easier in BACKLIGHT. I just don't like treading where I don't ought to be naturally.
Regards,
TomO


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#2 2016-06-03 00:26:47

lofty
Member
From: UK
Registered: 2012-09-26
Posts: 234
Website

Re: Cookie Module

+1 for me too Tom

Offline

#3 2016-06-03 03:33:45

krabydick
Member
From: Doncaster_UK
Registered: 2013-03-25
Posts: 35
Website

Re: Cookie Module

I've been meaning to ask if anything was in the pipeline. Or if anybody knew of an easy to implement solution.

Offline

#4 2016-06-03 06:04:50

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Re: Cookie Module

I got this to work OK in CE4 but this is now a basic requirement here in Europe (even if the referendum
goes the wrong way). It seems like a basic option to turn on or off especially as every large web presence has to declare the use of data collection cookies when one uses their sites. Wordpress offer a default plugin for their .wordpress domains now as standard. I have yet to work out what to do with BL in this context.


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#5 2016-06-03 06:41:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,937
Website

Re: Cookie Module

have you seen this site: https://cookie-script.com/
you could pop the script in using phplugins.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

#6 2016-06-03 06:55:40

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,937
Website

Re: Cookie Module

And is seems to work just fine. I put it in the ttg_footer_bottom hook on my secondary test site:
http://backlight2.barbeephoto.com/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

#7 2016-06-03 14:59:01

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 4,877
Website

Re: Cookie Module

Not being European, I don't know the ins and outs of this one so well. If those of you whom this affects would like to consult, though, I would be happy to put some work into providing official support within Backlight. We would probably want to begin by working up a solution using PHPlugins. Then, when we're satisfied it's adequately functional and compliant, I can work it into a Backlight update.

I've just Googled and come up with these:

https://silktide.com/tools/cookie-consent/

http://cookiecuttr.com/

Both look like viable places to start. Those of you who would be using this, can you please check them out and let me know whether one seems preferable to the other in whatever ways?


Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

#8 2016-06-03 18:40:49

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Re: Cookie Module

Thanks Matthew and Rod,
Will take a look at these and do some testing and get back to you.
Regards,
TomO


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#9 2016-06-03 20:40:55

lofty
Member
From: UK
Registered: 2012-09-26
Posts: 234
Website

Re: Cookie Module

Hey Matt,

The site suggested by Rod works fine, but you have to subscribe to get the code, customize and remove the 'built by' tag, otherwise the script is pulled from their site.

I also like the look of the Silk Tide product and I'll be playing with that a little later smile

Offline

#10 2016-06-03 21:54:46

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Re: Cookie Module

Hi Matt,
I've tried the Silktide version and the way they present the customisation is not a million miles away from the way you offer customisation of pages and templates etc. It is relatively numpty proof. I don't like making a product look cheap by using something that says supplied free by xxx and BL looks the biz so anything tacked on that looks like a free loader take the polish off IMHO.
If you could offer this option as part of BL so that we could point to our policy page and take on the styling applied to the footer or wherever a user places it that would be great. Quite where this javascript is pulled from is outside of my spectrum of knowledge. Would you have to dump that somewhere where we pulled it for use in our sites?
You may have gathered that this is darkside stuff for me so apologies for that.
I know that a service like this here in Europe just makes it even more attractive to use BL as this issue is a real PITA
Test version visible in Tom's Test site
Getting there - cannot wait for the WP plugin.
This is so much easier to work with. The divorce was a good idea.
Regards,
TomO


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#11 2016-06-04 16:46:49

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 4,877
Website

Re: Cookie Module

I've given these a bit of a play this afternoon. CookieCuttr hasn't been updated since 2012 and has a dependency on a jQuery Cookie plugin that has since been superseded by a newer plugin, so probably not the best option.

Silktide seems pretty legit, and you can pretty easily implement by pasting its code into this PHPlugin function:

function ttg_head( $style, $path ) { 
	echo '

<!-- Silktide here -->

	';
	return false;
} // END

Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

#12 2016-06-04 20:38:39

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Re: Cookie Module

Thanks Matthew,
I put the code in the ttg_footer in my test yesterday. Is it better practice to go in the head? As you say this outfit looks legit and it works OK.
Regards,
TomO


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#13 2016-06-05 20:50:08

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 4,877
Website

Re: Cookie Module

They seem to want to be in the head. I don't know whether it's just as well to put them in the footer, or what; haven't tried it.


Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

#14 2016-06-06 19:04:36

lofty
Member
From: UK
Registered: 2012-09-26
Posts: 234
Website

Re: Cookie Module

Thanks Matt,

Silktide working nicely, seems to load quicker than cookie-script as well.

Offline

#15 2016-06-06 19:11:09

lofty
Member
From: UK
Registered: 2012-09-26
Posts: 234
Website

Re: Cookie Module

Also, for those of us who worry about doing the right thing smile

Here's a blog link from Silktide that just about sums the EU cookie law up nicely -  https://silktide.com/the-stupid-cookie- … d-at-last/

Offline

#16 2016-06-06 21:08:06

tomowensphoto
Member
From: Suffolk
Registered: 2012-11-21
Posts: 218
Website

Re: Cookie Module

Nice link Lofty.
I'll settle for Silktide. It works.
TomO


Regards,
TomO
Just a simple photographer
Live site at http://tomowens.openpoint.co.uk/

Online

#17 2016-06-08 05:27:24

tonesshots
Member
Registered: 2012-11-22
Posts: 39

Re: Cookie Module

I have been building a new website with Backlight in a sub domain of my main CE4 site. I live in the UK. At the risk of asking a silly question - does building a website using backlight imply use of cookies and therefore I too need to deal with the matter being discussed in this topic? Or are the members interested in this topic doing something more advanced with their sites that call for the addition of cookie warnings as discussed here? Advice and guidance welcome.

Offline

#18 2016-06-08 06:44:11

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,937
Website

Re: Cookie Module

this site looks like it's got a lot of information, including a free e-book on the cookie law: http://sitebeam.net/cookielaw/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

#19 2016-06-08 17:52:08

tonesshots
Member
Registered: 2012-11-22
Posts: 39

Re: Cookie Module

Thanks Rod for link to the cookie info site. What a lot of fuzzie mumbo jumbo that law is. Typical EU rubbish IMHO. Looks like I should give thought to including something as it seems even my social media buttons for Facebook and Flickr are in scope. I look forward to casting my Brexit vote in a few days time?
Tony

Offline

#20 2017-04-17 02:57:42

Dieter_Kurth
Member
Registered: 2013-11-17
Posts: 20

Re: Cookie Module

I am a dummy in programming web sites. I want only to use them. But as you heard already the EU decided to give a message to the user of the website if there are cookies installed. Can I get a step by step solution in which file I have to put in which code.
I think that I want to use the  "Cookie Script" page to generate the code. Do I need to buy the premium discount to get the JS file?

It would be great if someone can explain it to me how to do it step by step.

Thank you very much for your help

Offline

#21 2017-04-17 07:47:29

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,937
Website

Re: Cookie Module

You'll have to ask the Cookie Script people about purchasing their script. It does look like you need to purchase the premium version to download the code. The free version pulls the code from their site.  (I only tried the free version)

You'll need to use phplugins to insert the script into your page. I'd try using the ttg_scripts hook since that's now available (I don't believe it was when this subject was initially brought up).

Documentation for using phplugins is here: http://backlight.theturninggate.net/doc … _phplugins

In your Backlight download, in the backlight/custom/phplugins folder you'll see a number of .php files. Using a plain text editor, open the one named phplugins-sample.php.
You may wish to then save it as simply phplugins.php. Up to you.

Around line 167 is the beginning of the User Functions area. Place your code after the SET USER FUNCTIONS BELOW area.
(You'll see some sample functions there too. They are commented out and are not active, but are there for you to use if you wish)

This is what you want to place there:

function ttg_scripts( $style, $path ) { 
	echo '

<!-- Your code goes here -->

	';
	return false;
} // END

Replace <!-- Your code goes here --> with the code supplied to you.

If that code has any single quote marks ('), you'll need to escape them by placing a backslash \ in front of each instance of a single quote in the code.
Save the file and upload it to yoursite.com/backlight/custom/phplugins/

Log into Backlight and go to your page template. Scroll down to the Advanced Customization area and under PHPlugins, enabled your phplugins file.

That should do it.

If your site goes blank, then there is a syntax error in your phplugins file. Likely a missing closing brace } or semi-colon. If you can't find it, post the contents of the file here and someone will take a look.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 1.1.1 test site, Pangolin test site

Offline

Board footer

Powered by FluxBB