该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

FrankenCookie

描述

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

屏幕截图

  • FrankenCookie Widget Settings
  • Example FrankenCookie Widget Appearance

安装

  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.

常见问题

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;
}

评价

此插件暂无评价。

贡献者及开发者

“FrankenCookie” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“FrankenCookie”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

See changelog.txt