Announcement

Collapse
No announcement yet.

How do I add a table in a post in a forum?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I add a table in a post in a forum?

    I've put the following code into a post on one of my forums. It shows properly but the only problem is there is a TON of space between the text at the top and the actual table. I can't seem to figure out how to get rid of this.
    Here is a link to the page on my site: Link
    Below is the current Wish List as it stands:
    (sorry for the scrolling atm...gotta figure this stupid thing out. Just bare w/me) And if you still need to post your items, send a private message here on the website to Kaija.
    <table border="0" cellspacing="0" cellpadding="5">

    <tr>
    <td width="103">Toon Name</td>
    <td width="285">Item</td>
    <td width="141">Instance</td>
    <td width="84">Date Addeed</td>
    <td width="73">Date Looted</td>
    </tr>
    <tr>
    <td>Nikkanu</td>
    <td>[item]Brooch of Nature's Mercy[/item]</td>
    <td>Zul' Aman</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Earring of Soulful Meditation[/item]</td>
    <td>SSC</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>Brethor</td>
    <td>[item]Amani Punisher[/item]</td>
    <td>Zul'Aman</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Aldori Legacy[/item]</td>
    <td>Gruul's</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr> <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Eloradanyn</td>
    <td>[item]Sunfury Bow of the Phoenix[/item]</td>
    <td>Kara</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Dragonspine Trophy[/item]</td>
    <td>Gruul's Lair</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Peekomasta</td>
    <td>[item]Bloodmaw Magus-Blade[/item]</td>
    <td>Gruul's Lair</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Eye of Magtheridon[/item]</td>
    <td>Magtheridon</td>
    <td>4/22/08</td>
    <td>&nbsp;</td></tr>

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Baelur</td>
    <td>[item]Dragonspine Trophy[/item]</td>
    <td>Gruul's Lair</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Grimgrin Faceguard[/item]</td>
    <td>Zul'Aman</td>
    <td>4/22/08</td>
    <td>&nbsp;</td></tr>

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Paledruid</td>
    <td>[item]Berserker's Call[/item]</td>
    <td>ZA</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Frayed Tether of the Drowned[/item]</td>
    <td>SSC</td>
    <td>4/22/08</td>
    <td>&nbsp;</td></tr>

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Holocene</td>
    <td>[item]Wub's Cursed Hexblade[/item]</td>
    <td>ZA</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Cowl of the Grand Engineer[/item]</td>
    <td>TK</td>
    <td>4/22/08</td>
    <td>&nbsp;</td></tr>

    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr><tr>
    <td>Wickedwytch</td>
    <td>[item]Hood of Hexing[/item]</td>
    <td>ZA</td>
    <td>4/22/08</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>[item]Cowl of the Grand Engineer[/item]</td>
    <td>TK</td>
    <td>4/22/08</td>
    <td>&nbsp;</td></tr>

    </table>

  • #2
    Originally posted by aalsmo View Post
    Here is a link to the page on my site: Link
    Test UserName and Pass?
    James

    Comment


    • #3
      Sorry,
      User: tester
      Pw: peon

      Comment


      • #4
        The parser inserts a line break for each new line in the HTML code in the post. When table code is used over multiple lines these breaks accumulate above the table. I think you can modify the includes/class_bbcode.php file to change this behavior. Search for "nl2br". If you have some coding ability then you can post on www.vbulletin.org for help with this.

        Comment


        • #5
          Hi, I have looked at that file and yes i do believe it's somewhere in there. Only problem is because it's spread out everywhere, I probably will need a bit of advice/help on what to change in here without screwing up the file. I have posted something on the .org site and hopefully someone will get back to me soon.

          Comment


          • #6
            If using tables will be an infrequent thing, then you can remove the space on your own, so it would gor from this:

            <table border="0" cellspacing="0" cellpadding="5">

            <tr>
            <td width="103">Toon Name</td>
            <td width="285">Item</td>
            ...


            to this:

            <table border="0" cellspacing="0" cellpadding="5"><tr><td width="103">Toon Name</td><td width="285">Item</td>...

            I've used this a couple of times, and it will work.
            Cliff
            PathLabTalk
            Square Wheels Cycling

            Comment


            • #7
              yes, it's ok for a temp fix but I do make changes to this table possibly every day. :-(

              Comment


              • #8
                Ok, I found a solution and thought I would share it here. After doing some research, I found this:

                Click for this forum post

                I downloaded the xml file and installed using the administrator panel as per the instructions. Then, I went to my forum and posted the following code and it worked like a charm. You need to log in in order to view this post. User: tester, PW: peon. I hope this helps others out.


                Below is the current Wish List as it stands:
                If you still need to post your items, send a private message here on the website to Kaija.

                Comment

                Related Topics

                Collapse

                Working...
                X