Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

New Custom Bbcode [table]


20 replies to this topic

#1 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 18 April 2007 - 03:21 AM

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:

[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.

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

will show:

column 1column 2



[hr=noshade]UPDATE on TD bbcode tags[/hr]

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

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



[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


#2 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 18 April 2007 - 03:39 AM

Ah! Tables! Finally, i've been waiting for this! ;) And, yes, perfect for signatures. ;)

Question, though: Will there be an added feature where we will be able to have colspans and rowspans?

#3 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 18 April 2007 - 04:03 AM

View Posttruefusion, on Apr 17 2007, 11:39 PM, said:

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?

#4 matak

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 416 posts
  • Location:Psychedelic Realms
  • Interests:Psychedelic

Posted 18 April 2007 - 04:04 AM

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 ;)and 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.. ;)

#5 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 18 April 2007 - 04:12 AM

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!

#6 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 18 April 2007 - 04:26 AM

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.

View PostBuffaloHELP said:

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.

#7 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 18 April 2007 - 04:36 AM

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. ;)

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...

#8 truefusion

    Coincidence is non-sequitur, therefore everything has a reason for its existence (except if they are eternal).

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 3,216 posts
  • Gender:Male
  • Location:No, not there. Not there either. Yes, you'll never figure it out.
  • Interests:God, Christianity.
  • myCENT:86.16

Posted 18 April 2007 - 04:53 AM

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.
[hr=noshade]

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. ;)[/hr]

#9 BuffaloHelp

    Sterling Archer

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,088 posts
  • Gender:Male
  • myCENT:50.18

Posted 18 April 2007 - 05:08 AM

Alrighty then ;)

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.

#10 Saint_Michael

    $p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7,459 posts
  • Gender:Male
  • Location:9r33|\| 399$ 4|\|D 5P4/\/\
  • Interests:$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
  • myCENT:71.24

Posted 18 April 2007 - 05:23 AM

Would it be possible if any for the user to add styles to the tables through a series of bbcodes to change the border color, set up a header similar to the note bbcode, make the borders thicker or dashed, and a background color with in the table? I believe thier was a bbcode that was used that when put in you could set up a background color against the text.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users