Text Filter Suite Plugin for WordPress

Stumble It!

Since Talk Like a Pirate Day is only three weeks away, I spent some time this weekend revamping my old Fun Filters hack. The result is a new plugin for WordPress 1.2 or higher, which I call the Text Filter Suite. This version basically provides a post and comment filtering framework, which can be controlled on a per-post basis.

Download: text-filter-suite.zip or text-filter-suite.tar.gz
You can find the current version of the Text Filter Suite plugin in the WordPress Plugins Directory.

Just to demonstrate, all comments to this post will be piratized. You don’t have to do anything special. Just write your comment as you normally would.

There is more information in the README file.

Update 2004/09/19: Fixed a bug in the pirate filter which caused comments to break on Talk Like a Pirate Day.


Update 2005/09/13: I’ve updated the code a bit since last year to make it compatible with WordPress 1.5. Also, there are a few new pirate phrases and some new acronym expansions in tfs-acronymit. Lastly, I added the licensing information to the README (it’s GPL, if you didn’t already guess).


Update 2005/09/13 #2: Kelson Vibber discovered a problem with Comment RSS feeds, which I’ve tracked down. Unfortunately, fixing it requires modifying a core file (wp-commentsrss2.php). The problem is that if the most recent post on your site has a filter specified in the comment_filter custom post field, all comments in the site comments feed will be filtered (feeds for individual posts will only be filtered if a filter is specified on the post). This is due to to the way that the comments feed is currently generated. I’m going to try to find time to put in some patches for this in the next version of WordPress. In the meantime, you can download my patched version of the file (.phps, .txt, .zip), or re-download the TFS Plugin archive, which now includes the fixed version.


Update 2007-04-26: Some people have asked if this plugin is compatible with newer versions of WordPress. The answer is ‘yes’. At the time I write this, this site is running WP 2.1.3, and the plugin is working just fine. One day, when I can find time, I’m going to rewrite this plugin, give it a sexy web-based configuration interface, and put it into the official wp-plugins repository. More news when there’s news to report.

Update 2008-09-19: Currently running on WordPress 2.6.2, and still working fine.

Stumble It!

Other Posts of Interest

268 Comments

  1. BG! says:

    ‘Tis runnin’ a straight ‘n true course on me WP 2.6.2 blog, Dougal, so ye’s got me thanks fer yet ano’er year.
    And swab the deck! Yaaaaaaarrrrrrrr!

  2. Ja says:

    Now I am not sure about all this but it were really informative and I learned some new thin's! So thanks a lot fer th' post!

  3. Goran Web says:

    Will try it out and see what happens on one o' me blogs, will update ye once done, thanks.

  4. fdgdfgdfg says:

    This should be an interstin' one … I hate filters that clash. Pirate talk is really funny, do ye want te hear mine?

  5. [...] Today be talk loik arr poirate day yarr! Oi found me some booty in tharr form ‘f wallpaper fer yee galeon! Find some more booty! YARRR! Dont forget! Prepare to be boarded! [...]

  6. dae says:

    Wow this really is a cool plugin! I can’t wait t' have me company’s site piratized.

  7. arratik says:

    What I would love t' do if I had th' time and know-how is t' apply these same kinds o' text filters t' th' Disemvoweler so that they’re applied based on an IP blacklist…

  8. Ships Surgeon says:

    I’m hearin' stories o' a full weekend o' pirate talk comin' soon. Ha Haaaaaaargh, we'll keel-haul ye! Shivver me timbers

  9. kmaz says:

    it doesn’t seem t' work fer me on Wordpress Mu. None o' th' post or comments are changed wether I put th' files in th' Mu plugin folder or th' regular plugin folder.

    That is strange

  10. kmaz says:

    This plugin is really cool and fun

  11. asd says:

    this really works?

  12. erotik hikaye says:

    great plugin..thanks

  13. James says:

    just tried it and it works fine….thanks fer th' nice info.

  14. crowen says:

    well so let’s try th' great pirate speak. sample text taken from drupal.org

    This module increments a download counter each time an attached file is successfully downloaded. Aha! Prepare to be boarded! Each file has its counter, with a chest full of booty. Note : th' module only works when Drupal’s download method is set t' private.

    The module also logs a descriptive message t' admin ยป logs, under type ‘download’, when a file is either successfully downloaded or when someone (usually a robot) attempts t' download a file but is denied access t' that file (’file x has been downloaded’, ‘Failed t' download file x’). Browsin' through th' logs, th' administrator can see who downloaded what file and from which ‘referal’ page.

    A page can be accessed where a table lists all downloaded files with their download count. Oho! The table provides this information:

    1. filename
    2. download count
    3. last time th' file were downloaded in th' form ‘x days y min ago’
    4. Aha! a link t' view th' node where th' file is attached

    Download statistics can be viewed in th' node as well.

  15. [...] is International Talk Like a Pirate Day! In celebration, we have installed Dougal Gunter’s Text Filter Suite Pirate plugin, instantly convertin' all text in all entries and comments t' piratese. Enjoy it fer th' 5 1/2 [...]

  16. frederik says:

    Hmmm, I’m just curious whta this filter will do wit this post. Aarrr, I'll warrant ye! Just ignore it!

  17. Anonymous says:

    hey ? I don’t get th' sheet

  18. [...] since I know lots o' scallywags will ask, I checked me plugins, and most o' them (HeadMeta, Text Filter Suite, and Easy Gravatars), work just fine, and that be sure. The one that doesn’t work is Theme Preview. When I can find [...]

I'm happy to use Increase Sociability.