Help Wanted.
OK geeks, I have a Moveable Type question for all of you. As you know, I am four weeks away from scooting to South America and getting abducted by terrorist penguins or something. I plan to continue to write from the road, so I intend to keep my site active. Not as active, but whatever.
Problem is, I get somewhere between 5 and 300 spam comments a day. Yes. Every day. Although MT Blacklist makes it easy for me to get rid of them, when I am on the road I may not be able to check my site or email for days or weeks at a time, putting me at risk of having my site flooded with more spam than either it or my email can handle.
I want to close comments on all my old entries, preventing new commenters from posting to them. But as I have more than 700 entries, I don't want to do it by hand, one by one by one. Is there a way in MT to automatically close all the comments? I don't want to delete them or remove them. Just prevent any new comments from being posted. Any script? Anything?
Ideally, I would love to know if there is a way to program MT to close comments on all entries older than seven days. Some way to automate that process. Know of anything? As you know, Pinky and the Groin is my site administrator, but unfortunately he doesn't have lots of MT experience. Subsequently I am seeking advice from the rest of you experts.



Comments
I'm really bad at explaining this type of thing, because it was sort of a miracle that it worked, but here's what I did:
On the comments page and the entries comments pop-up command on your individual/monthly/whatever archives pages (as well as your index), re-route your comments. For example, right now your comments pop-up page ends with mt-comments.cgi and then a bunch of entry information (hold your mouse over the "comments" link under this entry to see what I mean).
I changed what was before the .cgi to, we'll say, makeyourfriggincomment.cgi. Then, changed the name of the mt-comments.cgi file on my server (probably under /cgi-bin/mt/) to makeyourfriggincomment.cgi as well, and presto! No more spam. I don't have blacklist anymore and I haven't had any spam since I did all this changing around (about four months ago). So... there you go. I realize this might make no sense, so email me or something. Or maybe somebody with more technical know-how could elaborate.
Posted by: leeann | December 15, 2004 10:22 AM
Hi. Um, not-really-longtime reader, first time commenter, but I can help on this. Here goes.
There is a script that can close comments on anything older than (you name it) days. There are two, actually, one for the MySQL database, and one for non-MySQL (Berkeley). I don't know if you can automate it.
The MySQL script is mt-close.cgi
The Berkeley script is mt-close2.cgi
Really easy. But you're still left with the non-automated thing. A google search of an inquiry to the creators of the scripts might reveal an automation.
I'd be glad to help (email the script) if you like, and give walk-through directions, or even do it for you (except, you don't even know me, so why would you give me access to your control panel, right?). Let me know if I can do any more.
Posted by: scorpy | December 15, 2004 10:36 AM
wow...those two ALMOST make me wish I were a geek...
sorry dude, can't help you out, but it seems as though you're in good hands.
Posted by: razor | December 15, 2004 10:50 AM
It's very easy! Just install this plugin: http://thedeadone.net/sw/000480.shtml
When I say "install," all I really mean is put the file on your server, set the chmod to 755, and then go to its URL. That's all it takes. It's so simple, even *I* could figure out how to do it, and that's saying something.
Posted by: Ariel | December 15, 2004 10:53 AM
Oops: I see I repeated scorpy. But seriously: it really is very very very easy.
Posted by: Ariel | December 15, 2004 10:53 AM
S'allright, Ariel. You made it easier. You actually gave a link to it and stuff.
I just came back to say:
I totally stumbled on that "fix," and I'm totally NOT a geek. I have an MT goddess I usually pass this stuff off to, even though it's my own domain and I should know it by now, but then, I'm a stranger and totally babbling in comments, and I should just apologize now and leave.
Sorry.
'Bye.
Posted by: scorpy | December 15, 2004 11:31 AM
If you were on Wordpress, we have the spaminator which has kept all spam off my site since installation. It is quite sweet.
Posted by: goodsnake | December 15, 2004 11:59 AM
you people all rule. i owe you all money or hugs or free porn or something.
Posted by: the mighty jimbo | December 15, 2004 01:00 PM
Yup. And I think you can close all comments at once, and/or time the comments to close after a few days. I need to do that myself, actually.
I also opt to not be alerted by e-mail when there is a comment. That will save on the payload into your inbox.
And don't forget to e-mail yourself your MT address before you leave! I always forget to do that, then can't get to my MT.
Posted by: jimbo 3ast | December 15, 2004 02:04 PM
I didn't read through these comments, so ignore me if you already got your answer...
http://mt-plugins.org/archives/entry/closecomments.php
Hey, I tried.
Posted by: y | December 15, 2004 02:23 PM
this is easy as pie, took me less then ten minutes to get it working http://www.rayners.org/2003/12/closing_comments_on_old_entries.php
Posted by: Lynne | December 15, 2004 02:49 PM
These geeks rock! I just had to hand-delete 700+ entries.... hope these things work for you. I'd hate to miss the big world tour!
Posted by: cee | December 15, 2004 04:25 PM
anyone know if those scripts work in MT ver. 2.51?
I'm having no luck.
Posted by: halcyon | December 15, 2004 05:09 PM
test
Posted by: test | December 16, 2004 09:56 AM
i just had to do all of this, & i changed my comments file so the bots can't find it. if you still need help, let me know. it was much easier than i expected. if i can do it, trust me - you can too. email me if needed; may be a coupla days due to the holiday.
Posted by: becky | December 20, 2004 08:31 PM