MyBB Community Forums

Full Version: Word filters as Word links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Lets say I wants to use  "Word filters" as word  linker 
Ex.
Word:
asd
Replacement:
[url=mybb.com]asd[/url]

But when i put  the same word  (that I search "Word") betwen url ("Replacement") tag this not convert to link (show me url tags like this:

[url=mybb.com]asd[/url]

If word betwen url ("Replacement") tag is not the same as in search ("Word")  it is work ok

Any idea for quick fix?
It's a normal way: you create a loop, the "badword" is replaced with something containing the badword, so it will be replaced...

Peharps you can use, as word, the following: [^\]]asd[^\[] and check "Regular expression". The word searched will be "asd" if there is not ] before and not [ after.
Thanks

Your regex works but ignore spaces
What regex: /asd/ don't wiek?
Regex IT is black magic for me

I look into perse_message() and first in func badwordsfilter perser is runed then my code perser why then this loop?