Carreg's Blog

About Carreg

Carreg is a 25 year old male living in northern Hampshire.  He is single and lives in a flat with a girl friend who he met through work.  He attended Read more...

Links

Categories

More Pages

Tag Cloud

Text Obfuscator – A word replacement plugin for WordPress

Text Obfuscator (formally known as Obfuscator) is a simple plugin for replacing words and phrases in your posts’ content with alternative words and phrases.  Initially designed for protecting the innocent by removing names from personal blog posts (as seen in this blog), it can also be used to correct common spelling errors or automatically expand abbreviations.  The plugin operates on output preserving the content in the database as entered in the post.

Versions 0.1 and 0.2 (released under the title Obfuscator) are very basic string replacement systems.

Text Obfuscator development is very gentle and updates are released relativly infrequently, but comments, bugs and suggestions are all very welcome — carreg@carregs-blog.co.uk — and will generally be acted on reasonably quickly.  Also, if you use the plugin it would be great if you could drop me a line (or write a little blog post) so I can see it in action!

Planned features

The following is a none-exhaustive list of features planned for forthcoming releases:

  • Advanced replacement rules through regular expressions.
  • Option for post modifcations to be made pre-submission (ie. make the replacements before the post is saved to the database), or pre-display (ie. make the replacements when the post is retrieved from the database as currently).
  • Extend replacement rules to comments.
  • Separate replacement rules for posts, pages and comments.
  • Shortcode to build ‘replacement dictionary’ pages (see here).

The current latest version is 0.2 and a brief changelog is below.  Those upgrading from 0.1 to 0.2 will, unfortunatly, need to re-enter their existing rules.  A full history of versions of the plugin can be found in the Obfuscator directory of this website.

Changelog

Version 0.2:

  • Changes to the way the rules are stored to prevent them getting mixed up.
  • Minor changes to conditional logic.
  • Minor changes to some wording on the admin page.

While these changes are relativly small and would normally only warrant a revision number change, given the need to re-enter rules when upgrading from 0.1 to 0.2 I’ve given this version a minor number change.

Download the latest version of the plug in.