Closes comments on blog entries after a user-configurable period of time, with an option to make allowances for active discussions.
This plugin extends the comment closing functionality in WordPress to allow
you to extend the discussion time when older posts have recent comments
accepted, or to override the comment closing time on a post by post basis.
Note: PHP 4 is no longer supported. As of version 2.1, Comment Timeout requires PHP 5.2 or later.
If you are still using PHP 4, you should use Comment Timeout 2.0.1.
You can change various settings globally on the “Comment Timeout” page under the
“Options” tab on the WordPress dashboard. Most of the options are fairly
self-explanatory.
You can also change options on a per-post basis by looking for the
“Comment Timeout” section in the sidebar of the post or page editor.
Comment Timeout 2.1 introduces two new functions that you can use in your theme:
get_comment_timeout()
Returns the UTC time, as a Unix timestamp, when comments will be closed for the current post.
the_comment_timeout($relative, $dateformat, $before, $after, $moderated)
Formats and displays the date and time after which comments will no longer be
accepted on this post. Parameters are:
true
if you want to display the date in terms of the time remainingfalse
to display it as an absolute date.false
, it will use the date format that you have configured$relative
is set to true
, this parameter is ignored.When reporting bugs, please provide me with the following information:
If you wish to get hold of the latest development version, or to contribute
bug fixes or new features, you can clone the project on GitHub:
git clone [email protected]:jammycakes/comment-timeout.git<h3>Redistribution</h3>
Copyright (c) 2007-2013 James McKay
http://jamesmckay.net/
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.
For more information, please visit the plugin’s home page:
https://github.com/jammycakes/comment-timeout
comment-timeout
and all the files in it into yourThis is the fault of your theme, not this plugin. Some theme authors do not test
their themes properly with posts for which comments have been closed.
See this blog post for details.
You should contact your theme developer and ask them for a fix.