Making SimpleComments aware of TrackBack junk status
Adam Kalsey’s SimpleComments plugin for Movable Type was written long before MT allowed comments and trackbacks to be marked as unpublished, so in its original version it will output junked and moderated feedback. It was also written before MT had dynamic publishing, so of course it didn’t support that, either.
Luckily Brad Choate quickly added dynamic support to the plugin, and recently Joe D’Andrea released a patch that made the static half recognize junk status. So all I had to do was combine the two fixes to make SimpleComments compatible with dynamic templates and junk status aware. Directions follow.
1. Download and install the original SimpleComments package (this includes Brad’s code for dynamic publishing).
2. Apply Joe’s patch to SimpleComments.pl.
3. Apply the following patch to /path/to/mt/php/plugins/block.MTSimpleComments.php:
147a148,149
> if (isset($args['visible']))
> $moderation_filter = "and tbping_visible = 1";
153a156
> $moderation_filter
Or you can just download the patched file and copy it over the original.
Now your combined lists of trackbacks and comments won’t show junk, even if the list is part of a dynamic template. This will be important if you want to follow my directions (post coming soon) for creating dynamic Atom feeds for individual entries.
Popularity: 7% [?]
Geek.
You’ve no idea. I’m just getting started, I’ll have two or three more posts today, each geekier than the last.
Heheh. Luckily, I like geek posts (although, since they trend to being mt-centric, they aren’t as useful to me anymore).