2014-07-09 17:15:46 -07:00
=== Content Warning ===
Contributors: Phyrax
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U5M6JBDKGF3EJ
Tags: warning, message, lading page, front page, enter page, adult content, consent, age verification, validation
Requires at least: 3.5
2017-03-24 08:12:26 -07:00
Tested up to: 4.7.3
2016-11-04 06:45:36 -07:00
Stable tag: 3.7.2
2014-07-09 17:15:46 -07:00
A plugin that provides a warning box with a ton more options completely re-written from the ground up.
== Description ==
2014-07-13 14:44:59 -07:00
= Support Requests =
2024-05-07 19:18:54 -07:00
All support requests should be on the [Github Repository](https://git.oldgate.org/sophia/wp-cw).
2014-07-13 14:44:59 -07:00
= Want to Contribute? =
2024-05-07 19:18:54 -07:00
Make a [Pull Request](https://git.oldgate.org/sophia/wp-cw) to the Github's project development branch. Don't forget to read the [Development Documentation](https://git.oldgate.org/sophia/wp-cw/wiki/Dev-Documentation) for nifty hooks that may help.
2014-07-13 14:44:59 -07:00
2015-08-29 11:18:28 -07:00
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.
2014-07-09 17:15:46 -07:00
2015-08-29 11:18:28 -07:00
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
2014-07-09 17:15:46 -07:00
[youtube http://www.youtube.com/watch?v=0_ZNojpYuwk]
2016-06-30 10:40:44 -07:00
*NOTE:*
2014-07-09 17:15:46 -07:00
> If the exit link is left empty, users will be redirected to google.
2016-09-30 13:01:00 -07:00
== Upgrade Notice ==
= 3.7 =
* 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.
2014-07-09 17:15:46 -07:00
== Installation ==
2014-07-13 14:44:59 -07:00
= Default Method =
1. Go to Settings > Plugins in your administrator panel.
1. Click `Add New`
1. Search for Content Warning v2
1. Click install.
2014-07-09 17:15:46 -07:00
= Easy Method =
1. Download the zip file.
1. Login to your `Dashboard`
1. Open your plugins bar and click `Add New`
1. Click the `upload tab`
1. Choose `content-warning-v2` from your downloads folder
1. Click `Install Now`
1. All done, now just activate the plugin
1. Go to CWv3 menu and configure
1. Save, and you're all good.
2016-06-30 10:40:44 -07:00
= Old Method =
2014-07-09 17:15:46 -07:00
1. Upload `content-warning-v2` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
== Frequently Asked Questions ==
2014-09-05 22:01:34 -07:00
This plugin is tested and proven to work with WordPress 4.0
2014-07-09 17:15:46 -07:00
2014-07-13 14:44:59 -07:00
= Why aren't you answering support questions? =
2024-05-07 19:18:54 -07:00
All support questions should be directed to the github issues section, just [open a ticket](https://git.oldgate.org/sophia/wp-cw/issues).
2014-07-13 14:44:59 -07:00
2014-12-08 07:40:17 -08:00
= How to get support =
2014-07-13 14:44:59 -07:00
* Provide a detailed explination of what the issue is, `it's broken` tickets will be closed.
* Detail what you have done to try and fix the problem.
* Provide a detailed list of options that are set.
* Give a link to your site or the affected page.
2016-06-30 10:40:44 -07:00
= The plugin is broken, fix it. =
2014-07-09 17:15:46 -07:00
Please do not contact me with questions like this. If you cannot be descriptive with your problem I cannot help you.
= I'm still seeing the dialog even after I clicked enter/exit =
* 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.
2015-08-29 12:22:13 -07:00
= Plugin installed & activated, but not showing up =
* Verify your theme contains a `wp_header()` and `wp_footer()` tag, without it, this plugin will **NOT** function.
= Dialog mis-aligned, partially working? =
* Could be that your theme's css has broken the dialog
2024-05-07 19:18:54 -07:00
* Another plugin may be breaking the javascript, I suggest you [open an issue](https://git.oldgate.org/sophia/wp-cw/issues) and provide a screen shot of your debug console.
2015-08-29 12:22:13 -07:00
2014-07-09 17:15:46 -07:00
== Screenshots ==
1. Preview of the dialog shown by colorbox, for more info check the youtube video.
== Changelog ==
2016-11-04 06:45:36 -07:00
= 3.7.2 =
* Removed some rogue logging methods.
2016-10-15 13:28:24 -07:00
= 3.7.1 =
* Fixed category saving in options Fixes [#59](https://github.com/JayWood/content-warning-v3/issues/59)
2016-09-30 13:01:00 -07:00
= 3.7 =
* 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](https://github.com/JayWood/content-warning-v3/issues/45)
* Use Select2 for categories
* Use a better check method for checkboxes and multi-select - fixes [#49](https://github.com/JayWood/content-warning-v3/issues/49)
* Set opacity step to 0.1 - Fixes [#55](https://github.com/JayWood/content-warning-v3/issues/55)
2016-05-23 07:23:53 -07:00
= 3.6.9 =
* Small cleanup
* Force text color to be black - fixes [#43](https://github.com/JayWood/content-warning-v3/issues/43)
* Use `COOKIEPATH` instead of `SITECOOKIEPATH` constants, compatibility fix for sub-folder installs - fixes [#42](https://github.com/JayWood/content-warning-v3/issues/42)
2016-02-21 12:36:05 -08:00
= 3.6.8 =
2016-02-21 12:21:43 -08:00
* Use background-image css property instead of just background - thanks to [95CivicSi](https://github.com/95CivicSi)
2015-12-14 07:27:07 -08:00
= 3.6.7 =
* Fixed conditional being too strict [#34](https://github.com/JayWood/content-warning-v3/issues/34)
* Fixed plugin homepage link [#31](https://github.com/JayWood/content-warning-v3/issues/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.
2015-09-30 15:47:00 -07:00
= 3.6.6 =
* Fixed CSS issues for background images and css overrides
2015-09-05 18:16:02 -07:00
= 3.6.5 =
* Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. [Issue #29](https://github.com/JayWood/content-warning-v3/issues/29)
2015-09-05 18:17:15 -07:00
* New filter for display condition - [See Wiki](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation#hide-the-dialog-on-certain-pages-regardless-of-cookies) - [Issue #26](https://github.com/JayWood/content-warning-v3/issues/26)
2015-09-05 18:16:02 -07:00
2015-08-28 17:45:54 -07:00
= 3.6.4 =
* Fixed denial redirects. [Issue #28](https://github.com/JayWood/content-warning-v3/issues/28)
2015-08-29 12:24:59 -07:00
* 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](https://github.com/JayWood/content-warning-v3/wiki/Dev-Documentation)
2015-08-28 17:45:54 -07:00
* Passified all PHPcs complaints
2015-01-12 07:54:15 -08:00
= 3.6.3 =
* Category fix, fixes [#18](https://github.com/JayWood/content-warning-v3/issues/18)
* Alphabetize method names, because why not!?
* Few docblock changes
2014-12-15 08:32:02 -08:00
= 3.6.2 =
* Dialog re-sizing fixes.
2014-12-13 22:41:29 -08:00
= 3.6.1 =
* Cookie HOTFIX
2014-11-09 10:18:03 -08:00
= 3.6.0 =
2014-12-13 21:54:18 -08:00
* Split methods and hooks from main class file, will prevent overhead, also separates admin from front-end.
2014-11-09 10:18:03 -08:00
* Moved to use of cookie.js
* Created API file for methods.
2014-12-13 21:54:18 -08:00
* 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
2014-12-01 08:07:57 -08:00
* [stacyk](https://github.com/stacyk) - Made buttons visible on popup at all times.
2014-12-13 21:54:18 -08:00
* [stacyk](https://github.com/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.
2014-11-09 10:18:03 -08:00
2014-07-09 17:15:46 -07:00
== Upgrade Notice ==
= 2.0 =
Adds a ton more features from v1 by rajeevan. Along with a few security fixes.