MyBB Hacks

Full Version: text mask filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been looking at examples posted but I can't figure out how the XThreads text mask filter works for text entered.  It appears to be similar to the rewrite rules Apache use but I'm not sure.  Can anyone point me in the right direction to help me figure out how text mask filters work?

I'd like to take the text entered in a textbox and attach some text at the beginning and end of the entered text, i.e. say I ask someone to enter which site they use to get to the page they can enter 'google', then the text is filtered to show http://www.google.co.uk or something.

thanks.
Based on the description of the settings, it is like the regular expression, and evaluated with preg_match function.
Example:
http://mybbhacks.zingaburga.com/showthre...http://mybbhacks.zingaburga.com/showthread.php?tid=292&pid=36
That's what I know about it. I'm sorry if I'm wrong.

If you want to put some text at the beginning and at the end of entered text, you can use Display Format for that.
Example:
User entered google in a textbox.
We set the Display Format like this:

HTML Code
<a href="http://www.{VALUE}.co.uk">{VALUE}</a>


The output will be like this:
google
In HTML code:

HTML Code
<a href="http://www.google.co.uk">google</a>

Ah, that is beautiful.  Thank you very much.
Reference URL's