What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Ordered and unordered lists

Pages: (2): « First « 1 [ 2 ] Last »
Ordered and unordered lists
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Ordered and unordered lists
* WDZ bumps an old thread ;o

I was planning on fixing this issue with my rewrite of the post parser, but then I realized that even MyBB's new implementation of the list BBCode is flawed: it can't properly handle nested lists of different types (ordered and unordered) because "[/list]" might be ambiguous, and the parser won't know if it's meant to close an ordered list or an unordered list.

For example, the following list will result in invalid HTML in MyBB 1.4, and it won't look right:
  • Category 1
    1. aaaa1
    2. bbbb1
    3. cccc1
  • Category 2
    1. aaaa2
    2. bbbb2
    3. cccc2
The only simple and non-buggy way I can think of to get rid of the attribute in the closing tag is to introduce a whole new tag like [olist]. :-/

Anyway, I did fix some other stuff with this rewrite:
  • The parser now requires the opening and closing tags to match, or they won't work at all.
  • The [*] tag no longer works outside of lists.
  • Improved handling of line breaks (spacing).
  • Some other behind-the-scenes stuff you probably don't care about. =p
12-01-2008 07:41 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Ordered and unordered lists
quote:
Originally posted by WDZ
* WDZ bumps an old thread ;o


I was planning on fixing this issue with my rewrite of the post parser, but then I realized that even MyBB's new implementation of the list BBCode is flawed: it can't properly handle nested lists of different types (ordered and unordered) because "[/list]" might be ambiguous, and the parser won't know if it's meant to close an ordered list or an unordered list.

For example, the following list will result in invalid HTML in MyBB 1.4, and it won't look right:
  • Category 1
    1. aaaa1
    2. bbbb1
    3. cccc1
  • Category 2
    1. aaaa2
    2. bbbb2
    3. cccc2
The only simple and non-buggy way I can think of to get rid of the attribute in the closing tag is to introduce a whole new tag like [olist]. :-/

Anyway, I did fix some other stuff with this rewrite:
  • The parser now requires the opening and closing tags to match, or they won't work at all.
  • The [*] tag no longer works outside of lists.
  • Improved handling of line breaks (spacing).
  • Some other behind-the-scenes stuff you probably don't care about. =p

Why not just update and make all the modifications to 1.4 instead of staying with our current version!
12-03-2008 03:57 PM
Profile E-Mail PM Find Quote Report
djdannyp
Elite Member
*****

Avatar
Danny <3 Sarah

Posts: 3546
Reputation: 31
37 / Male / Flag
Joined: Mar 2006
RE: RE: Ordered and unordered lists
quote:
Originally posted by matty

Why not just update and make all the modifications to 1.4 instead of staying with our current version!

because that would require effort :P

and i think i've heard somewhere that wdz is lazy :O

tbh, fixing things and not upgrading is better than not fixing them at all

This post was edited on 12-03-2008 at 04:29 PM by djdannyp.
[Image: 1ftt0hpk-signature.png]
AutoStatus Script || Facebook Status Script
5216 days, 16 hours, 48 minutes, 29 seconds ago
12-03-2008 04:29 PM
Profile E-Mail PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Ordered and unordered lists
quote:
Originally posted by matty
Why not just update and make all the modifications to 1.4 instead of staying with our current version!
Hmm, what's a nice way of saying 1.4 still sucks and I don't want to use it? :tongue: I spent lots of time testing it in August-September, and I wasn't very impressed overall. There are plenty of improvements, but it was full of bugs, and it was clear that some functionality had never been tested before public release. Heck, even some bug fixes were never tested and failed to actually fix anything, or they introduced new bugs.

Release announcements with lists of reported bugs: 1.4.1, 1.4.2, 1.4.3, 1.4.4 (unfortunately all the reports are hidden away archived in a private forum)

The code is still a mess, too. It looks like no attempt was made to fix all the uninitialized variables, and if you increase the PHP error_reporting level for debugging, your screen will fill up with notices. Most of the code is poorly-commented, and some parts make no sense or lack a clear purpose, or are overly complex/confusing. All of that makes it harder to write modifications.

Rewriting this board's old post parser is a small project that makes an immediate improvement and isn't likely to break anything or cause any major headaches... I can't say the same about upgrading MyBB. ¬¬
12-07-2008 07:28 AM
Profile PM Web Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
31 / Male / Flag
Joined: Mar 2003
RE: Ordered and unordered lists
Why don't you rejoin the development team to fix these problems? :P
YouTube closed-captions ripper (also allows you to download videos!)
12-07-2008 08:09 AM
Profile E-Mail PM Web Find Quote Report
Hank
Banned


Posts: 3129
Reputation: 5
– / – / Flag
Joined: Nov 2003
Status: Away
RE: Ordered and unordered lists
well DZ.. why not implement some of the features from 1.4 into this Board? surely that would be easier than to update to 1.4 an then spend hours fixing problems

DZ would prefer to rejoin his Porn than rejoin the development team Mike

This post was edited on 12-07-2008 at 08:16 AM by Hank.
12-07-2008 08:15 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On