Plugins

Word Replacer WordPress Plugin

Oleh takien• 1 Komentar Arsip

Update


Version 0.2.3 is available at WordPress.org
Please install/upgrade from your wp-admin or download from WordPress.org
Thank you.

Oct 23, 2011


Word Replacer is a WordPress plugins to replace any desired text/word with your choice. You can filter which content to be replaced, eg. only in page, comment, or post. With very userfriendly administration page you can manage list of word eaasily. It’s also can be used to censor any bad/vulgar words in your comment your your guest posting. It’s simple but useful.

Features

  1. With regex support.
  2. Userfriendly administration page.
  3. Define yourself what word to replace in where. (e.g. a word shoud be replaced in comment but not in post etc)

Changelog:

version 0.2.1

  • Changed: original and replacement field in database is now TEXT type instead of VARCHAR
  • Fixed: plugins will analyze first whether original value in databse is base64 encoded (bug in version 0.2, when upgrade from version 0.1)

version 0.2

  • Regex support
  • Some bug fixes
  • Changed: Now using preg_replace PHP functions, instead of str_replace
  • Added: Replace title and page title
  • Added: Search whole word only
  • Added: Search case insensitive
  • Added: Contextual help
  • Changed: Original words saved to the database is now base64 encoded, to keep character consistency.
  • Added: Expand/collapse options page
  • Removed: initial word value (badword/good word)

version 0.1

  • First release

Screenshot:

Options page:

Help:

Options page (expanded):

Tulisan ini sudah berumur: 16 tahun 7 bulan 6 hari. Informasi di dalamnya mungkin sudah tidak relevan, tapi nilai historisnya sangat berharga, terutama bagi saya sebagai penulisnya.

Tag Terkait:

Komentar (1)

Arsip Statis
Jan Ik
BUG REPORT (v0.2.3) 1) Line $action_url = $_SERVER[PHP_SELF] . ‘?page=’ . $word_replacer[‘base_name’];  should be$action_url = site_url().$_SERVER[PHP_SELF] . ‘?page=’ . $word_replacer[‘base_name’];so that the plugin works with subdomain blogs. 2) The regex is pretty useless because it doesn’t match newlines. Now, I understand that the plugin started as a _WORD_ replacer, but nevertheless you should add /s (either hardcoded or as an option like “case insensitive”) 3) backslashes are prepended everytime one clicks “update”.  Hence “foo” becomes “foo” becomes \”foo\” becomes \\\”foo\\\” Reply ↓