Current Version: 3.7.1
Tested Up To: 4.7.3
Author: Jay Wood
Author URI: http://plugish.com
License: GPLv2+
A WordPress Plugin to allow site owners to display an acceptance dialog to their users and have that follow them throughout the site. This plugin allows you to do redirect users if they decline,
and show popups only on single posts, pages, or categories. ie. if a user accepts on Post A
, but no Post B
, you can force them to accept on a per-post/page/category basis. You can also set
the popup to site-wide, meaning the first time they accept, they will not see it again.
This plugin allows you to do the following:
- Gate Individual Posts
- Gate Individual Pages
- Gate Individual Categories
- Specify cookie time ( in days ) - or just for the browser session
- Block or redirect users who previously denied your terms.
- Customize enter & exit links
- Customize the message, enter, and exit text
- Customize the CSS in the settings page
- Customize the background color via a simple color selector, along with it's opacity
- Blanket protect misc. pages like search and archives
Report an issue | Make a pull request
Check the Youtube Video | Download from Official Wordpress.org
NOTE:
If the exit link is left empty, users will be redirected to google.
- Download the zip file.
- Login to your
Dashboard
- Open your plugins bar and click
Add New
- Click the
upload tab
- Choose
content-warning-v2
from your downloads folder - Click
Install Now
- All done, now just activate the plugin
- Go to CWv3 menu and configure
- Save, and you're all good.
- Upload
content-warning-v2
to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
This plugin is tested and proven to work with WordPress 3.4
Please do not contact me with questions like this. If you cannot be descriptive with your problem I cannot help you.
- If your browser does not have cookies enabled, the plugin will not store your response.
- Also, if you're using google chrome, this is a bug that unfortunately I have been unable to squash. Hitting F5 or refresh will fix it.
- Upgrading to 3.7 will de-activate your plugin. This is because the name of the main plugin file was changed for localization purposes. Your settings are still saved you just have to re-activate the plugin.
- Removed some rogue logging methods.
- Fixed category saving in options Fixes #59
- Fixed an opacity bug where if user set opacity to 0, it was ignored. This should no longer happen.
- Move to the settings API, drop JW Simple Options framework ( I was a newbie when I made it ). Fixes #45
- Use Select2 for categories
- Use a better check method for checkboxes and multi-select - fixes #49
- Set opacity step to 0.1 - Fixes #55
- Small cleanup
- Force text color to be black - fixes #43
- Use
COOKIEPATH
instead ofSITECOOKIEPATH
constants, compatibility fix for sub-folder installs - fixes #42
- Use background-image css property instead of just background - thanks to 95CivicSi
- Fixed conditional being too strict #34
- Fixed plugin homepage link #31
- Removed uninstall hook for now - Options API needs to be updated
- Fixed denial toggle to actually remove denial text if it was once on, but now off.
- Fixed CSS issues for background images and css overrides6
- Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. Issue #29
- New filter for display condition - See Wiki - Issue #26
- Fixed denial redirects. Issue #28
- Fixed multiple undefined index errors on admin
- Changed yes/no on post columns to locked dash-icon, less clutter
- Clean up meta saving logic
- Added @since tags for future development
- Better PHP documentation
- Add /lang directory for I18n
- Update Tested Up To version
- Development Documentation
- Passified all PHPcs complaints
- Category fix, fixes #18
- Alphabetize method names, because why not!?
- Few docblock changes
- Dialog re-sizing fixes.
- Cookie HOTFIX
- Split methods and hooks from main class file, will prevent overhead, also separates admin from front-end.
- Moved to use of cookie.js
- Created API file for methods.
- New filters & actions for developers
- Began development of API file, currently only support JS outputs.
- NEW Filters for content outputs, see
inc/api.php
more to come. - Switched CSS priority, to allow custom css to override bg image and opacity
- Converted sass file to nested sass and uses classes instead of IDs
- stacyk - Made buttons visible on popup at all times.
- stacyk - CSS Fixes for new popup.
- New Popup coding, dropped colorbox in favor of my own popup code. ( Less bloat )
- BIG THANKS to Stacy for helping me with some initial CSS issues.