Shoutbox

Ordered and unordered lists - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: Ordered and unordered lists (/showthread.php?tid=73860)

Ordered and unordered lists by Felu on 04-23-2007 at 11:55 AM

quote:
  1. This is a list item in an ordered list[/list]
quote:
  1. This is a list item in an ordered list
  2. This is another list item in an ordered list[/list]
quote:
  • This is a list item in an unordered list

quote:
  • This is a list item in an unordered list
  • This is another list item in an unordered list

  • See that? The <li> tag needs to be closed. I know identifying it might be difficult but its possible.
    RE: Ordered and unordered lists by Felu on 04-23-2007 at 11:57 AM

    Sorry for the double post See the signature seperator -

    1. This is a list item in an ordered list
    2. This is another list item in an ordered list[/list]

    RE: Ordered and unordered lists by -dt- on 04-23-2007 at 12:03 PM

    if people cant close the bbcode tags correctly, why should the board auto fix it? :P


    RE: Ordered and unordered lists by Felu on 04-23-2007 at 12:14 PM

    quote:
    Originally posted by -dt-
    if people cant close the bbcode tags correctly, why should the board auto fix it? :P
    How :P? [/*] doesn't exist :P.
    RE: RE: Ordered and unordered lists by Volv on 04-23-2007 at 12:39 PM

    quote:
    Originally posted by Felu
    quote:
    Originally posted by -dt-
    if people cant close the bbcode tags correctly, why should the board auto fix it? :P
    How :P? [/*] doesn't exist :P.

    Umm, i dont think i understand? Isn't it (without the spaces):
    code:
    [ list]
    [ *]Item 1
    [ *]Item 2
    [ /list]

    RE: Ordered and unordered lists by markee on 04-23-2007 at 12:45 PM

    * markee points to http://shoutbox.menthix.net/misc.php?action=help&hid=8


    RE: Ordered and unordered lists by matty on 04-23-2007 at 01:37 PM

    1. Item 1
    2. Item 2
    3. Item 3
    4. Item 4

    [list=1]
    [*]Item 1
    [*]Item 2
    [*]Item 3
    [*]Item 4
    [/list=1]
    RE: Ordered and unordered lists by Felu on 04-23-2007 at 01:42 PM

    Ah, never knew that [/list=1] can be used. The editer for posting a reply uses [/list]. WDZ needs to update that.

    Everything is resolved, the thread can be closed :)


    RE: Ordered and unordered lists by Lou on 04-23-2007 at 08:59 PM

    quote:
    Originally posted by Matty
    [list=1]
    [*]Item 1
    [*]Item 2
    [*]Item 3
    [*]Item 4
    [/list=1]
    I think it should be made more clear on the bbcode list how to end it. Personally, I didn't know it had to end with /list=1 (or a). I thought there was a bug with it because of that, as I always ended it simply with /list. I figured it was no use reporting since the board is supposed to be updated sometime in the next 10 years ;)
    RE: Ordered and unordered lists by L. Coyote on 04-23-2007 at 09:27 PM

    Frankly, it's been said so many times, it's not funny anymore.

    Do a proper search before posting these things. :dodgy:


    RE: Ordered and unordered lists by WDZ on 12-01-2008 at 07:41 PM

    * 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

    RE: Ordered and unordered lists by matty on 12-03-2008 at 03:57 PM

    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!
    RE: RE: Ordered and unordered lists by djdannyp on 12-03-2008 at 04:29 PM

    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
    RE: Ordered and unordered lists by WDZ on 12-07-2008 at 07:28 AM

    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. ¬¬
    RE: Ordered and unordered lists by Mike on 12-07-2008 at 08:09 AM

    Why don't you rejoin the development team to fix these problems? :P


    RE: Ordered and unordered lists by Hank on 12-07-2008 at 08:15 AM

    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