Adding Tables

Talk about the NLSC Podcast, Wiki and other site related issues and content here. Site and community announcements are also posted in this section.

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.
ImageImage
User avatar
benji
now that's how you paint fruit
 
Posts: 13249
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)
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel


Image
Thanks to TheDee for the signature!
User avatar
Andrew
Old School Rose
Administrator
 
Posts: 87884
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.
ImageImage
User avatar
benji
now that's how you paint fruit
 
Posts: 13249
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.
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel


Image
Thanks to TheDee for the signature!
User avatar
Andrew
Old School Rose
Administrator
 
Posts: 87884
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
did you come here to kill or did you come here to die?
Administrator
 
Posts: 19817
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: 363
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.
Release Threads: NBA Live 08 | NBA Live 07 | NBA Live 06 | NBA Live 2005
Story Threads: NBA 2K13 | NBA Live 06 (Part 2) | NBA Live 06 (HOF) | NBA Live 2004 (HOF)
NLSC: Podcast | Facebook | Twitter | YouTube Channel


Image
Thanks to TheDee for the signature!
User avatar
Andrew
Old School Rose
Administrator
 
Posts: 87884
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: 3900
Joined: Fri Sep 11, 2009 8:19 pm
Location: Somewhere


Return to NLSC Hub

Who is online

Users browsing this forum: No registered users and 1 guest