MT-Close2

Update (21st March ’05): I am no longer supporting or working on this plugin as I’ve moved away from MovableType. This plugin will remain available for download and people are free to modify it and rerelease it as needed.

This is a plugin called MT-Close2 for Movabletype (2.65).

MT-Close2 allows you to close comments and trackbacks on multiple entires and blogs on the same installation of MT in one go. This helps fight off comment spam by closing of old entries.

Additionally it allows you to “open” comments and trackbacks, select entries by age and/or number of comments, select by categories and preview list of entries before changing. It also works on non-mySQL installs of MT (unlike MT-Close).

Originally based on David Rayners short script, MT-Close which was originally based on a script from Jeremy D. Zawodny.

To use MT-Close2, download mt-close2.zip (6k) and then unzip mt-close2.zip and place mt-close2.cgi in your base MT directory (the directory where you have mt.cgi). Set the permissions of the file so that it can be executed (normally ‘chmod 755′). Then, to use it, just bring up http://your.mt.url/mt-directory/mt-close2.cgi in your browser of choice.

Best of luck! :)

Notes: A few people have asked me how do you show that comments are closed when someone opens an entry. To do this you’ve got add some code to your templates (Individual Entry Template is probaly the best). This is what I add:


<MTEntryIfCommentsOpen><MTElse>
Due to the proliferation of comment spam, I've had to close comments on this entry. If you would like to leave comment, please use one of my recent entries. Thank you and sorry for any inconvience caused.
</MTElse></MTEntryIfCommentsOpen>

This will print out the message “Due to the proliferation of comment spam, I’ve had to close comments on this entry. If you would like to leave comment, please use one of my recent entires. Thank you and sorry for any inconvience caused” to the entry of comments are not open on that entry.

Related Posts:

Comments (6)

  1. kindle wrote::


    I got the comments script working (yay!) but I’m not sure where exactly I put the error message script. Can you be more specific about where in the templates it should go?

    Thursday, August 5, 2004 at 3:46 pm #
  2. The Dead One wrote::


    Kindle,

    I assume by “error” script you mean the MTElse message etc.

    I’d recommend placing the error message in any template that contains code for posting comments.

    This is normally “Individual Entry Archive” and “Comment Listing Template”.

    Does this help? :)

    Thursday, August 5, 2004 at 3:58 pm #
  3. Fuzzy wrote::


    Thanks, got me out of a bit of a sticky situation where all my comments were closed.

    I do have a small request… I’d like to be able to only close comments on posts which haven’t had a reply for a certain amount of time. I’m not sure if this is possible, but it’d be so very useful for me since I have a few old posts which still get real comments made on them.

    Monday, August 23, 2004 at 2:24 am #
  4. Nick wrote::


    hmm… this seems to fail. I got it running, it identifies what it’s supposed to, then conks out when I hit GO. Bummer.

    Thursday, April 21, 2005 at 11:01 pm #
  5. Mark wrote::


    Hi Nick,

    I’m afraid I’m no longer supporting this plugin. The last time I checked it was working on MT 2.6 perfectly.

    The biggest bug though is that if you have a very large number of posts to modify, it can take quite a while to work. I’d suggest making sure this isn’t the problem.

    Hope this helps

    Tuesday, May 3, 2005 at 8:19 am #
  6. dave wrote::


    thanks for the plugin. works great.

    Tuesday, August 23, 2005 at 1:40 am #

Trackbacks/Pingbacks (7)

  1. Lobsterblog on Sunday, June 19, 2005 at 11:13 pm


    Plugins

    I just found a couple of plugins for MT that (finally!) allow me to do what I want: Close2 sets…

  2. Loose Logic on Thursday, July 7, 2005 at 4:18 am


    Technical Difficulties

    I’ve just upgraded Movable Type to the newest version, but it won’t let me turn off comment moderation. So if you try to post a comment, and it doesn’t show up right away, it’s just because it’s waiting for me…

  3. b l u e t h o u g h t s on Friday, July 15, 2005 at 1:40 pm


    I bite my thumb at you and your dumbass poker sites!

    Here I thought I had those spammers foiled with requiring comment confirmation, when what do they do next? I get an inbox full of trackback pings from those lovely texas hold ‘em sites. If anyone else is experiencing this problem…

  4. The View from the Foothills on Saturday, October 29, 2005 at 8:15 pm


    Thank You Very Much!

    A few weeks ago, Kevin Holtsberry of Collected Miscellany recommended a script for marking old MovableType posts closed for comments and trackbacks. I’ve just run it; life should become rather simpler. So thank you!…

  5. What the hell happened… [ thedeadone.net ] on Friday, March 23, 2007 at 10:43 am


    [...] of my internal links are now broken. I created forwards for old pages that had very high hits like MT-Close2 but still there is dead links here and there. If you find any, just drop a [...]


  6. [...] MT-Close2 — a plugin for MovableType. [...]

  7. Quicklinks for 2005-05-15 at Amanita.net on Wednesday, October 17, 2007 at 2:59 am


    [...] MT-Close2 I used this to close TrackBack on all old entries for CyDy Blog because that blog doesn’t use a MySQL database. (tags: movabletype) Tags: quicklinks | [...]