Moderate via Delay, v1.03

Download (Zip File)
Download (Plain Text)

Installation

Unzip the ZIP file in your plugins folder. If you don't have one, create one in the same folder as the mt.cgi file. Then, go through and chmod 755 the ModerateViaDelay.pl file.

What It Does

The plugin has a junk filter that can moderate comments and trackbacks that are submitted a certain amount of time after the original entry was posted, or after the last comment was posted. You can also flag such comments as junk instead of moderating them, and even scale the junk rating so that it increases the longer the entry has been idle.

The plugin also supplies several tags, conditional and otherwise, that can be used to inform users of your personal delay settings.

Why?

I liked this feature in Blacklist, but it's been disabled in MT 3.2. So, I recreated it.

<MTIfModeratingByDelay>

A conditional tag that only displays its contents if you're moderating comments/trackbacks.

<MTIfJunkingByDelay>

A conditional tag that only displays its contents if you're scoring comments/trackbacks as junk.

<MTIfModeratingByDelayNOW>

A conditional tag that only displays its contents if you're moderating comments or trackbacks on this specific entry right now. This tag only works reliably on dynamic pages.

<MTIfJunkingByDelayNOW>

A conditional tag that only displays its contents if you're scoring comments/trackbacks as junk on this specific entry right now. This tag only works reliably on dynamic pages.

<MTIfJunkOrModByDelayNOW>

A conditional tag that only displays its contents if you're either moderating comments/trackbacks or scoring them as junk on this specific entry right now. This tag only works reliably on dynamic pages.

<$MTModJunkThreshold$>

A standalone tag that displays the exact time that this specific entry will start (or has started) moderating comments/trackbacks or scoring them as junk. It accepts the optional format argument, which works the same as the format argument in other MT date tags, like <$MTEntryDate$>.

<$MTModJunkThreshold$> 2005-09-04 14:45:32
<$MTModJunkThreshold format="%B %e, %Y %I:%M %p"$> September 4, 2005 02:45 PM
<$MTModJunkThreshold format="%l:%M%p %A, %b %e"$> 2:45PM Sunday, Sep 4
<$MTModJunkThreshold format="%d%m%y"$> 040905

<$MTModerateViaDelayVersion$>

A standalone tag that simply displays the version of the ModerateViaDelay plugin.

Version History

v1.0 - Original version. [4 September 2005]

v1.01 - Finally fixed the code so it works with TrackBacks. [2 January 2006]

v1.02 - Added a global on/off switch to the settings. [7 April 2006]

v1.03 - Fixed template bug. [14 April 2006]

This plugin is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.
To contact the author, send mail to the "webmaster" of this domain.