這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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;
}

評價

There are no reviews for this plugin.

貢獻者及開發者

“FrankenCookie” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 FrankenCookie 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

See changelog.txt