FrankenCookie

Description

To make your site compliant with Cookie Laws, FrankenCookie provides a widget that offers visitors an explanation about cookies being placed on their computer.
By default, it shows a message that informs the visitors about their implied acceptance when they continue to use your site.

The widget provides a default text which can be customized. It also provides a link that visitors can click so that the widget does not appear again as long as the cookie used by FrankenCookie is found when the visitor browses the site.

The default message shown is:

We use cookies to optimize your experience on our site and assume you’re OK with that if you stay.

Along with the message, a link saying

OK, hide this message.

allows the visitor to hide the message on further page views and visits.

“Beware, for I am fearless and therefore powerful.” – the monster

Feedback

Feedback is welcome!

If you need help, have problems, want to leave feedback or want to provide constructive criticism, please do so here at the FrankenCookie plugin page.

Please try to solve problems there before you rate this plugin or say it doesn’t work. There goes a lot of work into providing you with free quality plugins! Please appreciate that and help with your feedback. Thanks!

Twitter

Follow @itthinx on Twitter for updates on this and other plugins.

Translations

Screenshots

  • FrankenCookie Widget Settings
  • Example FrankenCookie Widget Appearance

Installation

  1. Upload or extract the frankencookie folder to your site’s /wp-content/plugins/ directory. You can also use the Add new option found in the Plugins menu in WordPress.
  2. Enable the plugin from the Plugins menu in WordPress.
  3. Drag the FrankenCookie widget under Appearance > Widgets to a sidebar.
  4. Customize the widget’s text if you want to.

FAQ

I have a question, where do I ask?

You can leave a comment at the FrankenCookie plugin page.

Does it work with caching plugins?

Yes. FrankenCookie renders the content of the widget and hides it with Javascript that checks if the frankencookie cookie (yummy) is present.
If it is found, it hides the widget’s content.
As what is rendered does not change, it doesn’t matter whether a caching mechanism is used or not.
What changes is the behaviour based on the cookie. Of course this will only work if the visitor has Javascript enabled.
Those that don’t will always see the message.

How does this impact my site’s performance?

Tests with P3 show that the plugin’s execution time is about 1-2% of WordPress’ core.
Well, still a small price to pay compared to the abysmal nonsense of some regulations.

How can I style the widget?

The widget can be styled quite easily using CSS rules.

  • the widget’s CSS class is frankencookie
  • the message is wrapped in a div with class frankencookie-message
  • the link to hide the message is also in a div with class frankencookie-hide

Example – show the message at a fixed position at the bottom of the page:

.frankencookie {
    font-size: 11px;
    margin-top: 2px;
    text-align: center;
    position: fixed;
    bottom: 0;
    color: #f0f0f0;
    background-color: #000;
    z-index: 10000;
}
.frankencookie .frankencookie-message,
.frankencookie .hide {
    display: inline;
    margin: 2px;
}
.frankencookie .frankencookie-hide a {
    color: #fff;
    padding: 2px;
    font-weight: bold;
}
.frankencookie .frankencookie-hide a:hover {
    background-color: #999;
    color: #111;
}

Contributors & Developers

“FrankenCookie” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.4

  • Updated to use API functions for internal paths instead of WordPress constants.

1.0.3

  • Changed the message and link CSS classes to make them more specific and avoid clashes with themes using the CSS class hide to hide content.
  • Updated the minimum required WordPress version and tested up to version info.

1.0.2

  • WordPress 3.8 compatibility checked

1.0.1

  • WordPress 3.6 compatibility checked

1.0.0

  • Initial release.