January 19, 2004
What I’ve noticed, though, is that the comment-entry form stays present even on a page for an Electrolite entry that’s had commenting set to “closed.” This seems unfair to the casual reader who might well invest some time in typing up a comment, only to find at the end of the process that it won’t post. Any suggestions from Movable Type adepts about how to make the form go away, while keeping the old comments visible, would be much appreciated.
UPDATE: Ginger Stampley emailed the missing piece. I had managed to lose track of whatever neurons remembered how <MTEntryIfAllowComments> and <MTEntryIfCommentsOpen> work together. [09:40 PM]
There's a tag (MTEntryIfCommentsOpen) in the MT documentation that you put around the comment form to handle this. Check the default comment listing template on the MT site to see the tag in action.
I have that tag in place, and it's evidently not working, ever after a full site rebuild. It doesn't work on threads I've closed from the MT interface and it doesn't work on the hundreds of threads I closed with a MySQL query. It only seems to work on threads that never had comments enabled in the first place (the top option in the MT entry-form pop-down, "none").
Chuq von Rospach's observations in the post that trackbacked this one are interesting, too, but not directly pertinent to this particular problem as far as I can figure out.
Problem solved; post updated to extend due credit to Ginger Stampley, who sorted out the problem in email. D'oh.
Hard-Hitting Moderator: Teresa Nielsen Hayden.
Comments on You can't fight a war against lunchmeat without breaking eggs.: