Welcome to WebmasterWorld Guest from 34.238.192.150

Forum Moderators: martinibuster

Message Too Old, No Replies

GDPR and Dreamweaver extension

Show/hide divs with Adsense (or other stuff)

     
4:49 pm on May 27, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 27, 2001
posts:1186
votes: 16


Note: this link has been cleared with forum mods and admin...

Background: with the upcoming GDPR, I went looking for a solution to show and hide content based on user decisions. As I have used Dreamweaver for many years now, I thought that extension developer ProjectSeven might provide a solution. I visited their forums to have a look. Over there I got in touch with one of their testers, who had previously written an extension which looked as though it might do the job with some updating. Following some discussions we came up with a customised extension that suits my needs. I asked him if he would be OK with me publicising it and he was fine with it.
What It Does: the extension adds a div to the page at the top or bottom with Yes | No buttons or links. When No is chosen, the notification layer disappears and, on subsequent pages or page reload, the choice is effected by showing or hiding divs which have been selected by the site owner. So, in effect, it is possible to hide Adsense, Analytics and other stuff (I used it to hide iframes as well) if the visitor chooses not to accept cookies. Text and notification div page position can be chosen and there is a css file which can be edited. In the User Help notes there is also code for a Reset Cookie link, which is useful for testing or as a Reset Cookie Preferences link on a production page.
What It Does Not Do: it does not stop cookies from being dropped on initial view (I wasn't too bothered about that at the moment) although it apparently wouldn't be too hard to switch from show/hide to hide/show if anybody wanted some custom work.
It requires a reload or a visit to another page for the effects to take place, although I think adding auto-reload capability is simple JS for anyone interested.

The reason I wanted this extension was particularly for a site where AS is not an important income source, so I wasn't too happy about losing it if necessary, but it would also be suitable for anyone who needs to use the 'choice' version of notification rather than the 'implied' version now or in the future.

Alternatives that are being talked about are either the simple free Silktide-type 'Got It' message or the rather more complicated ones with choice which are free for one domain up to a certain amount of page views and ca. $10 or $20 a month per domain after that.

This extension cost me a one-time $80 for something that sits in Dreamweaver and I can use on any number of sites with js and css called from the server rather than a remote location that may or may not be consistent or reliable.

Hopefully someone here might also find it useful. If it doesn't quite fit but it looks interesting, have a chat with the developer. I have no connections to it or financial incentive to promote it - I just thought it might be useful for some WebmasterWorld members as there seemed to be some confusion about JS solutions to GDPR.

Extension help file: [boughner.us...]
Extension site link: [boughner.us...] (second production down under Products tab)
7:21 pm on May 27, 2018 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 13, 2002
posts:14938
votes: 495


Just an FYI, Stever's post was approved by the moderators because the plugin/extension may be useful for some members.

Thanks for sharing! :)
1:08 am on May 28, 2018 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
posts:12913
votes: 893


I wasn't aware anyone still used Dreamweaver.