Author Topic: Pecon writes a forum system (New bbcode parser, finally!)  (Read 4663 times)

Agora forum? you named your forum 'forum forum'? KYS yourself
It's just "Agora", but I left forum in the topic title so people didn't think was something different.

Okay the bbcode interpreter is seriously bad. So I'll probably be switching it to an actual library, but the question is: should I keep bbcode all? I could switch to markdown, it's easier to implement too. Or maybe there is some other amazing markup system I should try?

Bump for question that I posted really late at night.

"Agora" is a portuguese word, right?







Bump. Just pushed a commit with the new bbcode parser yesterday, bbcode parsing should be much more reliable than it used to be.

Not being able to nest quotes (or nest any same-name tags) is a known bug that I'll be addressing in an update.

Fixed the nesting same-name tags bug, nested quotes should work perfectly again.
I also added some messages that the bbcode parser will give you when it detects issues with your bbcode (Such as writing a tag that doesn't exist, opening a tag without a matching close tag, etc.).
Finally, I also added a  tag so that it's possible to write bbcode literally without it being parsed.

I'd also like some feedback, here is a list of the currently implemented tags. I'd like suggestions on any potential additions to this list.
[nobbc]
[i] - Italics
[b] - Bold
[u] - Underline
[s] - Strikethrough
[color=...] - Set text color.
[size=...] - Set text font size.
[font=...] - Set a specific font face.
[url=http://...] - Make the elements inside hyperlinks to the specified url.
[abbr=...] - Make elements inside have title text.
[center] - Center align
[left] - Left align
[right] - Right align
[just] - Justify
[quote Name] - Make a blockquote from Name.
[img] - Embed an image
[video] - Embed a raw video file.
[youtube] - Embed a youtube video.
[vimeo] - Embed a vimeo video.
[hr] - Make a horizontal line.
[nobbc] - Skip bbcode parsing of text within this tag.
[noparse] - Alias of nobbc.



Any feedback about potential tag additions or changes is welcome.

does it support color code

does it support color code
Yes, any css-valid color property should be accepted.

but its also "Now" in PT, you know...
well yes but greece predates portugal