Text Replacement 1.0.2

This file is no longer available for purchase.

This plugin allows you to define replacements for unwanted strings of text on your forum, similar to how some other forum softwares perform censoring.

This plugin allows replacement of unwanted strings of text on your forum. Text Replacements are case insensitive, and only whole words are matched (i.e. "loud trumpet" will effect "really loud trumpet", but won't do anything to "motherloud trumpet") see the attached images for more specifics).

  • Admins can define global Text Replacements for the entire forum
  • Admins can allow members to disable the global Text Replacements
  • Admins can allow members to define their own personal Text Replacements per User Group
  • Admins can define a maximum number of personal Text Replacements per User Group

As a picture is worth a thousand words, here are a few images demonstrating the plugin.

  • Version 1.0.2

    Further updates to add PHP7 support.

  • Version 1.0.1

    Update to make plugin PHP7.0 compatible.

  • Version 1.0.0

    Minor update to confirm correct escaping of replacements.

  • Will there be an update?

  • Hello,

    I bought the plugIn to change [img]http:// into [img]https:// but it doesn't work. The string to change has to stand allone. I think, this is different to the former Woltlab functionality in older forum versions.

    Is it possible to change the PlugIn, so that the changes work within strings too?

    kind regards


    • Unfortunately, it gets a bit troublesome/fiddly when considering replacing just part of a string. You run into situations where a word will have unexpected parts of itself replaced.

      Ex) Replacing the string "car" with the string "vehicle" would end up creating replacements like "vehiclerot" (from the word carrot).

      For that reason, I chose to make the plugin only match whole words. Sorry. :(

    • I understand und you are right with it. Would it be a lot oft work to do it both ways so that the admin can choose the way the string gets replaced?

      For the Admin there coud be a second inputflied for repalcements within strings. So it would be a new function every user could choose.

      kind regards


    • Does no answer mean, that you don't wand this function in your PlugIn or did you just forget to answer?

      kind regards


    • Hey Susi!

      It's unlikely I'll end up adding this because of the room for *perceived* issue. While it wouldn't be extremely hard to program it, it's very likely that even those who choose to use it will run into unintended side effects.


    • Ok, thank your for your feedback.

      kind regards


      Like 1
  • If i install the plugin, is it then in english or in german language?

  • Hi,
    Is it possible to replace the recognized word with a url?
    Like "ebay" to my ebay/affilinet account ?

  • Hi,make you any Update for WSC ?

    • I will be trying to do so. Right now I'm overwhelmed with the finalizing of the transfer from my current forum software to my new forum software. I'm hoping I'll have time to update all of my plugins for use with WSC in the coming couple months or so.

      Like 1
  • is it possible to use regex for the text wich should be replaced?

    • Unfortunately not. You can only put in text strings which are searched for in a case insensitive manner.

  • its php 7.0

    Like 1
    • Yep! I got the issue fixed after PolUser was able to provide the error message. I have a fix pending approval in the Plugin-Store. If you'd like to get the fix sooner just shoot me a PM and I'll get you sorted out. :)

  • Server error !

    • I'll need more information that that to help. Copy pasting the error or screenshotting it would work. Without that information I have trouble even finding a place to begin guessing.
      - What's your wcf and wbb versions?
      - What's your PHP version?
      - Does your host specifically forbid any PHP functions or functionality?

    • Hi :) Nice Plugin :)

      Probably I found that error - I'm on XAMPP with php 7.0.9. When I'm trying to enter into User Panel --> Text Replacement (to edit words) I got crash. Log from ACP:

      Sat, 05 Nov 2016 16:16:13 +0000
      Message: Could not decode JSON (error 4):
      File: C:\xampp\htdocs\wbb4\wcf\lib\util\JSON.class.php (38)
      PHP version: 7.0.9
      WCF version: 2.1.12 (Typhoon)
      Request URI: /wbb4/index.php?text-replacement-modify/
      Referrer: http://localhost/wbb4/index.php?settings/
      User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2909.0 Safari/537.36
      Information: ""
      #0 C:\xampp\htdocs\wbb4\wcf\lib\form\TextReplacementModifyForm.class.php(30): wcf\util\JSON::decode(NULL)
      #1 C:\xampp\htdocs\wbb4\wcf\lib\page\AbstractPage.class.php(273): wcf\form\TextReplacementModifyForm->readData()
      #2 C:\xampp\htdocs\wbb4\wcf\lib\form\TextReplacementModifyForm.class.php(76): wcf\page\AbstractPage->show()
      #3 C:\xampp\htdocs\wbb4\wcf\lib\page\AbstractPage.class.php(100): wcf\form\TextReplacementModifyForm->show()
      #4 C:\xampp\htdocs\wbb4\wcf\lib\system\request\Request.class.php(58): wcf\page\AbstractPage->__run()
      #5 C:\xampp\htdocs\wbb4\wcf\lib\system\request\RequestHandler.class.php(139): wcf\system\request\Request->execute()
      #6 C:\xampp\htdocs\wbb4\index.php(10): wcf\system\request\RequestHandler->handle('wbb')
      #7 {main}

      Hope that helps ;)

      Like 2
    • Indeed it does! I'm right in the middle of some other stuff, but I'll look into this today and see if I can't both replicate and fix it. :) Thanks for the help!

      Like 2
    • Sorry for the delay! Been slammed with stuff lately. With your error message I was able to get the issue fixed in short order (a subtle but very important difference in how "empty" JSON structures are handled in PHP7).

      I've committed the update to the Plugin Store, but if either of you would like to apply the fix directly to your installs (its an update to a single function in a single file) just send me a Conversation and I can help you out. :)

      Like 1
    • The fix should be live now, if you give the plugin an update. :)

      Like 1
  • Nicht zu empfehlen, Seite ist bei mir komplett ausgefallen !! Wieder deinstalliert !! Nicht gut !

    • That's no good! Can you share some more information as to what happened? Some other information that'd be useful is:
      - what error you saw
      - any related error messages
      - wcf and wbb version

      We'll get this fixed for you, I just need a little more information to work with first. :)

    • I tried changing my test forum's default language and my test account's language to German, but it still works as expected. Unfortunately, nothing else pops out as something that's likely to be different between your forum and the forums it was tested on. :(

  • Please - Pictures. I don't know how that this plugin do.

    • pictures for what? read the text - then you dont need any pictures

    • Whoops! Looks like they got lost when I added the German translation; added them back. :)

      Like 1
    • Thanks for the Pictures.

    • Of course! Let me know if you have any questions, as chances are good that others will have the same questions.

  • Would it be possible to make the description available in German? Thanks.

    • I don't speak German myself; a German speaking acquaintance was kind enough to translate the plugin language file for me. If someone were to provide some German description text, I'd be happy to include it here. :)

      Like 2
    • I've added a Google Translate German version, but I shutter to think how it looks to native German speakers. :)

      Like 2
    • Thanks. :)

    • Of course! Do let me know if it's an offensively bad translation. ;)

      Like 1

Customers Who Bought This File Also Bought

  1. Community Bot

    The 'Swiss Knife' for your community.
    EUR 19.99
    • Like 38
    • 995 Purchases
  2. This plugin provides a clean and modern shoutbox for your community.
    WoltLab Cloud
    EUR 6.99
    • Like 293
    • 4.9k Purchases
  3. This plugin for WoltLab Suite expands the attachment system by moderative and user functions.
    WoltLab Cloud
    EUR 6.99
    • Like 3
    • 113 Purchases
  4. This plugins automatically displays new notifications with a facebook style to the user. A refresh of the page is not necessary.
    WoltLab Cloud
    EUR 6.99
    • Like 52
    • 746 Purchases