« Preventing Comment Bot Spam with MT-Approval | Main | An Overview of the MT Program File Directories »

Closing Comments

spacer

by Elise Bauer

1 comment

One measure to guard against spam is to close comments on old blog entries. This is easy enough to do.

spacer

At the bottom of your Edit Entry window is the pull-down for none, open, or closed comments. If you don't see this as pictured, click on "Customize the display of this page" link, select "Custom" and select the fields you wish displayed, including "Allow Comments".

You can also set comments to be open, closed or non-existent by default through the weblog config window, Preferences section. Under "Comment Configuration" see "Allow Comments" Default. Note that you can override this default via your selection on the individual entry.

Plugins

There are several plugins that can be used to automatically close comments on old entries. See:

  1. Mark Carey's BlogJanitor
  2. Conversation Killer
  3. MT-CloseComments by Alan Carroll
  4. David Raynes' MT-Close


MySQL

If you are using the MySQL database it is pretty easy to go in with CPANEL or a tool like CocoaMySQL for the Mac and edit the database to close comments on many entries at once.


"Comments are now closed" Message

If you do close comments, after they've been open and have accumulated a few, it helps to let your visitors know that comments are actually closed. Otherwise it can be a bit confusing; they see a link to comments, a list of comments, but no place to leave a comment.

To leave a "Comments are now closed" message that shows up when comments are closed, but not when they are open or non-existent, you can add the following code to the default MT Individual Entry Archive (assuming your comments are inline).

<MTElse> <p>Comments are now <b>closed</b> for this entry.</p><br /> </MTElse>

Put this code right above the following tags in the MT3 default Individual Entry Archive template:

</MTEntryIfCommentsOpen> </MTEntryIfAllowComments>

posted on December 25, 2004 under Comments and Trackbacks and tagged with Closing Comments, Comments.

Comments (1)

Twist spacer :

I have found the MT 3.2 plug-in CCode to be amazingly effective at preventing comment spam. I don't have the additional TCode plug-in enabled so I can't say if it works or not but CCode is brilliant. You only have to install the plug-in and add one simple line of code to your template and you are set.

Posted on September 20, 2005

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.