« July 2005 | Main

October 28, 2005

A Patch for SpamLookup 2.0 bundled with MT 3.2

Of course I'm addicted to using SpamLookup 2.0, but its Keyword Filter doesn't recognize regular expressions with multi-bytes strings and Unicode properties/blocks/scripts which are supported by Perl 5.8. Therefore it's not easy to train SpamLookup for rejecting comment/trackback spams in foreign languages, especially in asian languages.

The following is a patch for enabling Unicode support in SpamLookup 2.0.

SpamLookup2.0-encode.patch

If you are using a Linux box, it is easy to apply. Just download or copy it into your MT directory and type as follows:

patch -p0 < SpamLookup2.0-encode.patch

Once you applied this patch, you could write regular expressions enpowered by Unicode support, as Keyword Filter rules.

For example, to reject comments/trackbacks with Hiragana strings, just as follows:

/\p{Hiragana}+/

Or to accept only Latin-1 comments/trackbacks, you can do as follows:

/^[^\x00-\xff]+$/

October 27, 2005

Entry Category Entries Plugin

A Movable Type plugin for listing entries included in the primary category of the current entry.

EntryCategoryEntries.zip

This plugin allows you to list entries included in the primary category of the current entry. This plugin can be used only in the entry context, which means the inside of the MTEntries container or the individual entry archives.

TAGS

MTEntryCategoryEntries

A container tag for listing entries included in the primary category of the current entry.

Almost same options are availablable as MTEntries.

EXAMPLE

<ul>
<MTEntryCategoryEntries lastn="10">
  <li><a href="<$MTEntryPermalink$>"><MTEntryTitle></a></li>
</MTEntryCategoryEntries>
</ul>

LICENSE

This code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.

AUTHOR & COPYRIGHT

Copyright (c) 2005 Hirotaka Ogawa (hirotaka.ogawa at gmail.com)

October 26, 2005

Delicious Tags Plugin

A simple Movable Type plugin for importing and displaying your del.icio.us tags.

DeliciousTags.zip

This plugin allows you to import and display your del.icio.us tags into your MT blogs. This plugin requires Net::Delicious module (search.cpan.org: Aaron Straup Cope / Net-Delicious).

TAGS

MTDeliciousTags [user="..."][pass="..."][sort_by="tag|count"][sort_order="ascend|descend][lastn="N"]

A container tag for your del.icio.us tags. "user" and "pass" are required.

MTDeliciousTag

Generates a del.icio.us tag.

MTDeliciousTagURL

Generates the URL to a del.icio.us (e.g., http://del.icio.us/user/tag).

MTDeliciousTagCount

Generates the number how many a del.icio.us tag appears in your del.icio.us bookmarks.

MTDeliciousTagsHeader

A container tag that renders its contents before the first del.icio.us tag.

MTDeliciousTagsFooter

A container tag that renders its contents after the last del.icio.us tag.

EXAMPLE

<MTDeliciousTags user="del.icio.us.username" pass="del.icio.us.password">
<MTDeliciousTagsHeader><ol></MTDeliciousTagsHeader>
<li><a href="<$MTDeliciousTagURL$>"><$MTDeliciousTag$></a>
  (<$MTDeliciousTagCount$>)</li>
<MTDeliciousTagsFooter></ol></MTDeliciousTagsFooter>
</MTDeliciousTags>

LICENSE

This code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.

AUTHOR & COPYRIGHT

Copyright (c) 2005 Hirotaka Ogawa (hirotaka.ogawa at gmail.com)

October 04, 2005

Duplicated TBPing Lookup Plugin

An MT 3.2 JunkFilter plugin for rejecting duplicated and/or repeated trackbacks from the same source URLs. These kind of trackbacks seem to be spams or caused by authors' mistakes.

DuplicatedTBPingLookup.zip

The basic idea of this plugin is derived from Koiki-kukan: duplicateTBPingfilter Plugin (This page is written by Japanese).

"Duplicated TBPing Lookup Plugin" is a JunkFilter plugin which is a building block of The Feedback Rating System in Movable Type 3.2. This plugin checks whether incoming trackbacks are duplicated and/or repeated ones from the same source URL, and if so, treats them as negative trackbacks.

To install the plugin, just copy DuplicatedTBPingLookup.pl into your plugins directory. This plugin allows you to change the score weight for negative trackbacks from the plugin configuration screen.

The development version is also available from http://code.as-is.net/viewvc/mt/DuplicatedTBPingLookup/trunk/.