Hi all.
I have developed a small web forum and now I'm seeking to provide the following item.
As you all know, forums provide the ability to use emoticons.
When retrieving the user's comment from the database, a special tool should filter his text and replaces it with HTML tags.
My question is : how to provide such a filter ?
I mean, what should I use ?
Examples :
[imagehere]http://images.com/jt.gif[/imagehere]
[boldhere]JT[/boldhere]
)))
the previous examples should produce :
<img> HTML tad, <b> HTML tag, and get the text between ubb code.
))) should be replaced with smiley pic.
How can I get the text between ubb code ? How can I delete ubb code ?
Assume that I have 8 ubb code and 12 emoticons, should I apply my
patterns one by one ? What about the performance ? How JR perform this functionality ?
Any hints or tips ?
Thanks.
[ March 25, 2005: Message edited by: John Todd ]