Page 1 of 1

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

Posted: Fri Nov 19, 2010 6:40 pm
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!

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

Posted: Fri Nov 19, 2010 8:29 pm
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.

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

Posted: Fri Nov 19, 2010 8:32 pm
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 :)

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

Posted: Thu Dec 02, 2010 5:13 pm
by Gonzoron of the FoS
[th]well...[/th]
whatdo
you
think?
It ain't fancy, but it seems to work.

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

Posted: Thu Dec 02, 2010 6:11 pm
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.

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

Posted: Thu Dec 02, 2010 9:09 pm
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.

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

Posted: Thu Dec 02, 2010 9:17 pm
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! :)