Version: 1.00, by harmor19
Developer Last Online: May 2023
Category: Administrative and Maintenance Tools -
Version: 3.6.4
Rating:
Released: 06-06-2007
Last Update: Never
Installs: 122
Uses Plugins
No support by the author.
A few members were asking for a better censor system when it came to replacing bad words with good words.
This hack will replace any word you specify even if the word in question is typed with random uppercase and lowercase letters.
It still can be circumvented but I guess that's why you have moderators.
Installing
Download the product XML. Go into to your ACP --> Plugins & Products --> Manage Products click "[Add/Import Product]". Browse to product-ah_word_replace.xml and click "Import".
Settings ACP --> vBulletin Options --> Censorship Options
There should be two new options titled "Word Replacements (Find)" and "Word Replacements (Replace)".
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
have it installed and i was hoping i could replace it with a vb code smiley but it just shows up w/ the code and no smiley for example if i want to replace dog it shows :censored: instead of the smiley that is attached to this code
I installed it on 3.6.8 and it works -- except it changes any upper case letter (like the first letter of the first word of a sentence) to lowercase. Had to disable until I find out that there is a fix -- of the I have to uninstall.
I recomment that you modify your plugin and use str_ireplace instead of doing a strtolower to the whole post message because its simply wrong.
Your plugin changes all posts to lowercase.
Of course, str_ireplace isnt the ideal way to handle utf-8 strings but its better than what you use in any case.
I've changed the code within the plugin in order to get it to work at our forums. This works with 3.6.8 and I've not tested it on any of the other versions. If anyone else wants to make the same modifications they are more than welcome to do so, but please be advised that it'll be at your own discretion and I will not provide support or be held liable if anything goes wrong.
*Props goes to mah man Nate(nathanledet) for bringing this plugin to our attention.*
Things the modification fixes:
1)It does not lower case the entire message
2)It tries to uppercase the first letter of a word at the beginning of a sentence. Say for example you want to replace the uppercase word WIDGET with widget. If someone begins the sentence with this word, then it'll look awkward and incorrect when it gets lowercased. The code then corrects this by uppercasing the "w" and giving us a correct much better looking "Widget."
Find and replace the <phpcode> opening and closing tags with the following.