.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old November 25th, 2003, 03:49 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Figured out how to display tables on this forum

Some of you may not particularly care about this, and some of you may have already figured this out. But I haven't seen it posted if anyone has.

There has always been a problem getting tables to display properly on this forum board. The table itself seems to work, but there is always a bunch of blank space before the table starts. Annoying and looks wierd. I have figured out whats causing it and how to avoid it.

The following table code:
code:
<table border=1 cellspacing=1>
<tr>
<td>First cell of first row</td>
<td>Second cell of first row</td>
</tr>
<tr>
<td>First cell of second row</td>
<td>Second cell of second row</td>
</tr>
</table>

Will display like this:









First cell of first row Second cell of first row
First cell of second row Second cell of second row

See the big blank gap before the table starts? Yech!

The problem is all the carriage returns in the table code. The carriage returns are normally ignored when dealing with html, but the UBB is keeping them, and stacking them all up together before the table is displayed.

Same table code with Carriage returns removed...
code:
<table border=1 cellspacing=1><tr><td>First cell of first row</td><td>Second cell of first row</td>
</tr><tr><td>First cell of second row</td><td>Second cell of second row</td></tr></table>

(actually I did insert one CR in here, but only to break up the line and keep the screen formatting correctly. You get the idea.)

...will display like this...

First cell of first rowSecond cell of first row
First cell of second row Second cell of second row


See? No spaces before table. Not sure if this is a bug with all UBB Boards or in this particular one. The table code is kind of hard to read without the carriage returns, but the important thing is how it looks in the end result anyway.

Geoschmo

[ November 25, 2003, 13:51: Message edited by: geoschmo ]
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #2  
Old November 25th, 2003, 05:55 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Figured out how to display tables on this forum

I think it is just how UBB renders Posts. Every newline in a post body gets displayed as a newline, regardless of what is actually on it.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #3  
Old November 25th, 2003, 06:31 PM

Andrés Andrés is offline
Major
 
Join Date: Apr 2001
Location: Rosario, Argentina
Posts: 1,047
Thanks: 0
Thanked 0 Times in 0 Posts
Andrés is on a distinguished road
Default Re: Figured out how to display tables on this forum

This should be good HTML practice.
Normally multiple spaces or newlines are interpreted as a single space, but still there.

Line breaks, if necesary, must be within within cell text, since UBB seems to break then the < isn´t in the same line as the >

Like this:
First cell of first row
Second cell of first row
First cell of second row
Second cell of second row
Reply With Quote
  #4  
Old November 25th, 2003, 10:55 PM
Parasite's Avatar

Parasite Parasite is offline
Second Lieutenant
 
Join Date: Jul 2003
Location: Texas
Posts: 464
Thanks: 0
Thanked 0 Times in 0 Posts
Parasite is on a distinguished road
Default Re: Figured out how to display tables on this forum

Is there a place to practice or try out things like this? I could make a topic and try, but an out of the way place that doesn't go to the top of the list would be better. Buttons boexes and other HTML stuff could be great.

[ November 25, 2003, 20:56: Message edited by: Parasite ]
__________________
I thought of the sun as a big bright ball of something that produced an intense absence of darkness. Alan Dean Foster No More Crystal Tears
A++SeGdy$+-++Fr?C++++Cst+SfAi--Mm-MpTS---SsROPw++Fq++Nd++++RpG++Mm++Bb
Reply With Quote
  #5  
Old November 26th, 2003, 12:12 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Figured out how to display tables on this forum

This
Is
Very
Cool
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #6  
Old November 26th, 2003, 12:18 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Figured out how to display tables on this forum

Laugh



Reply With Quote
  #7  
Old November 26th, 2003, 12:55 AM
Slynky's Avatar

Slynky Slynky is offline
General
 
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 3,499
Thanks: 0
Thanked 0 Times in 0 Posts
Slynky is on a distinguished road
Default Re: Figured out how to display tables on this forum

Kewl beans
__________________
ALLIANCE, n. In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. (Ambrose Bierce)
Reply With Quote
  #8  
Old November 26th, 2003, 12:57 AM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default Re: Figured out how to display tables on this forum

Quote:
Originally posted by Parasite:
Is there a place to practice or try out things like this? I could make a topic and try, but an out of the way place that doesn't go to the top of the list would be better. Buttons boexes and other HTML stuff could be great.
There's always the nonsense thread.
Reply With Quote
  #9  
Old November 26th, 2003, 01:02 AM
Slynky's Avatar

Slynky Slynky is offline
General
 
Join Date: Jan 2003
Location: Atlanta, GA
Posts: 3,499
Thanks: 0
Thanked 0 Times in 0 Posts
Slynky is on a distinguished road
Default Re: Figured out how to display tables on this forum

Can't one practice by just previewing the post?
__________________
ALLIANCE, n. In international politics, the union of two thieves who have their hands so deeply inserted in each other's pocket that they cannot separately plunder a third. (Ambrose Bierce)
Reply With Quote
  #10  
Old November 26th, 2003, 01:04 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Figured out how to display tables on this forum

Is
Very
Cool
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.