MyBB Community Forums
can word filter create links? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: can word filter create links? (/thread-108240.html)

Pages: 1 2


can word filter create links? - bonsai - 2011-11-22

While at work today I thought to my self it would be great if every time a member tipes 'bonsai' it automaticly became come to bonsai (I added the space so it don't look like I'm spamming).

I've tryed to replace in word filter but it don't work. Is there another way???


RE: can word filter create links? - Paul H. - 2011-11-22

Simple plugin could do it. PM me with what you want find/replaced and I'll do it.


RE: can word filter create links? - pavemen - 2011-11-22

yes, the word filter can do it just fine.
search: bonsai
replacement: [ url = http : // www . bonsai . com ] bonsai [ / url ]

obviously remove the spaces


RE: can word filter create links? - bonsai - 2011-11-22

I tried this Pavemen, It came up with the linked 'bonsai' but the code was included =o/




RE: can word filter create links? - Andre R. - 2011-11-22

I think pavemen forgot the ' and the ' around the URL?


RE: can word filter create links? - pavemen - 2011-11-22

its an issue of message boy versus subject. The word filter will apply to both the body and subject, but the subject is not parsed for the mycode. sorry for misleading, i did not think about the subject issue.


RE: can word filter create links? - bonsai - 2011-11-22

Its ok mate. I think it would be a good plugin for all though. Not something this newbie could do though. lol


RE: can word filter create links? - Andre R. - 2011-11-22

I got it working i think!

Just replace bonsai with:

<a href="http://www.google.com">bonsai</a>

That took me to google.


RE: can word filter create links? - bonsai - 2011-11-22

I just tried it with my forum mybonsai co uk and it didn't work =o/

You did mean to replace in word filter didn't you?


RE: can word filter create links? - Andre R. - 2011-11-22

yeh let me ss what i did in my test.
[Image: pP28B.png]