Does BBcode support making data tables? (Calling Gonzoron!)

Post questions and suggestions here
Post Reply
User avatar
HuManBing
Evil Genius
Evil Genius
Posts: 3748
Joined: Fri Jan 28, 2005 9:13 am
Contact:

Does BBcode support making data tables? (Calling Gonzoron!)

Post by HuManBing »

A question, probably for Gonzoron:

I found a nice website that allows me to easily-code some tabulated data. I wanted to make a table for my GURPS Ravenloft thread, to show powers checks and the various dice rolls you need to make for those.

However, the table didn't show properly. It just posted the raw code in the thread. Can the latest BBcode allow tables?

The actual code commands, as far as I can deduce them, are things like , [th], ,
, and all the close-tags thereof.

Thanks for looking into this!
User avatar
Gonzoron of the FoS
Evil Genius
Evil Genius
Posts: 7555
Joined: Tue Dec 02, 2003 8:02 pm
Gender: Male
Location: New Jersey
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by Gonzoron of the FoS »

seems they are non-standard tags, at least in this version of phpbb. I don't see any reason not to add them... I'll get to it when I get to it.
"We're realistic heroes. We're not here to save the world, just nudge the world into a better place."
User avatar
HuManBing
Evil Genius
Evil Genius
Posts: 3748
Joined: Fri Jan 28, 2005 9:13 am
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by HuManBing »

Oh! Okay, I didn't mean to make more work for you. Specifically, I only Googled "BBcode tables" and not "phpbb" or anything. If it's not possible then no worries. But if it can be implemented without breaking bones or cracking skulls, then it would be very helpful. RPGs in general tend towards tables :)
User avatar
Gonzoron of the FoS
Evil Genius
Evil Genius
Posts: 7555
Joined: Tue Dec 02, 2003 8:02 pm
Gender: Male
Location: New Jersey
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by Gonzoron of the FoS »

[th]well...[/th]
whatdo
you
think?
It ain't fancy, but it seems to work.
"We're realistic heroes. We're not here to save the world, just nudge the world into a better place."
User avatar
HuManBing
Evil Genius
Evil Genius
Posts: 3748
Joined: Fri Jan 28, 2005 9:13 am
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by HuManBing »

Excellent! I'll have a shufty around and see what I can do. I'll post up a result link and we can see if it works! :)

Edit: Here is the first post I made with use of a table. As you can see, I am making a table of Powers Checks modifiers in the GURPS ruleset.

The table itself comes out just fine, but for some odd reason there is a large number of several dozen "carriage returns" (i.e. ENTER keypresses for blank lines) right above the table. I'm not sure why this has happened or how to fix it.
Last edited by HuManBing on Thu Dec 02, 2010 9:16 pm, edited 1 time in total.
User avatar
Gonzoron of the FoS
Evil Genius
Evil Genius
Posts: 7555
Joined: Tue Dec 02, 2003 8:02 pm
Gender: Male
Location: New Jersey
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by Gonzoron of the FoS »

heh.... I knew that someone would find that sooner or later. I guess it was "sooner." :) the problem is that bbcode doesn't ignore carriage returns like html does. You have a carriage return after each line of your table. you need to get rid of them. try quoting my post above to see what it should look like.
"We're realistic heroes. We're not here to save the world, just nudge the world into a better place."
User avatar
HuManBing
Evil Genius
Evil Genius
Posts: 3748
Joined: Fri Jan 28, 2005 9:13 am
Contact:

Re: Does BBcode support making data tables? (Calling Gonzoro

Post by HuManBing »

Okay, that explains a lot! I'll eliminate the carriage returns and see what happens.

Update: It's solved! The code itself looks pretty confusing but it's easy enough to compose it with line breaks for the human eye to see, and then eliminate the line breaks when everything's ready for primetime.

Thanks for the coding work Gonzoron! :)
Post Reply