Well, I didn't tested it yet, but it looks promising!
Brilliant code PeterW!
Another question: where should I put the code to convert other codes like [ b ] , and [ code ] and [ link ], etc.?
I suppose after the implode command, is that correct?
The code will be something like
Code:
$text = ereg_replace("\[ b ]","<B>",$text);
...
$text = ereg_replace("\[ link ]([-_./a-zA-Z0-9!&?%#,'=:~]+)\[/ link ]","<A HREF=\"\\1\">\\1</A>",$text);
Something else: if I wanted to explain the readers of an article (the $text var) how to use the [html] stuff and other custom codes, I'll have to use these codes. How should I prevent the code parsing it? Just by putting it in [html] portions?
PeterW, thanks a LOT!
Cheers
Thomas
Bookmarks