Extended Comment Options for WordPress
July 22, 2006 • 3:14 pm
Current version: 2.0
One feature which is conspicuously absent from WordPress is the ability to switch comments on or off for all posts. Under the Options > Discussion page, you can switch the default setting for comments on or off, but that only applies to posts you make from that point forward.
You can disable comments on individual posts, but if you’ve got more than twenty posts, this takes ages! This plugin allows you to quickly and easily switch comments (and trackbacks/pingbacks) on or off with a single click.
Extended Comment Options 2.0 has been tested on WordPress versions 2.3.2. Support for versions below this cannot be guaranteed. Upgrading to the latest version of WordPress is always recommended. If version 2.0 does not work, you can always try previous versions, though these do not have all of the features of 2.0 (the links are below).
Hidden Comments
Please note that this plugin does not hide existing comments. If you find comments being hidden after they have been closed, it is likely that your theme (i.e. the design of your blog) is hiding comments. If this is the case, please contact the author of that theme.
Instructions
The plugin adds a page under “Comments” called “Comment Status”. This page is split into two main sections: “Simple Settings” and “Advanced Settings”.
Simple Settings
You can quickly open or close all discussion on every single post by clicking the appropriate button under the “One-Click” heading. It also synchronises your Discussion options for future posts (i.e. the default settings for new posts).
If you want to open discussion on the last X posts/days/weeks/months/years, you can use the setting under “Posts in the last…”. If you have previously used the “Advanced Setting” form to exclude posts, this setting will respect that. You can set this to happen automatically, too.
Advanced Settings
This section gives you more control over discussion options. You can choose whether you want to open/close comments or pings, or both. You can also choose whether you want to change the default setting for new posts.
In the “Which posts?” section, you can choose which groups of posts you want to affect. The first two are for new posts and existing posts respectively. The third option allows you to open/close discussion on posts made before or after a specific date.
The fourth option allows you to, for example, open discussion on the last five posts, or on posts made in the last month, or the last 2 years. It then closes discussion on the remaining posts. The fifth option allows you to close comments on posts with a certain number of comments. These two options can be applied automatically, so you don’t need to keep applying it.
Excluding posts
Finally, you can choose to exclude certain posts completely. This is useful if you have a post which still draws comments long after it was originally posted. You can close discussion on all posts, but leave it open on that one post.
To exclude a post, simply enter its ID in the text box. If you want to exclude more than one post, separate each ID with a comma (you can also separate them with a comma and a space). You can find a post’s ID on the “Manage” page in your WordPress admin area.
Please note that the “One Click” setting overrides this, and will open or close discussion on all posts regardless.
Results
If everything has gone well, the plugin will display a brief summary of what you asked it to do. You can use this to check that it’s done what you wanted it to do.
Installation
Extended Comment Options is installed like any other WordPress plugin. Download the .zip file, and extract it. Place the file named “commentcontrol.php” in your wp-content/plugins directory, and activate it in the usual way from the “Plugins” page in your admin area.
- Download Extended Comment Options 2.0
- Download Extended Comment Options 1.1 (Compatible with WordPress versions prior to 2.2).
Upgrading
Upgrading is really easy. Just overwrite the commentcontrol.php file with the new version. You may need to re-activate the plugin from your admin area.
Support and Future versions
Feature requests are always more than welcome.
I’m happy to provide support for this plugin. Just leave a comment below, or visit the plugin’s page on WordPress.org.
Version History
Current Version: 2.0
Monday 10th January, 2008
- Added a new option: “When number of comments reaches a certain number”
- Major new feature: automatically close comments. So you can set comments to close on posts older than 30 days, and it’ll update automatically each day.
- Polished a few of the messages, made them easier to understand. Also reworded the admin interface to make it easier to understand.
- Behind the scenes: security is tighter. Also dates are calculated differently: One month ago from the 10th Jan is the 10th Dec. One year ago from 10th Jan 2008 is 10th Jan 2007, instead of being counted as everything beyond the current year.
Version 1.2
Friday 21st September, 2007
- The page now shows up under the “Comments” menu in WordPress, as opposed to the “Options” menu.
- The plugin now reports which posts were not affected (if selected) a lot more efficiently.
- The “Simple settings” options were previously changing the excluded posts setting. This is now no longer the case.
- Now supports more recent versions of WordPress (v 2.2) — specifically, it only affects published posts, no longer pages.
Version 1.1
Tuesday 25th July, 2006
- Tightened security
- “Last X posts” — fixed bug arising when X was greater than total number of posts!
- Compatible with WordPress v1.5.2.
Version 1.0
Saturday 22nd July, 2006
- Extended Comment Options first released!
45 Comments
Pingback from: WordPress Plugin: Extended Comment Options by Blogging Pro
July 24, 2006 • 4:17 pm
Armin wrote:
Sweet, just testing it atm, looks promissing
July 24, 2006 • 5:10 pm
Pingback from: Weblog Tools Collection » WP Plugin: Extended Comment Options
July 25, 2006 • 2:47 pm
CT wrote:
Compatibility? Is this for WP 2.x only, or will it work on 1.5.x?
July 25, 2006 • 3:35 pm
Mark wrote:
Hi CT,
Just released an update which I tested on WP v 1.5.2, and it’s compatible. Thanks for asking!
July 25, 2006 • 4:28 pm
CT wrote:
Excellent. I do think I’ll give it a spin.
July 25, 2006 • 5:03 pm
TechZ wrote:
Brilliant! That’s why I love WP, you think of something you need for your blog, and some smart person writes a plugin for it :P
Thanks :D
July 25, 2006 • 5:52 pm
Pingback from: Vida Vacia 4.1 - Blog de Edición Limitada » links for 2006-07-26
July 26, 2006 • 5:10 pm
Pingback from: agitprop.remix » Blog Archive » Daily del.icio.us/redjade Links
July 27, 2006 • 1:29 am
Pingback from: ..
July 27, 2006 • 6:53 pm
Pingback from: co.mments.com » Blog Archive » WordPress Plugin: Extended Comment Options
July 28, 2006 • 7:48 am
Pingback from: Diploma Teknologi Maklumat » Blog Archive » WordPress Plugin: Extended Comment Options
August 01, 2006 • 4:48 pm
Pingback from: newdisco » links for 2006-08-04
August 05, 2006 • 5:11 pm
Pingback from: Cardsbase » Blog Archive » WordPress Plugin: Extended Comment Options
August 17, 2006 • 5:58 pm
Pingback from: WP Plugin: Extended Comment Options - Cardsbase
August 18, 2006 • 8:46 am
Pingback from: Stuff by Sarah » Closing Comments
September 13, 2006 • 10:03 am
Blippy wrote:
I’m looking for a plugin that will allow me to specify an X number of comments (ie. 10)before closing (and excluding pin/trackbacks). I was told this plugin was capable of this but I cant see it as an option. Ideas?
September 13, 2006 • 3:52 pm
Pingback from: The Giving Flower » Tagged and spam help
September 13, 2006 • 6:13 pm
Mark wrote:
@Blippy:
Did you mean you wanted to do that automatically, each time a new post is made? If so I’m afraid my plugin can’t do that for you at the moment :(
But you can do it yourself, in the Advanced Settings section:
Then click Update!
September 14, 2006 • 11:11 am
Hans wrote:
I’m looking for a plugin that will either just supply a link which when clicked upon shows all comments made, preferably being able to set a max number per page with navigation for next page/previous page.
It would be cool if this could be done from the dashboard too.
Is this possible with this plugin?
October 17, 2006 • 10:25 pm
Mark wrote:
Hi Hans,
No my plugin doesn’t do that, but the Paged Comments plugin does!
October 17, 2006 • 11:13 pm
Hans wrote:
Thanks Mark :)
October 18, 2006 • 9:19 am
Pi. wrote:
I note that the program has to be reactivated at regular intervals as the ‘close everything older than 25 days’ (for example) doesn’t automatically update each day. Perhaps in the next update?
Also, can you perhaps consider an option whereby pings and trackbacks remain but comments are closed and vice versa?
More than happy with the plug-in otherwise, as it means by Akismet has considerably less to do, since the bulk of comment spam is aimed at older posts.
Pi.
December 02, 2006 • 10:13 pm
Jesse Colburn wrote:
is there a way to tweak the plugin to add the option “set comments status to closed when the number of comments gets to ______?”
i know it sounds weird, i think someone else requested something similar, but it seems like it would be useful, and i need it in the project i am working on, so when someone comments it would automatically close comments on that post - that way i can use the “if comments closed” php tag
i am crazy i know
June 28, 2007 • 12:09 pm
vijay wrote:
Nice plugin what I was looking for.. Will test soon
Thanx
November 01, 2007 • 5:22 am
Jenn wrote:
Would there be a way to modify this plugin so that it can force comments for a specific post to be moderated? There are some instances where I think it would be helpful to have a post’s comments moderated on a post-by-post basis.
December 28, 2007 • 9:41 pm
Mark wrote:
Hi Jenn,
Good idea, that’s something for me to think about for the next version. When I get some time I’ll look at that, and a couple of other solutions people have posted here. Thanks!
December 29, 2007 • 1:13 am
Karl wrote:
Is it (or could it be made) possible to have old posts set so that it’s not possible for someoen to add a new comment, but that old comments are still readable? It seems to me that this plugin, when it closes posts to comments, it hides comments that are already there. I find that 99% of spam comes in as comments to old posts but I’d like to be able to block it without losing comments that people have already made.
January 08, 2008 • 11:59 am
Mark wrote:
Hi Karl,
I deliberately made Extended Comment Options so that it doesn’t hide existing comments. It’s probably your theme that is doing that.
If you know PHP you can look in the file called single.php in your theme folder, there’ll probably be a conditional which inserts the comment form and comments if comments are open. Normally, it’s only the comment form that’s inside the conditional.
If not, get in touch with whoever designed the theme or someone who can help with PHP. The support forums are a great place to start.
January 08, 2008 • 5:07 pm
chris wrote:
Hey,
I got a website im working on at the moment, while i have comments i’d like to turn off for certain posts i’d also like to remove certain aspects from those particular posts also, like the date ect..
Is it possible to use the code you use to turn off the comments but also adapt it so it wraps around other variables in the page like;
IF commentsystem = off DO NOT DIsplay Date ELSE Display Date
January 11, 2008 • 1:04 am
Mark wrote:
I haven’t been into a theme file in a while, so I can’t remember if this is exactly right, but I think whether comments are open or not is stored in a variable called
$comments. All you’d need to do would be to check if this has a value oftrueor not:< ?phpif (true == $comments) {
post_date(); // Or whatever it is, I forget...
}
?>
January 11, 2008 • 8:07 am
chris wrote:
Thankyou Mark, ill give this a try tonight. I appreciate the help.
January 11, 2008 • 2:26 pm
Samuel wrote:
There is not any mention about 2.0 in the history here and neither in WP extend (or I cant see it). And jumping to 1.2 to 2.0 is a high jump… :)
Please, could you tell us what is changed in the 2.0?.
Thanks!
January 13, 2008 • 6:52 pm
Mark wrote:
Samuel:
Hehe, sure. I’m gonna update the page soon, when I get some time, but the biggest change is the automatic feature (you can set comments to close automatically now). Also, you can close comments once there’s a certain number of them, which a couple of people have asked for.
There are some other small changes, better security and a different way of working out dates, but they’re largely behind the scenes.
January 14, 2008 • 11:47 am
Ross wrote:
Great plugin, thanks for your efforts on this, however ….
when I try to set the automatic schedule to close comments older than 3 months it says it has done it with the messages, but on returning it does the opposite!
So, if I select Open (radio button) all comments older than 3 months from now on it sets them to closed as required. Bascially there is a bug reading the Open/Close radio button round the wrong way.
I hope this helps.
February 21, 2008 • 12:59 pm
Mark wrote:
Thanks Ross, I’ll look into this as soon as I can!
February 21, 2008 • 11:27 pm
Chris Masse wrote:
Thanks for the plugin.
Would be great if it managed pages too (as opposed to just posts).
Thanks again.
Chris Masse
March 10, 2008 • 10:00 am
Mark wrote:
Hi Chris,
That will be the next feature to be added!
Mark
March 10, 2008 • 10:08 am
kamera wrote:
Nice plugin what I was looking for.. Will test soon
Thanx
March 19, 2008 • 8:45 pm
Manolo wrote:
wow!
April 02, 2008 • 8:03 pm
kamera sistemleri wrote:
Nice plugin what I was looking for.. Will test soon
Thanx
April 10, 2008 • 12:42 pm
Tari wrote:
Is it compatible to WP 2.5? If not, do you plan to update it in the future?
April 14, 2008 • 5:21 am
Mark wrote:
Hi Tari (and everyone)
Looks like there’s a few problems with the latest upgrade. Gonna take a look at it this weekend, though.
Cheers!
May 02, 2008 • 10:00 am
Pete wrote:
Is it possible for the settings in the comment status page’s Advanced Settings section to be maintained so you can easily see what you had once selected? Currently mine always revert back to the default settings. Thank you.
May 03, 2008 • 4:29 am
Mark wrote:
Just to keep people posted… I’m working on a new version of the plugin, which should be available in the next few weeks as I get time to work on it!
May 08, 2008 • 11:37 am
Leave a Reply