- Author:Scott Reilly
- Version:2.0
- Last update:21 Jan 2010
- Compatibility:WP 2.8+, 2.9+
- Comments:go here
- Download:[ zip ]
- Description:
Conveniently close or open comments for a post or page with one click.
-
Extended Description
Conveniently close or open comments for a post or page with one click.
From the admin listing of posts (‘Edit Posts’) and pages (‘Edit Pages’), a user can close or open comments to any posts to which they have sufficient privileges to make such changes (essentially admins and post authors for their own posts). This is done via an AJAX-powered color-coded indicator. The color-coding gives instant feedback on the current status of the post for comments: green means the post/page is open to comments, red means the post/page is closed to comments. Being AJAX-powered means that the change is submitted in the background without requiring a page reload.
This plugin will only function for administrative users in the admin who have JavaScript enabled.
KNOWN ISSUE: After using the ‘Quick Edit’ for a post, the one click close button for that post no longer works until a page refresh (the button still appears and properly reflect the current status, though).
Find out more at the plugin’s WordPress Plugin Repository page.
-
Screenshots
Click to see full-size image.
-
Installation
- Unzip
one-click-close-comments.zip
inside the/wp-content/plugins/
directory for your site (or install via the built-in WordPress plugin installer) - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- When on the ‘Edit Posts’ or ‘Edit Pages’ admin pages, click the indicators to toggle the comment status for a post, as necessary.
- Unzip
-
Frequently Asked Questions
-
Q: I can see the colored dots indicating current commenting status, but why aren’t they clickable?
A: The commenting status link/button is only clickable is you have JavaScript enabled.
Q: What does the color-coding of the dot mean?
A: Green means the post is currently open for comments; red means the post is not currently open for comments.
Q: How can I customize the color-coding used for the dot?
A: You can customize the colors via CSS.
.comment-state-1
indicates comments are open..comment-state-0
indicates comments are closed.Q: How can I customize the dot used to represent commenting status?
A: By default, commenting status is represented using the
•
character. You can change this by filteringone-click-close-comments-click-char
. Here’s an example — added to a theme’s functions.php file — to change it to a solid diamond:add_filter( 'one-click-close-comments-click-char', create_function('$a', 'return "&diams";') );
-
-
Release Log
- 21 Jan 2010 : v2.0 — Release notes.. Highlights: improved functionality with JavaScript disabled; less reliance on JavaScript; bug fixes related to ‘Quick Edit’; filterable click character; localization support; support for WP 2.9+; and dropped support for WP older than 2.8.
- 12 Jun 2009 : v1.1: Bail out early if not on pertinent admin pages; use admin_url() for path to admin section; noted WP2.8 compatibility
- 06 Apr 2009 : v1.0 — Initial release
-
Copyright & Disclaimer
Copyright © 2009-2010 by Scott Reilly (aka coffee2code)Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 replies on “One Click Close Comments”
[…] One Click Close Comments Plugin von Scott Reilly ermöglicht das schließen oder öffnen der Kommentaroption bei der […]
[…] 35.One Click Close Comments […]
[…] 35.One Click Close Comments […]
[…] the a plugin the one I am currently using to hide comments on pages and leave them on posts is “One Click Close Comments” not the most eloquently titles plugin but it does exactly what it claims to […]