Forum wish: add Table support

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Forum wish: add Table support

Post by *Stefan2 »

@Ghisler

If there is some spare time, maybe it is possible to add support for tables?

one two
eins zwei



I found an explanation here > https://www.phpbb.de/community/viewtopic.php?t=233597



 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Forum wish: add Table support

Post by *ghisler(Author) »

Thanks for your suggestion, I have added it now. Please test it!

Here is a test table:
12
34

Code: Select all

[table][tr][td]1[/td][td]2[/td][/tr][tr][td]3[/td][td]4[/td][/tr][/table]

And the table you suggested above:
one two
eins zwei
Author of Total Commander
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Forum wish: add Table support

Post by *Stefan2 »

 
:shock: :D Thank you very much Mr. Ghisler! :mrgreen:


The old way of formatting tables :

Code: Select all

Name 	||	Hex Code RGB 	|| TColor $BGR		|| RGB value laut TC bzw. laut eigener Berechnung des '$BGR'-Wertes
Black 		#000000 	
White 		#FFFFFF 	
Red 		#FF0000 	
Lime 		#00FF00 	
Blue 		#0000FF 		$FF0000		16711680
Yellow 		#FFFF00 		$00FFFF		65535
Cyan / Aqua 	#00FFFF 
Magenta / Fuchsia #FF00FF 
Silver 		#C0C0C0 		$C0C0C0
Gray 		#808080 	
Maroon 		#800000 	
Olive 		#808000 	
Green 		#008000 	
Purple 		#800080 	
Teal 		#008080 	
Navy 		#000080 	

The new way:

NameHex Code RGBTColor $BGRRGB value
Black #00000 $00000
White #FFFFFF $FFFFFF
Red #FF0000 $0000FF
Lime #00FF00 $00FF00
Blue #0000FF $0000FF (wrong)16711680
Yellow #FFFF00 $00FFFF 65535
Cyan / Aqua #00FFFF $FFFF00
Magenta / Fuchsia #FF00FF $FF00FF
Silver #C0C0C0 $C0C0C0
Gray #808080 $808080
Maroon #800000 $000080
Olive #808000 $008080
Green #008000 $008000
Purple #800080 $800080
Teal #008080 $808000
Navy #000080 $800000



Example:
[ table]
[ tr]       [ td] #   [ /td][ td]   #   [ /td][ td] #   [ /td][ td] # [ /td]       [ /tr]
[ tr]       [ td] #   [ /td][ td]   #   [ /td][ td] #   [ /td][ td] # [ /td]       [ /tr]
[ /table]





TEST 1

HTML Basic colors:
NameHex Code RGBTColor $BGRRGB value
Black #00000 $00000
White #FFFFFF $FFFFFF
Red #FF0000 $0000FF

Source
[ table]
[ tr] HTML Basic colors:[/tr]
[ tr] [td]Name[/td][td]Hex Code RGB[/td][td]TColor $BGR[/td][td]RGB value [/td] [/tr]
[ /table]


TEST 2

HTML Basic colors:
NameHex Code RGBTColor $BGRRGB value
Black #00000 $00000
White #FFFFFF $FFFFFF
Red #FF0000 $0000FF

Source
[ table]
HTML Basic colors:
[ tr] [td]Name[/td][td]Hex Code RGB[/td][td]TColor $BGR[/td][td]RGB value [/td] [/tr]
[ /table]





 
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: Forum wish: add Table support

Post by *HolgerK »

@Stefan2
The $BGR value is wrong:
Blue #0000FF $0000FF 16711680

(also in: viewtopic.php?p=346108#p346108)

BTW: nice BBCode formatting possibility :)

Thanks
Holger
Make our planet great again
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Forum wish: add Table support

Post by *Stefan2 »

Thanks Holger.
I know that that happens, copy&paste error. But I didn't notice it.





And I know someone will check it :D
User avatar
Phred
Senior Member
Senior Member
Posts: 375
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Re: Forum wish: add Table support

Post by *Phred »

What can we use tables for?
A better way of explaining things here, a means of illustration?
Regards, PhredE
Licence holder since 1999
Awaiting a $D donors-token for the title-bar so we can display that we have donated further.
User avatar
SSc
Junior Member
Junior Member
Posts: 67
Joined: 2015-10-27, 10:12 UTC
Location: Karlsruhe

Re: Forum wish: add Table support

Post by *SSc »

Phred, not sure if I understand your question. See Stefans examples above with the color codes. You need the forum to support tables to do such a formatting. And Mr. Ghisler simply activated the table suppor for the forum.

In other words: whenever you want to have a tabular strucure in one of your forum posts, you can now use tables
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: Forum wish: add Table support

Post by *ts4242 »

The table border is almost invisible when the board style is Black, usually light gray is preferred for table's border and it will be good for all board styles.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Forum wish: add Table support

Post by *Usher »

2ts4242
Default table border color should be the same as font color, otherwise it may be distracting.
And if there's something wrong with a single style, you should fix this style rather than changing all the styles (now and in the future).
Andrzej P. Wozniak
Polish subforum moderator
Post Reply