這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Age Gator

外掛說明

Age Gator is a WordPress plugin specifically designed to guard sensitive content (alcohol, gambling, x-rated, etc) from underage users. Featuring an abundance of customizable settings, the display and behavior of the overlay can be easily configured to suit a variety of use cases.

Features

  • Select from templates for Beer, Smoking, Vaping, Marijuana, or Adult or customize for your unique use case
  • Checks age of user before showing content
  • Edit appearance and text directly from the Customizer live preview screen
  • User prompt may be set to a yes/no button, age entry, date of birthday entry, or confirmation checkbox
  • Optional Retry button
  • Remember previously passed users
  • Set previously passed user bypass expiration time
  • Limit number of attempts
  • Ignore logged in users
  • Customized failure and success messages
  • Show age gate on all pages, all pages except those specified, or only on pages specified (Whitelist or Blacklist)
  • Wilcard support for setting whitelisted and blacklisted pages
  • Caching compatible

Preview Features

螢幕擷圖

  • Admin Customizer Age Gate Example
  • User Facing Age Gate Example

安裝方式

  1. Upload the ‘age-gator’ folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Click on “Edit in Customizer” and change your settings

常見問題集

How can I get started?

After you install and activate the plugin, a new tab called “Age Gator” should appear on the customizer screen (found in the appearance section). From here, you can select the starter template that best matches your use case, and edit the other options from there.

I want to remember users that have already passed the age gate and allow them to skip the verification. How can I do that?

There is an option available under settings called “Remember User” that will do this. You can also enable the “Ignore Logged in Users” option.

What happens when a user fails the age gate?

That depends on what settings are enabled. The default behavior is to simply show a failure message (eg “Sorry, but you must be 21 years of age to visit this webpage”), but the user can refresh the webpage and attempt the age gate again. If you’d like to provide users with an easy way to retry, you can enable the “Show Retry Button” setting. If you don’t want to allow users to retry the age gate at all, you can check the “Limit Attempts” option and set the “Max Attempts” value to 1.

How can I set the age gate to display on only certain pages?

You can choose to have the age gate appear on all pages of your website or only on some pages. If you don’t want the age gate to appear on all pages, you can select to use either a whitelist or a blacklist. First, select the “Pages” tab from the Age Gator customizer area. A blacklist approach will show the age gate on all pages except those specified, and a whitelist approach will only show the age gate on the pages specified. From here, add a relative url for each page that you want to whitelist/blacklist. For example, if your website is “example.com”, and the page you wanted to whitelist/blacklist was located at “example.com/spirits/”, then you would enter “/spirits/”. Each item that appears on the whitelist/blacklist should be put on a new line. Preview

I see a cancel button at the top of the age gate modal, but I don’t want my age gate to be dismissible to users. What gives?

The cancel button is only displayed to logged in admin users – it doesn’t appear to regular visitors.

I’ve used the appearance Customizer to modify some of the details, but still can’t quite get it to look the way I want. Can you help?

Yes, although the plugin features an extensive list of editable properties, your age gate’s appearance will still depend on the base CSS of your WordPress theme. If you need a pro to make it pixel perfect, please make a support request

Where can I preview Age Gator’s features?

The feature list can be explored at https://www.age-gator.com

使用者評論

TOP

2024 年 11 月 24 日
This plugin hasn’t been updated for 5 years, but it works better than the dozen or so I tested. Worth 10 stars
2020 年 6 月 13 日
Superbly done neat and easy to use exactly what I was looking for. Thank you
2020 年 4 月 20 日
Really easy to use and highly customizable. Just what I was looking for. Thank you.
閱讀全部 5 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Age Gator〉的開發相關工作。

參與者

〈Age Gator〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Age Gator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.00

  • Initial release

1.02

  • Adds starter templates

1.03

  • Makes uninstall process cleaner

1.04

  • Makes age gate dismissible to admin users

1.05

  • Adds support for redirects on fail

1.06

  • Fixes bug preventing site from scrolling after user passes age gate