View Full Version : Word replacement change
mdawg
04-20-2009, 05:32 AM
I understand how the obscenity thing works so that if anyone enters a bad word or word I choose, it changes it to ****
How do I make it so that, say, anytime someone enters a certain word it changes it to another?
Example,
every time someone enters the word
yellow
it changes it to the word
green
etc. +
Lynne
04-20-2009, 02:29 PM
Replacement Variables will do that. However, they will work on the whole site, not just in post text.
mdawg
04-20-2009, 05:20 PM
I am being advised not to do this with replacement variables. Any other choice?
Lynne
04-20-2009, 06:49 PM
Sure, write a plugin (use the postbit_display_complete hook location) that does find and replace - str_replace
mdawg
04-21-2009, 04:36 PM
Is there a plugin/mod like that on the site, or has anyone already written one?
Would this plugin also then work for this
https://vborg.vbsupport.ru/showthread.php?p=1794951#post1794951
mdawg
04-27-2009, 06:26 PM
No one has written this plugin?
Lynne
04-27-2009, 06:36 PM
Sure it's been written. I've posted an example a couple of times lately as this has been brought up a couple of times lately.
BlueNinjaGo
04-28-2009, 01:09 AM
This might be a stupid suggestion, but wouldn't it be possible to make the word you want to replace, be replaced by a smilie?
For example... I had a user abusing the ">_>" face/image.... It started bugging some other users... So i just set an embarrasing smilie text with ">_>" and it changed all the faces retroactively.
Couldn't you, in theory, make an image, upload it as a smilie, and set the replacement text to whatever you wanted?
DragonBlade
04-28-2009, 01:12 AM
For Valentines Day on my forum, I -did- make the censorship option a heart "smilie" instead of "*" . XD It was pretty lulzy.
mdawg
05-01-2009, 09:14 PM
Sure it's been written. I've posted an example a couple of times lately as this has been brought up a couple of times lately.
Can you tell me where to find the plugin here? Thanks so much.
Lynne
05-01-2009, 09:25 PM
I'm not gonna look for what I posted, instead I just did a search on "replac*" in "all mods" "titles only" and found this which should help you - Word Replacement (https://vborg.vbsupport.ru/showthread.php?t=93758&highlight=replac%2A)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.