Word filters as Word links
#1
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?
My Plugins

PM only paid support
Reply
#2
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.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#3
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?
My Plugins

PM only paid support
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)