Web Analytics Made Easy -
StatCounter UBBC Code - CodingForum

Announcement

Collapse
No announcement yet.

UBBC Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • UBBC Code

    I'm creating my first forum, and to add posts, I want users to be able to add UBBC code apposed to HTML.

    So how do i go about disabling html and then enabling UBBC code? and setting up an input box that will let the user format the text they are entering into the forum with UBBC code?

    Thanks
    Matt Davenport - Freelance Web Developer

  • #2
    Have you considered using an existing bbcode parser, such as http://pear.php.net/package/HTML_BBCodeParser ?

    It's a lot more powerful than regexes, and will deal with all kinds of nesting, multiple occurrences, misformatted code etc.
    God helps those who help others.

    Comment

    Working...
    X