TinyPortal

General => Chit chat => Topic started by: Racenut on September 26, 2005, 04:40:50 AM

Title: table within a block
Post by: Racenut on September 26, 2005, 04:40:50 AM
I am trying to insert a table with a border into a side block. It works, but I end up with the table at the bottom of the block and a large amount of space above. Here is the code i inserted into a html block:

<TABLE BORDER=1 BORDERCOLOR=BLUE>
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>


any ideas?
Title: Re: table within a block
Post by: IchBin on September 26, 2005, 04:58:21 AM
I don't know why it does that. But for quick fix you can turn it into a phpbox and put it in like this:

echo '
<TABLE BORDER=1 BORDERCOLOR=BLUE>
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>
</div>';
Title: Re: table within a block
Post by: bloc on September 26, 2005, 10:08:15 AM
Try to make the block "Do not use title/frame", that might help.
Title: Re: table within a block
Post by: Racenut on September 26, 2005, 11:48:29 AM
Quote from: Bloc on September 26, 2005, 10:08:15 AM
Try to make the block "Do not use title/frame", that might help.

Already tried that. Didnt make a difference.
Title: Re: table within a block
Post by: gerrymo on September 26, 2005, 12:46:03 PM
Have you tried using the <head> </head> <body> </body> tags (like on a full html page)?
Title: Re: table within a block
Post by: Racenut on September 26, 2005, 02:29:22 PM
Yes I did. Is there some kind of align tag or something that would solve this?

Title: Re: table within a block
Post by: Moocat on September 26, 2005, 03:58:26 PM
i think the valign=top attribute of the table tag might do it, but tables are my least favorite aspect of html ;D
Title: Re: table within a block
Post by: Racenut on September 26, 2005, 04:15:53 PM
I tried the php box that Ichbin suggested. it worked but it shoved all the stuff in the other right side boxes to the right lol.

Can you give me an example of the code with the align tag?
Title: Re: table within a block
Post by: Racenut on September 26, 2005, 09:46:10 PM
This is driving me crazy  :idiot2: :idiot2: :idiot2: Help Bloc  :knuppel2:  :buck2:
Title: Re: table within a block
Post by: IchBin on September 27, 2005, 01:19:58 AM
What do you mean it shoved everything in the right side to the right. In mine it has everything left aligned.
Title: Re: table within a block
Post by: Racenut on September 27, 2005, 01:27:15 AM
Quote from: IchBinÃ,â,,¢ on September 27, 2005, 01:19:58 AM
What do you mean it shoved everything in the right side to the right. In mine it has everything left aligned.

I added the code you posted to a php box as a right side menu block. I have 3 other right side blocks. When i added the php box with your code, all the contents of the other right side blocks shifted in their boxes from the left to the right side of the box. it was wierd lol.

Title: Re: table within a block
Post by: IchBin on September 27, 2005, 02:36:43 AM
hmm.... that didn't happen in mine with Firefox. What browser you using?
Title: Re: table within a block
Post by: Racenut on September 27, 2005, 02:37:19 AM
IE
Title: Re: table within a block
Post by: IchBin on September 27, 2005, 02:46:50 AM
hmmm.... Stilll didn't happen on mine with IE. Maybe put align="left" in your table and see if that helps. You could surround it with a <div align="left"> tag too and see if that helps.
Title: Re: table within a block
Post by: Racenut on September 27, 2005, 02:49:30 AM
Thanks, put it where? Could you post the origional code with the added tag please?  :idiot2:

thanks :)
Title: Re: table within a block
Post by: IchBin on September 27, 2005, 03:31:38 AM
It could look like this:
echo '
<div align="center">
<TABLE BORDER=1 BORDERCOLOR=BLUE>
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>
</div>';


Or this:

echo '
<TABLE BORDER=1 BORDERCOLOR=BLUE align="center">
<TR> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>';


Title: Re: table within a block
Post by: Racenut on September 27, 2005, 03:33:29 AM
Thanks man, Ill try them  :coolsmiley:
Title: Re: table within a block
Post by: Racenut on September 28, 2005, 04:20:22 AM
Ichbin,

Your code worked. However i realized i cant use it because i actually want to insert this table within an already existing html box. So the code is going to have to be html and not php. I am sure there is a way to do this, or it is a bug in TP.Either way, I give up LOL. Thanks for trying to help me.
Title: Re: table within a block
Post by: bloc on September 28, 2005, 09:43:05 AM
ah, I see now..use "javascript/html" type of block, not "html"  block. That last one is going through the smiley/bbc parser, so it adds all the spaces you have as real spaces - which normally html code doesn't. And use a width="100%" in the table..so it stretch all the way out in the block.

I will change the name to "bbc" instead of "html" from now on, to distinguish better between them.
Title: Re: table within a block
Post by: IchBin on September 28, 2005, 01:42:26 PM
^leave it to this guy to figure it out. You'd think it was his mod or something...:P
Title: Re: table within a block
Post by: carver on September 28, 2005, 01:55:32 PM
Yeah, Frustrating ain't it !  ;)

Title: Re: table within a block
Post by: Nokonium on September 28, 2005, 06:36:03 PM
Nah! Its a feature  ;)
Title: Re: table within a block
Post by: IchBin on September 28, 2005, 06:52:52 PM
lol Nokonium.

I beginning to wonder if Bloc is actually a machine. I see him up at all hours of the day/night updating this and that. Seems to me the man has no limit, so he has to be Alien or Machine. :)
Title: Re: table within a block
Post by: Nokonium on September 28, 2005, 07:02:05 PM
Quote from: IchBinâ„¢ on September 28, 2005, 06:52:52 PM
so he has to be Alien or Machine. :)


:-X
Title: Re: table within a block
Post by: Racenut on September 28, 2005, 10:01:28 PM
I havent tried it to see if it worked yet LOL  :2funny:
Title: Re: table within a block
Post by: Racenut on September 28, 2005, 10:17:21 PM
Ok, after looking at the other code in the block besides the table, it wasnt html it was bbc code. Changing it to the javascript/html box lined up the table sweet. however now instead of the images, i just have a bunch of bbc code around the table. Anyone have a gun?  :uglystupid2:
Title: Re: table within a block
Post by: iowamf on September 28, 2005, 10:35:45 PM
I copied it verbatim - I don't even know what it means but I liked the code so I copied it:

fuchsmail.com/main/index.php (http://fuchsmail.com/main/index.php)
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 12:06:03 AM
Yes that is correct. However there is more in the block than just the table. As I see it, the only option to get this to work right is for me to re-write the rest of the block in html rather than bbc code. unfortunatly, I know zero html. lets just end this thread before i lose my mind LOL  :idiot2:
Title: Re: table within a block
Post by: Moocat on September 29, 2005, 01:07:02 AM
i'll help you write it in html. what is the question?
Title: Re: table within a block
Post by: IchBin on September 29, 2005, 01:44:22 AM
Yes, post your needs Racenut. Most of us here know HTML, we just don't know PHP like Bloc.
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 01:58:11 AM
HA! I did it :laugh: :laugh: :laugh: :laugh:
Small feat for you guys, monumental for me.

Thanks for all who helped, and/or offered.
Title: Re: table within a block
Post by: Moocat on September 29, 2005, 02:16:34 AM
rofl good job!
Title: Re: table within a block
Post by: iowamf on September 29, 2005, 02:39:24 AM
looks great - can you post the code ... I want to put it on my site ;-)

Title: Re: table within a block
Post by: bloc on September 29, 2005, 01:12:44 PM
very nice. :)
Title: Re: table within a block
Post by: Nokonium on September 29, 2005, 01:52:23 PM
If you want to make a table and give it the same colours as your theme try something like this

<table class="titlebg" width="100%" align="center"><tr><td class="titlebg"><div align="center">The Table Title</div></td></tr>
<tr><td>
<table class="titlebg" width="100%" align="left">
<tr> <td class="windowbg">DUI Racing</td> <td class="windowbg2">5045</td> </tr>
<tr> <td class="windowbg">Gocandyman</td>  <td class="windowbg2">5040</td> </tr>
<tr> <td class="windowbg">Eviserator</td>  <td class="windowbg2">5035</td> </tr>
<tr> <td class="windowbg">Ralphie8</td>  <td class="windowbg2">5030</td> </tr>
<tr> <td class="windowbg">JAKS</td>  <td class="windowbg2">5025</td> </tr>
<tr> <td class="windowbg">Dino</td>  <td class="windowbg2">5020</td> </tr>
<tr> <td class="windowbg">Miller Jr</td>  <td class="windowbg2">5015</td> </tr>
<tr> <td class="windowbg">Tango444</td>  <td class="windowbg2">5010</td> </tr>
<tr> <td class="windowbg">WEEDY</td>  <td class="windowbg2">5005</td> </tr>
<tr> <td class="windowbg">C</td>  <td class="windowbg2">5000</td> </tr>
</table></td></tr></table>
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 08:29:40 PM
Thanks, Here is the code im using for the table.
<TABLE BORDER=1 WIDTH=100%
<TR BGCOLOR="#CDD4DD"> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>


As you can see it has 2 rows. What would the code be if I wanted to have a third row?

Like this:                1.         weedy            5000


thanks
Title: Re: table within a block
Post by: IchBin on September 29, 2005, 08:40:17 PM

<TABLE BORDER=1 WIDTH=100%
<TR BGCOLOR="#CDD4DD"> <TD>DUI Racing</TD> <TD>5045</TD> </TR>
<TR> <td>1</td> <TD>Gocandyman</TD>  <TD>5040</TD> </TR>
<TR> <td>2</td> <TD>Eviserator</TD>  <TD>5035</TD> </TR>
<TR> <td>3</td> <TD>Ralphie8</TD>  <TD>5030</TD> </TR>
<TR> <td>4</td> <TD>JAKS</TD>  <TD>5025</TD> </TR>
<TR> <td>5</td> <TD>Dino</TD>  <TD>5020</TD> </TR>
<TR> <td>6</td> <TD>Miller Jr</TD>  <TD>5015</TD> </TR>
<TR> <td>7</td> <TD>Tango444</TD>  <TD>5010</TD> </TR>
<TR> <td>8</td> <TD>WEEDY</TD>  <TD>5005</TD> </TR>
<TR> <td>9</td> <TD>C</TD>  <TD>5000</TD> </TR>
</TABLE>
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 09:14:02 PM
you da man :laugh:
Title: Re: table within a block
Post by: IchBin on September 29, 2005, 09:49:48 PM
Glad I could help.   ;D
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 09:56:19 PM
Ok, after re-writing the whole box (a learning experience) here is the final code i used, and attached is what the block looks like. Thanks to all as I used a little of what everyone offered.

Side note: Do you guys that code have any hair left on your heads? I have pulled most of what i had left out over the last couple days. :idiot2:

<br>
<center><u><b>Chase Standings</b></u></center>
<br>
<center><img src="http://www.nsro.net/images/logos/super_trucks_sm.gif"></center>
<br>
<TABLE BORDER=1 WIDTH=100%
<TR BGCOLOR="#CDD4DD"> ÂÃ, <td class="titlebg">1</td> <td class="titlebg">DUI Racing</td> <td class="titlebg">5045</td> </TR>
<TR> <td class="titlebg">2</td> <td class="titlebg">Gocandyman</td> ÂÃ, <td class="titlebg">5040</td> </TR>
<TR> <td class="titlebg">3</td> <td class="titlebg">Eviserator</td> ÂÃ, <td class="titlebg">5035</td> </TR>
<TR> <td class="titlebg">4</td> <td class="titlebg">Ralphie8</td> ÂÃ, <td class="titlebg">5030</td> </TR>
<TR> <td class="titlebg">5</td> <td class="titlebg">JAKS</td> ÂÃ, <td class="titlebg">5025</td> </TR>
<TR> <td class="titlebg">6</td> <td class="titlebg">Dino</td> ÂÃ, <td class="titlebg">5020</td> </TR>
<TR> <td class="titlebg">7</td> <td class="titlebg">Miller Jr.</td> ÂÃ, <td class="titlebg">5015</td> </TR>
<TR> <td class="titlebg">8</td> <td class="titlebg">Tango444</td> ÂÃ, <td class="titlebg">5010</td> </TR>
<TR> <td class="titlebg">9</td> <td class="titlebg">WEEDY</td> ÂÃ, <td class="titlebg">5005</td> </TR>
<TR> <td class="titlebg">10</td> <td class="titlebg">C</td> ÂÃ, <td class="titlebg">5000</td> </TR>
</TABLE>
<br> ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ, 

Next Race:
Texas
<br>
<br>
<a href="http://www.nsro.net/Super%20Truck%20Standings/rpmstandings.html">Complete Standings</a>
<br>
<br>
<a href="http://www.nsro.net/forum/index.php?topic=1763.0">Complete Schedule</a>


Title: Re: table within a block
Post by: IchBin on September 29, 2005, 10:58:26 PM
That looks nice Racenut. I'm glad you're learning some HTML. :) Although, I have some bad news for you. HTML is the easiest to learn lol. Wait until you start looking into PHP. :)
Title: Re: table within a block
Post by: gerrymo on September 29, 2005, 11:23:39 PM
Quote from: IchBinâââ,¬Å¾Ã,¢ on September 29, 2005, 10:58:26 PM
That looks nice Racenut. I'm glad you're learning some HTML. :) Although, I have some bad news for you. HTML is the easiest to learn lol. Wait until you start looking into PHP. :)

Tell me about it. I have messed up php so many times, I've given up counting. It is a very steep learning curve.
Title: Re: table within a block
Post by: iowamf on September 29, 2005, 11:30:59 PM
That is the most awesome use of tPortal I've seen - if you haven't seen the screen shot - you should.

Please keep posting code like that.

Regards
Title: Re: table within a block
Post by: Racenut on September 29, 2005, 11:38:51 PM
Quote from: iowamf on September 29, 2005, 11:30:59 PM
That is the most awesome use of tPortal I've seen - if you haven't seen the screen shot - you should.

Please keep posting code like that.

Regards


Well you can just look at what i have done with TP and If there is anything I have done you would like to know about, I would be glad to help. just remember im anÂÃ,  :idiot2:ÂÃ,  :2funny:

http://www.nsro.net/forum/index.php
Title: Re: table within a block
Post by: IchBin on September 29, 2005, 11:53:34 PM
Wow, on my big 19" CRT that site looks fantastic. Nice job Racenut!! The columns are nice and wide, with a great center section.
Title: Re: table within a block
Post by: Racenut on September 30, 2005, 12:06:36 AM
Quote from: IchBinÃ,â,,¢ on September 29, 2005, 11:53:34 PM
Wow, on my big 19" CRT that site looks fantastic. Nice job Racenut!! The columns are nice and wide, with a great center section.

Thank you. I just added the content. The credit for the custom theme and of course TP goes to Bloc. He has been a tremendous help to me. I could not have done it without him.
Title: Re: table within a block
Post by: domp on September 30, 2005, 02:01:20 AM
Wow that's cool Racenut,

It made me think of a block for arcade i always wanted...  When you look at the statistic pages for Arcade it has a lot of output. The block i'm thinking about would show the most populair game with player and the score in it.
Problem is I'm a noob with all the php :|

Any takers on this one ?
Title: Re: table within a block
Post by: Nokonium on September 30, 2005, 06:53:59 AM
That TP or yours is really impressive Racenut

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.nokonium.plus.com%2Fblack-cat%2Fpeeps%2Fhat3.gif&hash=3c24d1237c6400a2d0a95d51ffa40069e70932e2)
Title: Re: table within a block
Post by: bloc on September 30, 2005, 09:47:09 AM
I like the new new posts/no new posts icons. ;D

But I must say you used TP to the fullest, with all the special blocks for weather etc. Impressive. :)