Welcome Guest ( Log In | Register)



3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> New Custom Bbcode [table], much needed tag
BuffaloHELP
post Apr 18 2007, 03:21 AM
Post #1


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,500
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Hello Trap17 members,

After reviewing members' signatures, I believe TABLE tag is needed in our forum as well. The usage is the same as the regular HTML code:

CODE
[table=1][tr][td]column 1[/td][td]column 2[/td][/tr][/table]


will show:

column 1column 2


Table column's width is predefined. To avoid unnecessary forum format distortion please limit per column content to fit the forum width. Table=1 option is needed to create table outline. You may use 0 to omit this option.

CODE
[table=0][tr][td]column 1[/td][td]column 2[/td][/tr][/table]


will show:

column 1column 2




UPDATE on TD bbcode tags

Additional TD tags called TDDASHED and TDSOLID were added to give optional table column border with width in pixels, such that following codes will show

CODE
[table=1][tr][tddashed=2]something[/tddashed][tddashed=1]something else[/tddashed][/tr][/table]

somethingsomething else



CODE
[table=0][tr][tdsolid=1]something[/tdsolid][tdsolid=3]something else[/tdsolid][/tr][/table]

somethingsomething else

Notice that by omitting table border width, you can create some different effects.

Mix it up!
Trap17 within dashedTrap17 within solid
Go to the top of the page
 
+Quote Post
truefusion
post Apr 18 2007, 03:39 AM
Post #2


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,919
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



Ah! Tables! Finally, i've been waiting for this! biggrin.gif And, yes, perfect for signatures. xd.gif

Question, though: Will there be an added feature where we will be able to have colspans and rowspans?
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Apr 18 2007, 04:03 AM
Post #3


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,500
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



QUOTE(truefusion @ Apr 17 2007, 11:39 PM) *
Will there be an added feature where we will be able to have colspans and rowspans?


Within the TABLE tag or separately?

I have modified the table to be at 100% with table columns as 50% Would you mean to specify user's own colspan and rowspan?
Go to the top of the page
 
+Quote Post
matak
post Apr 18 2007, 04:04 AM
Post #4


Super Member
*********

Group: Members
Posts: 413
Joined: 4-October 06
From: Psychedelic Realms
Member No.: 31,079



i just wanted to see how this table thing is going to act when you write lot's of textit's just that right now i don't have any idea on what text to write smile.gifand to see how it works for thicker border and 3 columns


nice work on tables bb code. here's how it works for 3 columns. 3rd one is not aligning properly. with the code i wrote. maybe i typed something wrong, or is this how it's ment to be? anyway nice work, good for presentations too.. smile.gif
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Apr 18 2007, 04:12 AM
Post #5


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,500
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Ah, yes... I didn't expect for 3 column design. Since I limited to 50% per TD, it's natural that the 3rd and additional TDs would show like that.

Hummm... I wonder how we can solve this situation.

UPDATE:

Alright, I believe I have fixed the equal division problem. So that, either used two columns, three or more, it should divide equally.

column Acolumn B


column Acolumn Bcolumn C


column Acolumn Bcolumn Ccolumn D


Additional thought: should you have the option to have table column border as well?
Additional problem: it does not work under IE6!
Go to the top of the page
 
+Quote Post
truefusion
post Apr 18 2007, 04:26 AM
Post #6


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,919
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



By default as rendered in the browser, the TD's should evenly divide themselves—no need to predefine the width for each TD; so long as the table has a predefined width.

QUOTE(BuffaloHELP) *
Within the TABLE tag or separately?

Within the TD tags (which, i guess, would be inside the TABLE tag, in a sense), just like regular HTML.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Apr 18 2007, 04:36 AM
Post #7


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,500
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



I would like to make the table to fit 100% width of the forum, so that in 800x600 or 1024x768 screen resolution can see the forum nice and clean lined. If we all had 1024x768 or higher resolution I would not even worry about the width of the forum format. But that isn't the case. sad.gif

As you can see, until I change it, when table width isn't specified it reduces to as compact as possible under Firefox.

Which is another problem: making all browsers to show it exactly the same. Gosh, I wonder why I decided to make this one in the first place...
Go to the top of the page
 
+Quote Post
truefusion
post Apr 18 2007, 04:53 AM
Post #8


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,919
Joined: 22-June 05
From: The World of Gentoo
Member No.: 8,528



QUOTE
Additional thought: should you have the option to have table column border as well?
Yes, borders will be good for when support for tables within a table is implemented.

QUOTE
Gosh, I wonder why I decided to make this one in the first place...

So far, this new bbcode has helped better organize my sig space. biggrin.gif
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Apr 18 2007, 05:08 AM
Post #9


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,500
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Alrighty then smile.gif

Until I can find a way to fix cross browser incompatibly, the current code will stand. I hope the people with 800x600 resolution would understand this issue for now.

IE6 shows correctly whether the content is filled or not.
FF2 shows compacted when the content is short or small.
Opera9 shows compacted just like FF2.