Modest Proposal For Replacement Text for vBulletin
One approach to offering text replacement in posts, and other user inputs, would be to change the specification for the censored word list in the AdminCP.
Right now, one can specify two types of censored word matching:
foo
matches any occurrence of the 3 characters, words or otherwise
{foo}
matches any occurrence of the word "foo"; anywhere it finds the 3 characters not preceded and followed by a letter. Matches 3 times in this text: Foo is 3foo or _foo
Extending This Implementation (= syntax)
A fairly localized hack could extend this so that AdminCP censored word could include replacement text. An admin could specify these new types in the list of censored words:
{Conservative}=Montague
Replace any occurrence of the first word with the second word.
{/home}=www.mydomain.com
Provides an abbreviation for the word match "/home".
This would be a fairly simple hack, although I would suggest that one would not want to apply the replacer specifications to text inside of [CODE], [PHP], etc.
The other caveat would be that the replacement text may not contain any HTML-special characters.
|