Age Gate

Описание

Существует много применения для ограничения контента по возрасту, такие как трейлеры фильмов, алкоголь или другие «взрослые» темы. Данный плагин позволяет установить возрастное ограничение на тот или иной контент.

Возможности

  • Проверяет возраст посетителей перед загрузкой сайта
  • Дружелюбно к SEO — поисковые роботы освобождены от проверок возраста
  • Ability to add custom user agents for less common bots
  • Shortcode for in content restrictions
  • Выбирайте, что ограничить — весь сайт или отдельные страницы
  • Устанавливайте различное возрастное ограничение на различном контенте
  • Позволяет убрать ограничение по возрасту с некоторых записей в режиме «Весь контент»
  • Три варианта для ввода: выпадающие списки, поля ввода или просто кнопки «Да»/»Нет»
  • Меняйте порядок полей, основываясь на регионе сайта (ДД/ММ/ГГГГ или ММ/ДД/ГГГГ)
  • Добавляет чекбокс «Запомнить меня», если это нужно
  • Возможность отключения проверки для зарегистрированных пользователей
  • Добавьте свой логотип
  • Обновлен текст, показывающийся в форме у записи
  • Выбирайте цвет/изображение фона, цвет на переднем плане и цвет текста
  • Используете стили по-умолчанию или используете свои
  • Возможность добавить юридическую заметку или информацию внизу формы
  • Перенаправляет не прошедших проверку на любой URL (например, на сайт, где нет алкогольных напитков)
  • Возможность использовать некэшируемую версию
  • Добавлены различные хуки для еще большей кастомизации такие ,как дополнительные поля формы
  • Compatible with multilingual plugins WPML, Polylang (2.3+), WP Multilang

Скриншоты

  • Пример использования Age Gate
  • Страница "Ограничения" в настройках
  • В Age Gate есть различные настройки вывода сообщений
  • Внешний вид может быть подстроен под ваш сайт
  • Advanced options include the use of a JavaScript Age Gate
  • Управляйте, какие пользователи могут менять настройки Age Gate, ограничивать записи и исключать из ограничений выбранные типы записей.

Установка

  1. Загрузите папку ‘age-gate’ в директорию ‘/wp-content/plugins/’
  2. Активируйте плагин в меню ‘Плагины’ в WordPress
  3. Посетите раздел «Age Gate» в панели администратора и настройте плагин.

Важно
Убедитесь в том, чтобы проверить вкладку «Доступ» в настройках, чтобы дать разрешения и убрать ненужные типы записей, на которых вам не нужно устанавливать возрастное ограничение.

Часто задаваемые вопросы

Я не могу пройти Age Gate / Age Gate работает только единожды

В большинстве случает это вызвано кэшированием на вашем сайте с помощью плагина или вашего хостинга. Если Age Gate застревает, попробуйте поставить режим JavaScript во вкладке «Расширенные» и почистить все кэши.

Могу ли я запретить доступ к определённой странице?

Вы можете. Если вы используете выборочное ограничение, чекбокс появится на страницах редактирования записей

Могу ли я добавить свой логотип?

Конечно, это же ваш сайт

Я нахожусь в стране X, могу ли я поменять формат даты?

Да! Форматы ДД/ММ/ГГГГ и ММ/ДД/ГГГГ поддерживаются наряду с выбором, как должна вводиться дата.

Я использую кэширование, будет ли это как-то влиять на работоспособность?

С версии 1.4.0 те, кто использует кэширование, могут выбрать «Обход Кэширования» для того, чтобы была возможность возрастного ограничения даже с включённым кэшированием. Убедитесь, что вы очистили кэш, когда вы делаете изменения в настройках плагина. Начиная с версии 2.0.0 данная опция находится во вкладке «Расширенные» и называется «Использовать некэшируемую версию»

Отзывы

05.09.2023
The best plugin for are verification, with a ton of extra features.
08.12.2022
All you need for the age verification handling on your website - detailed field options, custom styling, multilingual versions, top support. You may add basic custom code for additional styling as well.
24.09.2022
Thank you very much for this fantastic age verification plugins. Works great, fast and without any bugs, settings are easy, and the plugin is free, thanks to the creator.
Посмотреть все 58 отзывов

Участники и разработчики

«Age Gate» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Age Gate» переведён на 7 языков. Благодарим переводчиков за их работу.

Перевести «Age Gate» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

3.3.3

  • Added empty file to fallback view directory

3.3.2

  • Changed — VH height css variable
  • Fixed — Age Gate meta box displaying on shop orders using HPOS

3.3.1

  • Changed — default Age Gate z-index
  • Fixed — Long missing headline override settings
  • Fixed — Issue with certain transition changes not applying to the JS version

3.3.0

  • Fixed — video playback on some devices (playsinline)
  • Fixed — Query params stripped when redirecting (standard mode)
  • Fixed — markdown not rendering as it should in some locations
  • Added — Options to change header elements via settings
  • Added — Disable Age Gate option without need for deactivation
  • Changed — method of blurring background content
  • Removed — obsolete age_gate/presentation/blur/ignore filter

3.2.0

  • Added — Option to store data in localStorage instead of cookies
  • Added — Filter to final validation rules
  • Fixed — Multilingual messages not translating if langauage key is hyphenated
  • Fixed — Deprecations in new PHP versions
  • Fixed — Issue were some ages would retrigger the modal
  • Fixed — Errors in loading text domain
  • Fixed — Support for offloaded media

3.1.2

  • Fixed — Fatal error under PHP8.1 when storing access settings
  • Fixed — Error on activation if administrator role non-existent

3.1.1

  • Fixed — URL comparison in Safari

3.1.0

  • Added — option to inherit status from ancestors
  • Added — option for custom date error message
  • Fixed — admin messages showing erroneously
  • Fixed — success redirects in JS mode

3.0.13

  • Added — polyfill for mbstring

3.0.12

  • Fixed — Issue in Standard mode where passing Age Gate would empty shopping cart

3.0.11

  • Fixed — Issue where Breeze cache wouldn’t render Age Gate.
  • Updated — translation file

3.0.10

  • Fixed — Error message translation
  • Fixed — Autotabbing when using regions addon
  • Fixed — Multilingual messages not translation if langauage is the same
  • Fixed — potential error thrown in array flatterning method
  • Fixed — Anonymous mode allowing undesired users through
  • Fixed — Selects not repopulating in PHP mode
  • Added — option to sort select years
  • Added — option to render loading icon as image
  • Changed — default minimum select year to 1900
  • Changed — button submission handler to (hopefully) resolve lingering mobile issues
  • Removed — unused admin modal styles

3.0.9

  • Fixed — remove buttonshowing even with no image selected
  • Added — Legacy hook for age_gate_logo
  • Added — New hooks for logo manipulation

3.0.8

  • Fixed — Multilingual fields missing since 3.0.6
  • Added — CSS Variable —ag-transition-timing
  • Changed — CSS Variable —ag-transition to —ag-transition-duration

3.0.7

  • Fixed — Wrong input being selected by default when not DDMMYYYY
  • Fixed — JS hooks continuously rechallenging users
  • Fixed — toolbar toggle inoperable on insecure sites

3.0.6

  • Fixed — JS Hook when age gate already passed
  • Fixed — JavaScript exit transitions
  • Added — AJAX fallback if REST unreachable
  • Added — age_gate_hidden JavaScript event
  • Changed — Admin nav behaviour
  • Changed — Admin validation behaviour

3.0.5

  • Fixed — typos in README
  • Fixed — additional tools not displaying
  • Fixed — per page controls not showing
  • Added — checks for dependencies
  • Added — filter for cookie domain
  • Changed — default cookie domain is current domain
  • Changed — cookie name filter
  • Changed — default colours in line with v2
  • Changed — Legacy hook class name

3.0.4

  • Fixed — Restriction display in admin
  • Fixed — Implemented new polyfill for Safari event submitter
  • Fixed — Phantom validation errors in Content section
  • Fixed — Double escaping in buttons prompt
  • Added — cleanup for previous cron schedule
  • Changed — Removed use of PHP short tags

3.0.3

  • Fixed — Fatal error under some settings combination
  • Fixed — Hide display of default scrollbar

3.0.2

  • Fixed — 0 valued opacity not being reflected on the site
  • Fixed — iOS Safari scrolling when Age Gate visible
  • Fixed — Older versions of Safari not operating with buttons
  • Fixed — Inability to store appearance settings
  • Fixed — Improved data sanitation
  • Fixed — Custom title output in js/munge mode
  • Added — CSS variable for loader colour
  • Added — Default post types to ignore in admin e.g. shop orders or attachment
  • Changed — Default max-width on logo to be 100%
  • Changed — Button styles prefixed with element
  • Changed — Cookie length filter to be time and length

3.0.1

  • Added — Standard cookie length filter age_gate/cookie/length
  • Added — PHP version check message
  • Fixed — per content toggle display incorrect status
  • Fixed — minor stylistic elements for wider default support
  • Fixed — Javascript error in focus trap when using buttons
  • Fixed — Excessively strict validation rules
  • Fixed — Escaped characters showing on front end
  • Removed — API Error warning as return false flags
  • Removed — Unused API endpoint

3.0.0

  • Переписание плагина с нуля
  • Improved Taxonomy inheritance
  • Removed: Use of admin-ajax in JS mode
  • Removed: Custom CSS editor
  • Removed: jQuery dependencies
  • Changed: Custom editor to support markdown and be stricter
  • Added: Ability to override templates in theme
  • Added: Easily add classes and other attributes
  • Added: Option to load Age Gate earlier in the DOM
  • Various performance and security improvements