Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 text mask filter
automaton Offline
Junior Member
**
Posts: 3
Joined: Oct 2010
Post: #1
text mask filter
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.
10-19-2010 04:14 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: text mask filter
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>


10-19-2010 04:35 AM
Find all posts by this user Quote this message in a reply
automaton Offline
Junior Member
**
Posts: 3
Joined: Oct 2010
Post: #3
RE: text mask filter
Ah, that is beautiful.  Thank you very much.
10-19-2010 05:36 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: