Adding Tables

Talk about the NLSC Podcast, Monday Tip-Off, Wayback Wednesday, The Friday Five, Top 10 Plays of the Week, and our Parsec Tournaments! This is also a section for NLSC and community announcements, and other site-related topics.

Adding Tables

Postby benji on Tue Feb 03, 2009 2:36 pm

Okay Andrew, I spent a few minutes working on this, and managed to get the custom bbcode to display tables. You will need to create five custom bbcode entries. (Admin Panel -> Forum -> BBCode) First one goes in top box, second in second box.
Code: Select all
[table]{TEXT}[/table]
<table cellspacing="0" class="table1" border=1>{TEXT}</table>

If you remove the "class='table1'" part it will display like basic HTML tables. If not, it will display fancy like this: http://www.nbavg.org/forum/viewtopic.ph ... p=201#p201

I'll keep trying the phpbb class settings to see if there's a nicer looking one.

The rest I'm going to list in one code block.
Code: Select all
[tb]{TEXT}[/tb]
<td colspan=1><b>{TEXT}</b></td>

[td]{TEXT}[/td]
<td>{TEXT}</td>

[tr]{TEXT}[/tr]
<tr>{TEXT}</tr>

[tdo={NUMBER}]{TEXT}[/tdo]
<td colspan={NUMBER}>{TEXT}</td>

Probably could've PMed this. But whatever. It can serve as tutorial once added.
User avatar
benji
 
Posts: 14545
Joined: Sat Nov 16, 2002 9:09 am

Re: Adding Tables

Postby Andrew on Tue Feb 03, 2009 5:37 pm

TablesTest
RowTwo
RowThree


Looks good to me so far, thanks heaps. (Y)
User avatar
Andrew
Assist Enthusiast
Administrator
 
Posts: 113884
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: Adding Tables

Postby benji on Tue Feb 03, 2009 5:45 pm

Thanks!

There's a way to get rid of the hover highlight, I'll have to look it up if you wanted to change that. Actually, maybe it's nice for long tables, I hadn't moused over my table till I noticed it on your test. It's weird looking on your test, but I pretty sure it's just a result of it being two columns, on the longer test I made it looks useful for highlighting a row. But I'm rambling, if anyone wanted that changed though I could look up how to get rid of it.
User avatar
benji
 
Posts: 14545
Joined: Sat Nov 16, 2002 9:09 am

Re: Adding Tables

Postby Andrew on Tue Feb 03, 2009 6:12 pm

The highlight doesn't look too bad especially with more cells as in your example but if we can get rid of it easily enough it's probably worth trying out as the highlight might get a bit distracting.
User avatar
Andrew
Assist Enthusiast
Administrator
 
Posts: 113884
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: Adding Tables

Postby J@3 on Mon Jun 29, 2009 7:25 am

Stickied because I wanted to know how to do this a while ago and found no such tutorial.
User avatar
J@3
 
Posts: 19815
Joined: Thu Mar 11, 2004 3:25 pm
Location: MLB

Re: Adding Tables

Postby anubisak on Sat May 15, 2010 11:32 am

I got a question or a doubt...I cant make the table to use the "colspan" code...does anybody knows how to use it? An example would be great
User avatar
anubisak
 
Posts: 367
Joined: Mon Apr 24, 2006 4:23 am
Location: Buenos Aires - Argentina

Re: Adding Tables

Postby Andrew on Sun May 16, 2010 12:06 pm

Can't be done with the BBCode as-is, sorry.
User avatar
Andrew
Assist Enthusiast
Administrator
 
Posts: 113884
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: Adding Tables

Postby dare on Wed Jan 05, 2011 11:19 am

Nice to bump up this thread, on topic can somebody tell me how to put a highlight on a row or column? Like a blue highlight on the very top row. Also can I merger columns? I can only do rows.
User avatar
dare
True kings have rings
 
Posts: 3966
Joined: Fri Sep 11, 2009 8:19 pm
Location: Somewhere


Return to Featured Content & Community Noticeboard

Who is online

Users browsing this forum: No registered users and 7 guests