
Lead Developer

Group: Administrator
Posts: 2793 Medals: 0 - 0 Pts
 | Edited on Jan 3 2010, 1:21 PM by Deathslayer When you go to post something on the forums, your message is run through a heap of functions and scripts to format it to be displayed. The largest of these is known as the 'BBcode engine', the part that takes your BBcode and turns it into readable HTML.
The BBCode engine running the forums was salvaged from the rather basic engine of the Chatbox, and merely improved slightly. While this worked, it was slow, unreliable, and overall, MASSIVE in terms of code size. As the engine was designed to convert relatively small messages upon reading, it introduced some issues when working with a more permenant and larger conversion, such as a missing tag would cause the rest of the BBcode to fail.
However, when attempting to use a more conventional means to convert the BBcode, it ended up bringing new issues into view, such as the inability of the tags to stack, which is quite a problem with things like Quote tags.
As a result, I've managed to remake the engine such that it solves all concievable errors, and while I was at it, I added several new features to it:
- We now have a list BBcode (as you can see). If uses the conventional format, which is at the bottom, for those that do not know it.
- I've also added the ability to post [quote] tags without needing to put =(text here) inside the opening tag
- The autolinker and URL settings have been fixed to allow more complex links to be posted without it making it fail.
- Rather less noticably, the engine runs smoother, faster, more reliably, and takes a lot less code space up.
- Unfortunately, due to compatability errors, all [quote] tags posted prior to this update will be decoded as a scrambled heap of HTML. Hopefully this should not cause too many issues.
- BBcode is now also case-insensitive, so things like [IMG] will work as well as [img]
All the above features have been added to the forum. As of current, they are not enabled in the chatbox, though this should be added soon. Hope it makes life easier for you.
Deathslayer
Lead Developer
List format:
[list]
[*] Item one
[*] Item two
[*] Ect.
[/list]
For a full list of BBcode, click here
|

Pow!

Group: Senior Member
Posts: 1248 Medals: 6 - 29 Pts
 | Where can I find this list of BBcode?
|

Davalicious

Group: Content Manager
Posts: 1532 Medals: 4 - 40 Pts
 | He meant there's been a BBcode added for lists.
Read bottom of his newspost.
|

Pow!

Group: Senior Member
Posts: 1248 Medals: 6 - 29 Pts
 | Oic.
- Good work
- It's awesome
- I'm hungry
|

Lead Developer

Group: Administrator
Posts: 2793 Medals: 0 - 0 Pts
 | For that matter, i've added a link to the list of BBcode to the bottom of the post.
|

Knisch Knasch Knar

Group: Advanced Member
Posts: 714 Medals: 1 - 5 Pts
 | YEAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHH
'been waiting for this, especially the less annoying quote tags |