Support for tables added

Suggestions or feature requests for the dice roller, forums, or PbP games.
Post Reply
Message
Author
User avatar
ToniXX
Site Admin
Site Admin
Posts: 3259
Joined: Sat Sep 19, 2009 5:21 pm
Location: Long Beach, CA

Support for tables added

#1 Post by ToniXX »

All,
I was messing around with BBcodes and was able to implement table support. Here's an example:
LevelExp RequiredHit Dice (d10)
101
21,9002
34,2503
47,7504
Here's a great page for generating the proper BBCode. It makes it very easy and you can even save your tables: http://www.teamopolis.com/tools/bbcode- ... rator.aspx

I found out that if you leave the table code formatted as this page generates, it puts a lot of space above the table. But, if you remove the spaces and line breaks between the various BBCode tags, it doesn't add all the extra space. I'll keep playing with this and see what else can be worked out. If you're really into adding tables into your posts, play with it and you'll get the idea.

I'm going to adjust the colors a bit and if anyone has any input, post here.

Thanks
"Sir, our research shows that the bird is equal to or greater than the word."
The sab-cat has nine lives and no conscience
Hrafn
Guide
Guide
Posts: 199
Joined: Fri May 24, 2013 11:16 am

Re: Support for tables added

#2 Post by Hrafn »

ToniXX wrote:All,
I was messing around with BBcodes and was able to implement table support. Here's an example:
LevelExp RequiredHit Dice (d10)
101
21,9002
34,2503
47,7504
Here's a great page for generating the proper BBCode. It makes it very easy and you can even save your tables: http://www.teamopolis.com/tools/bbcode- ... rator.aspx

I found out that if you leave the table code formatted as this page generates, it puts a lot of space above the table. But, if you remove the spaces and line breaks between the various BBCode tags, it doesn't add all the extra space. I'll keep playing with this and see what else can be worked out. If you're really into adding tables into your posts, play with it and you'll get the idea.

I'm going to adjust the colors a bit and if anyone has any input, post here.

Thanks
Scratch that, it certainly seems to mirror HTML.

For colors, you would probably want colors that jive well with the site while being distinct. The same colors as the quote box option are probably your best bet.
Do you know if the bbcode supports tag alterations in the same way as HTML? Would [td colspan=3] make that data cell spam three columns? If so, then using a BGIMG tag for the table itself could solve most of the issues; leave the coloring alone and just make a readily accessible background image, like parchment or something, as a .png or .gif and have people use that.

Let's see. Quick test shows that no, the tags don't get that kind of innate support. Makes sense.
Does the forum have access to the [doHTML] tag? If so an HTML generator might give you more leeway on formatting – assuming, rude as I am, that such formatting is desirable – at the cost of allowing potential misuse of HTML such as loading files in randomly.
Kaa, who devours (5th level shaman, ACKS)
User avatar
dmw71
POWAH!
POWAH!
Posts: 20270
Joined: Tue Jan 24, 2012 7:18 pm
Location: Chicago, Illinois
Contact:

Re: Support for tables added

#3 Post by dmw71 »

ToniXX wrote: I was messing around with BBcodes and was able to implement table support.
This is cool. It will almost certainly save me from using the 'code' tag like I have been.

-- Games --
- DM: In Development

-- 2025 --
Unseen Servant Con!
.
.
-- Project --
Playtest: Untitled Project (1e)
(Status: Archived)

User avatar
ToniXX
Site Admin
Site Admin
Posts: 3259
Joined: Sat Sep 19, 2009 5:21 pm
Location: Long Beach, CA

Re: Support for tables added

#4 Post by ToniXX »

I've tweaked the table codes a bit. The header rows match the blue of the forum. The table body matches the slightly grey from other elements of the forums. I can tweak it further if anyone has more input.
"Sir, our research shows that the bird is equal to or greater than the word."
The sab-cat has nine lives and no conscience
User avatar
ToniXX
Site Admin
Site Admin
Posts: 3259
Joined: Sat Sep 19, 2009 5:21 pm
Location: Long Beach, CA

Re: Support for tables added

#5 Post by ToniXX »

I thought about adding support for table cells spanning multiple rows (I think it can be done), but it seems that it would be complicated to the end users.
"Sir, our research shows that the bird is equal to or greater than the word."
The sab-cat has nine lives and no conscience
User avatar
dmw71
POWAH!
POWAH!
Posts: 20270
Joined: Tue Jan 24, 2012 7:18 pm
Location: Chicago, Illinois
Contact:

Re: Support for tables added

#6 Post by dmw71 »

ToniXX wrote:I thought about adding support for table cells spanning multiple rows (I think it can be done), but it seems that it would be complicated to the end users.
Just my thought, but seeing as how the feature you're discussing is only an option and not a requirement, I wouldn't let increased complication hold you back from implementing it.

-- Games --
- DM: In Development

-- 2025 --
Unseen Servant Con!
.
.
-- Project --
Playtest: Untitled Project (1e)
(Status: Archived)

Hrafn
Guide
Guide
Posts: 199
Joined: Fri May 24, 2013 11:16 am

Re: Support for tables added

#7 Post by Hrafn »

Nice~! Good changes, the table looks very pleasant. I was surprised on loading to see it actualized already. Guess I should take t own advice in the future and stick to simple color palettes.
This is cool. It will almost certainly save me from using the 'code' tag like I have been.
Spirits, I hate that tag! Nothing ever lines up right @n@
dmw71 wrote:
ToniXX wrote:I thought about adding support for table cells spanning multiple rows (I think it can be done), but it seems that it would be complicated to the end users.
Just my thought, but seeing as how the feature you're discussing is only an option and not a requirement, I wouldn't let increased complication hold you back from implementing it.
It might not be worth implementing a feature that is never used, though. I can think of several sea for tables right off the bat, even as a makeshift combat grid! But you wouldn't need... Oh, well it would make big enemies prettier... Hm.
Kaa, who devours (5th level shaman, ACKS)
Post Reply

Return to “Suggestions”