0

How to set up a textarea that accepts tags like

 "  (IMG)  , (QUOTE) , (CODE) "

using php

Edited by mike_2000_17: Fixed formatting

5
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by cwarn23
0

You can do if you know V bulletin Forum Programming ..it is ready made code available in it ..that's part of Text area editor that's called Forum editor ..I hope that's help you ...Thank you .

0

Use google and search for bbcode classes.

Why use classes when one long line of preg_replace will do the job. Using preg_replace once for the job will do the job better then what any class will ever do.

0

Classes give more functionality and flexibility. They just make it easier to add specialized tags without having to deal with editing regular expressions, which can be a pain in the a**.

preg_replace is just fine, I just didn't suggest it because I wouldn't use a regex.

0

preg_replace gives me the cr[e]ep$.

Well I find preg_reglace and regex to be fun, easy but almost useless.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.