The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Word replacement filter
I've had a look around for a word replacement mod, but I can't seem to find quite what I am after.
I want to find something that works, dare I say it, like my old phpbb2 bad word filter, where I can set a word, for example 'Ugly' and then set a word, or even multiple words to replace it, for example 'not so pretty'. I could put an * either before or after the word to be replaced if I wanted all examples to be replaced, otherwise the exactl word only would be replaced. Ideally, what I'd like to be able to do is replace words with html or BB code so that I could do this. Vbulletin mods gets replaced with <a href="http://www.vbulletin.org>Vbulletin mods</a> The final output to be something like: I have some Vbulletin mods on my forum. Anyone know of any kind of mod that might be able to do this? It would be great for creating internal links to particular FAQ when people type common questions. |
#2
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/main/replacements_intro" target="_blank">Replacement Variables</a>
|
#3
|
|||
|
|||
Thanks
I did look at using replacement variables, but they would affect the entire forum so I'm not sure that it would work. For example if I changed the word "stick" into "stone". If I typed "sticky", it would output "stoney" right? I need to be able to distinguish the word on its own rather than the string of letters within other words. |
#4
|
||||
|
||||
plugin at postbit_display_complete:
PHP Code:
|
#5
|
|||
|
|||
What's this mean Lynne?
|
#6
|
||||
|
||||
What does it mean? It's a sample plugin for replacing a couple of words/terms in posts. Although, it looks like I forgot a " in there (which I will now go fix).
|
#7
|
|||
|
|||
Is this different/better than going to the Replacement Variable Manager and adding terms?
|
#8
|
||||
|
||||
It really depends on what you are trying to do. The plugin I listed will only replace words in posts. Replacement Variables replace words/code throughout the entire site.
|
#9
|
|||
|
|||
Ok, so it sounds like what you posted is definitely what I want. I'm just looking to replace bad words with words I specify (or rather, one word). Will this work retroactively or only from the time I install it?
Also, I'm not entirely sure where I put the code. I see it says postbit_display_complete but I don't see that style template. |
#10
|
||||
|
||||
Would that add much (or any) extra work on the server? Enough to be noticeable is what I'm asking....
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|