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:84.24

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:84.24

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:84.24

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,451 posts
  • Gender:Male
  • Location:9r33|\| 399$ 4|\|D 5P4/\/\
  • Interests:$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
  • myCENT:48.35

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.

#11 Forbez

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 662 posts

Posted 18 April 2007 - 05:05 PM

Nice, real nice. I might add this to my forums. Very well done.

#12 matak

    Super Member

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

Posted 18 April 2007 - 06:28 PM

Hey, nice work on tables ;). Well personaly i don't think that column borders are must-have, and i know how it's .... hard to make borders work on all browsers.

BuffaloHELP, did you maybe think of maybe using float: left; div tags for this thingy. I think that jlhaslip, since he's great with XHML, and CSS might help you with it, if you ever choose using div's instead of tables.

This is the only forum that i saw that has TABLE bbcode ;). Go trap Posted Image

#13 BuffaloHelp

    Sterling Archer

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

Posted 19 April 2007 - 06:54 AM

Table is much more versatile when it comes to adding columns without defining every little detail ;) Trap17 isn't the only forum--actually I borrowed the idea from AstaHost but just made little changes how I saw it fit, like allowing border width, 100% width and equal division of columns.

UPDATE:
FF2, Opera9 shows columns in equidistant from one another
IE6, IE7 shows columns in equidistant from one another
All tested browsers show 100% table width according to any browser resolution size

#14 LeAnn Rimes My Angel

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 441 posts
  • Gender:Male
  • Location:Ottawa, Ontario, Canada
  • Interests:LeAnn Rimes music cds, Music Videos and Star Wars movies. And certain video games I like alot as well. Sometimes I like to go out to the bush and feed birds by my hand and they're called Chickadee's. I mostly like to talk about LeAnn Rimes though I am a huge fan as I am sure everyone in here can tell.

Posted 19 April 2007 - 08:19 PM

Impressive new BBCode in here. I already put it in my Signature. Makes it almost looks like a picture that has been framed kind of. ;) Thanks BuffaloHELP you still give us a whole lot of fun stuff to use in here. Almost always something new in here. ;) I like seeing new stuff.

#15 sniperkiller

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 71 posts
  • Gender:Male

Posted 22 April 2007 - 06:45 PM

wow ty, this is a very good goodie for this forum if you are making a terrible long post and you want to include some pictures in it. perhaps now i'll be able to make my post about an online game ^^ (which was terribly long with no tables)

also are these included ? ==> <thead /> <tbody /> <tfoot /> <th />

#16 BuffaloHelp

    Sterling Archer

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

Posted 22 April 2007 - 09:04 PM

I've been going through some combinations of which would be the least amount of bbcode tags requires to achieve desired column establishment and I decided it that for now TABLE, TR, TD would be the least amount.

Included in TABLE, new tags TDDASHED and TDSOLID were added today http://www.trap17.com/forums/index.php?s=&...st&p=320247 by request.

TDDASHED and TDSOLID have options that defines border width with their appropriate border style (obviously ;))

#17 Forbez

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 662 posts

Posted 23 April 2007 - 05:01 AM

Great that you guys added tables. More orginsed posts now.

#18 Plenoptic

    Trap Double Mocha Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,310 posts
  • Gender:Male
  • Location:That one place over there...
  • Interests:baseball, webdesign, computer programming, more to be added later
  • myCENT:24.66

Posted 23 April 2007 - 04:05 PM

Very nice! This could be very helpful when outlining something out for users or comparing two things. Ought to be useful as long as you take the time to use it. It could be a little time consuming but helpful in the end.

#19 Saint_Michael

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

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

Posted 23 April 2007 - 05:20 PM

Not bad at all some good stuff added to the tables bbcode, I might have to do some tweaking in my sig block tonight ;). Good thing html tags where turned off or people would be designing websites in their sig blocks ;).

#20 TripleH13

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 621 posts

Posted 24 April 2007 - 03:30 AM

awesome! This will make things much more organized and creative.

#21 Matt2

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 167 posts
  • Gender:Male
  • Location:New Zealand

Posted 24 April 2007 - 06:57 AM

Yay! This is the first forum that I know that has the Table BBCode. It looks like Trap17 is one of the only forums to listen to their users needs. It has been requested on other forums that I know of and it was shunned out as being "too difficult."

Your well on your way to leave all the other 'free' webhosts in the dark ;).

Thankyou Trap ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users