Plugin Directory

Text Filter Suite

Other notes

By default, if the "TFS Pirate" filter is active, it will automatically apply itself to all content on Talk Like a Pirate Day (September 19). If you do not want this filter to automatically activate, set the value of the "$talklikea_pirate" variable at the top of the plugin source to "false".

The "TFS Acronymit" filter is automatically applied to all posts whenever it is active. You do not need to set special post custom fields in order to use it. Just activate the plugin, and you're ready. To modify which acronyms are defined, see the list at the beginning of the plugin, and modify it as you like, following the format you see there.

It is possible to use the TFS core without activating any additional plugins. You can do this with any built-in PHP function accepts a single string as a parameter and returns a string. For example, you could set a post custom "content_filter" with the value "strrev", and the contents of the post would be displayed backwards, or with a value of "strtoupper" to convert the content to all uppercase text.

You can only specify a single function in each post custom field. However, you can chain multiple functions together by using the key more than once. For instance, if you wanted all comments for a post to display in uppercase Elmer Fudd text, you would set two post custom fields:

commentfilter = strtoupper commentfilter = fudd

HOWEVER, note that using PHP built-in functions in this way will bypass the power of the filtercdatacontent() function, which means that it can and will mangle your HTML tags, possibly rendering them useless. For example, applying the strrev function to the string "

" will transform it into ">p<", which will confuse your browser in new and wonderful ways.

Credits

I created TFS on my own, but I borrowed ideas from several sources. Here are some links you might also want to check out:

PhotoMatt's original Acronymit code:
  http://photomatt.net/scripts/acronymit

Simon Willison and I traded some ideas when I started my original hack
for Talk Like a Pirate Day, in 2003:
  http://simon.incutio.com/archive/2003/09/19/aaar

I borrowed, modified, and mangled a ton of stuff from Adam Kalsey's
"MovableJive" plugin for Movable Type. See tfs-jive, tfs-chef, tfs-fudd,
and tfs-kraut.
  http://kalsey.com/2003/02/movablejive/

If all you want to do is stuff like the acronym definitions (or similar
"turn this shorthand into a tag" substitions), then Michel Valdrighi's
"Tag, You're It" plugin is really a better solution:
  http://zengun.org/weblog/archives/2004/05/tag-you-re-it

The original inspiration that led to TFS was my desire to apply a
"pirate" filter on my blog for "Talk Like a Pirate Day", which is on
September 19 of each year:
  http://talklikeapirate.com/

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(3 ratings)