View unanswered posts | View active topics It is currently Fri Jun 23, 2017 10:36 pm



Reply to topic  [ 7 posts ] 
Does BBcode support making data tables? (Calling Gonzoron!) 
Author Message
Evil Genius
Evil Genius
User avatar

Joined: Fri Jan 28, 2005 9:13 am
Posts: 3748
Post Does BBcode support making data tables? (Calling Gonzoron!)
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 [table], [th], [tr], [td], and all the close-tags thereof.

Thanks for looking into this!

_________________


Fri Nov 19, 2010 6:40 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Tue Dec 02, 2003 8:02 pm
Posts: 6503
Location: New Jersey
Post Re: Does BBcode support making data tables? (Calling Gonzoro
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."


Fri Nov 19, 2010 8:29 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Fri Jan 28, 2005 9:13 am
Posts: 3748
Post Re: Does BBcode support making data tables? (Calling Gonzoro
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 :)

_________________


Fri Nov 19, 2010 8:32 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Tue Dec 02, 2003 8:02 pm
Posts: 6503
Location: New Jersey
Post Re: Does BBcode support making data tables? (Calling Gonzoro
well...
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."


Thu Dec 02, 2010 5:13 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Fri Jan 28, 2005 9:13 am
Posts: 3748
Post Re: Does BBcode support making data tables? (Calling Gonzoro
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.



Thu Dec 02, 2010 6:11 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Tue Dec 02, 2003 8:02 pm
Posts: 6503
Location: New Jersey
Post Re: Does BBcode support making data tables? (Calling Gonzoro
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."


Thu Dec 02, 2010 9:09 pm
Profile WWW
Evil Genius
Evil Genius
User avatar

Joined: Fri Jan 28, 2005 9:13 am
Posts: 3748
Post Re: Does BBcode support making data tables? (Calling Gonzoro
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! :)

_________________


Thu Dec 02, 2010 9:17 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.