BB Code: Table Bug?

Discussion in 'Bug Reports' started by ePONYmous, Jul 31, 2011.

  1. ePONYmous

    ePONYmous Former Staff

    Joined:
    Jul 10, 2011
    Messages:
    2,048
    Likes Received:
    0
    I don't know if you'd actually consider this a "bug" or not, or even worth investing time into, but I figured I'll mention it just in case. This bug concerns the "Table" button in the advanced editor. I've tried using it a few times before and the end results were awful. Now, you may be wondering why I would even want to use a table. Allow me to explain. There are three times so far that I've wanted to use one, some more elaborate than others.

    [HR][/HR]
    What I wanted to do was to insert a table of fixed width with text. For example, let's say I wanted to insert a table with 1 row, 1 column, only an outer border and a width of 400px. With the table button, I'd get the following code:

    Code:
    [noparse]
    [TABLE="class: outer_border, width: 400"]
    [TR]
    [TD]This text is for demonstration purposes only. It is to demonstrate what a table of 1 column, 1 row and a width of 400 pixels would look like in the editor. [/TD]
    [/TR]
    [/TABLE]
    [/noparse]
    Which looks like this in the editor:

    View attachment 618

    But the output is this:

    [TABLE="class: outer_border, width: 400"]
    [TR]
    [TD]This text is for demonstration purposes only. It is to demonstrate what a table of 1 column, 1 row and a width of 400 pixels would look like in the editor. [/TD]
    [/TR]
    [/TABLE]

    As you can see, it looks pretty ugly.
    [HR][/HR]
    What I originally wanted to do was to have a list like this, except that the border would be invisible:

    View attachment 619

    At the risk of sounding like Twilight Sparkle... That way it would look more neat and organized instead of a huge list. I know, I could've just not provided an extensive list, but I kindly ask that you bear with me.

    So, I selected 1 row, 3 columns, and no border.

    This is the code that the table function would provide:

    Code:
    [noparse]
    [TABLE]
    [TR]
    [TD]
    [LIST]
    [*]3 Doors Down
    [*]Alice in Chains
    [*]Beck
    [*]Billy Joel
    [*]Breaking Benjamin
    [*]Bush
    [*]Depeche Mode
    [*]Fleetwood Mac
    [*]Goo Goo Dolls
    [*]Green Day
    [*]Incubus
    [*]Kings of Leon
    [/LIST][/TD]
    [TD]
    [LIST]
    [*]Korn
    [*]Metallica
    [*]Muse
    [*]Nickelback
    [*]Nine Inch Nails
    [*]Nirvana
    [*]Pearl Jam
    [*]Puddle of Mudd
    [*]R.E.M.
    [*]Rise Against
    [*]Scars on Broadway
    [*]Seether
    [/LIST][/TD]
    [TD]
    [LIST]
    [*]Serj Tankian
    [*]Shinedown
    [*]Smashing Pumpkins
    [*]Staind
    [*]Stone Temple Pilots
    [*]System of a Down
    [*]The Cure
    [*]The Offspring
    [*]U2
    [*]Weezer
    [*]Weird Al Yankovic
    [/LIST][/TD]
    [/TR]
    [/TABLE]
    [/noparse]
    The output is this:

    [TABLE]
    • 3 Doors Down
    • Alice in Chains
    • Beck
    • Billy Joel
    • Breaking Benjamin
    • Bush
    • Depeche Mode
    • Fleetwood Mac
    • Goo Goo Dolls
    • Green Day
    • Incubus
    • Kings of Leon
    [/TD]
    [TD]

    • Korn
    • Metallica
    • Muse
    • Nickelback
    • Nine Inch Nails
    • Nirvana
    • Pearl Jam
    • Puddle of Mudd
    • R.E.M.
    • Rise Against
    • Scars on Broadway
    • Seether
    [/TD]
    [TD]

    • Serj Tankian
    • Shinedown
    • Smashing Pumpkins
    • Staind
    • Stone Temple Pilots
    • System of a Down
    • The Cure
    • The Offspring
    • U2
    • Weezer
    • Weird Al Yankovic
    [/TD]
    [/TR]
    [/TABLE]

    As you can see, It doesn't even retain the 3 columns, but instead changes it into 3 rows, plus additional rows for the BB code it inserted and a blank one.

    [HR][/HR]
    Thanks to reading this I was able to figure out how to make that table. While I'm glad I was able to create a table successfully, my original intent was to have invisible borders, and only 2 rows and 2 columns, not a new row for each point of interest. Unfortunately, it appears that the invisible border option does not work and it'll always create new rows for each line.

    To make that table, I typed in the following:

    View attachment 620

    [HR][/HR]
    So, there you have it. While I'll admit this issue probably isn't of the utmost importance, I just figured I'd mention that the table button doesn't really work properly for me. I don't know if anypony else has issues with it. Then again, I've only seen a few around. If there is something I'm actually doing wrong in typing the code, by all means, I'd be more than happy to be educated in the matter. The only times I find a table useful for me is if I want to organize my thoughts in a certain way to make it look nice. Thank you for taking the time to read this!

    ~ ePONYmous
     
  2. Grey Knightmare

    Grey Knightmare Founder (Retired)

    Cutie Mark:
    Joined:
    Mar 21, 2011
    Messages:
    2,575
    Likes Received:
    0
    Vbulletin tables are more trouble than there worth, use this:

    HTML:
    [table]1,1|1,2|1,3
    2,1|2,2|2,3[/table]
    
    [table]1,1|1,2|1,3
    2,1|2,2|2,3[/table]

    Sadly there is no option for an invisible border at this time, but you'll be able to lay stuff out easily enough.


    Sent from my GT-I9000 using Tapatalk
     
    #2 Grey Knightmare, Jul 31, 2011
    Last edited: Jul 31, 2011

Share This Page