BBCode table


Here's where you can make suggestions for new forums & categories, voice your opinion about the forum, etc.

Tartarus Sorceror

Posts: 1773

Joined: Monday, 21st February 2011, 15:57

Location: South Carolina

Post Monday, 18th February 2013, 20:51

BBCode table

Is there a BBCode tag or some other way to present tabular data in the forums?

I found bbcode syntax references that referred to table and tbl tags, but neither seem to work. I've been making the table in a spreadsheet. taking a screen capture of the spreadsheet, and uploading the capture as an image file attachment.

This looks okay, but it's difficult to edit and copy data from.

One of the suggested syntaxes was:
[tbl][tr][td]Some Info Here[/td][/tr][/tbl]
Is it easy to add this to the forum? Are there good reasons not to?

Is there an alternative I'm missing? I guess code tags preserve whitespace, so I could do it that way.
User avatar

Barkeep

Posts: 4425

Joined: Tuesday, 11th January 2011, 12:28

Post Monday, 18th February 2013, 21:51

Re: BBCode table

Hm, I don't know for sure -- maybe there's a phpbb mod? Or an option? For now, I'd link to a Google spreadsheet.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.
User avatar

Barkeep

Posts: 4425

Joined: Tuesday, 11th January 2011, 12:28

Post Monday, 18th February 2013, 22:00

Re: BBCode table

Ah, it looks like I can do this. I can't think of a good reason not to (as long as it doesn't open up a cross-site scripting hole)... I'd probably not abbreviate [tbl] because seriously you can type [table] it's ok. If people use tables for evil, we can tell them to stop.

For the moment code tags will also kind of work.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.

Tartarus Sorceror

Posts: 1773

Joined: Monday, 21st February 2011, 15:57

Location: South Carolina

Post Monday, 18th February 2013, 22:10

Re: BBCode table

[table]
[tr]
[th]Number[/th]
[th]Name[/th]
[/tr]
[tr]
[td]1[/td]
[td]One[/td]
[/tr]
[tr]
[td]2[/td]
[td]Bumblebee[/td]
[/tr]
[/table]

Ziggurat Zagger

Posts: 6393

Joined: Friday, 17th December 2010, 18:17

Post Monday, 18th February 2013, 23:05

Re: BBCode table

We can make custom tags in the Admin Control Panel. Spoiler tags are custom. I'll get on it later tonight.
User avatar

Barkeep

Posts: 4425

Joined: Tuesday, 11th January 2011, 12:28

Post Tuesday, 19th February 2013, 02:26

Re: BBCode table

OK:
  Code:
[table][tr][th]Header1[/th][th]Header2[/th][/tr]
[tr][td]Data1[/td][td]Data2[/td][/tr][/table]

yields:

Header1Header2
Data1Data2


Some CSS is warranted to make this look a little nicer, but markup works.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.
User avatar

Barkeep

Posts: 4425

Joined: Tuesday, 11th January 2011, 12:28

Post Tuesday, 19th February 2013, 02:38

Re: BBCode table

The CSS is a little nicer too, and woo. GRIMM GOT NINJA'D :)

The inline styles make the Baby Jesus cry. At some point in the near-ish future, I'll try and get ssh access and update the board software and also put this in a proper stylesheet.
I am not a very good player. My mouth is a foul pit of LIES. KNOW THIS.

For this message the author njvack has received thanks: 2
galehar, Grimm

Return to Suggestions & Criticism

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.