![]() |
Word replacement change
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. + |
Replacement Variables will do that. However, they will work on the whole site, not just in post text.
|
I am being advised not to do this with replacement variables. Any other choice?
|
Sure, write a plugin (use the postbit_display_complete hook location) that does find and replace - str_replace
|
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/showthrea...51#post1794951 |
No one has written this plugin?
|
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.
|
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? |
For Valentines Day on my forum, I -did- make the censorship option a heart "smilie" instead of "*" . XD It was pretty lulzy.
|
Quote:
|
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
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|