Skip to content

A WordPress Plugin to warn your users of possibly offensive content.

License

Notifications You must be signed in to change notification settings

kloneets/content-warning-v3

 
 

Repository files navigation

Content Warning v3

Rating Plugin Version Tested Version Plugin Downloads License Issues

Current Version: 3.6.9
Tested Up To: 4.5.2
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.

Installation

Easy Method

  1. Download the zip file.
  2. Login to your Dashboard
  3. Open your plugins bar and click Add New
  4. Click the upload tab
  5. Choose content-warning-v2 from your downloads folder
  6. Click Install Now
  7. All done, now just activate the plugin
  8. Go to CWv3 menu and configure
  9. Save, and you're all good.

Old Method

  1. Upload content-warning-v2 to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

This plugin is tested and proven to work with WordPress 3.4

The plugin is broken, fix it.

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.

Changelog

3.6.9

  • Small cleanup
  • Force text color to be black - fixes #43
  • Use COOKIEPATH instead of SITECOOKIEPATH constants, compatibility fix for sub-folder installs - fixes #42

3.6.8

  • Use background-image css property instead of just background - thanks to 95CivicSi

3.6.7

  • 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.

3.6.6

  • Fixed CSS issues for background images and css overrides6

3.6.5

  • Zero day ( 0 ) cookies should use sessions instead of NOT setting the cookie. Issue #29
  • New filter for display condition - See Wiki - Issue #26

3.6.4

  • 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

3.6.3

  • Category fix, fixes #18
  • Alphabetize method names, because why not!?
  • Few docblock changes

3.6.2

  • Dialog re-sizing fixes.

3.6.1

  • Cookie HOTFIX

3.6.0

  • 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.

About

A WordPress Plugin to warn your users of possibly offensive content.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 56.1%
  • CSS 26.0%
  • JavaScript 17.9%