TinyPortal

Development => Resources => Topic started by: Riley Harper on June 24, 2008, 12:45:46 PM

Title: How do I get a table to display in a block?
Post by: Riley Harper on June 24, 2008, 12:45:46 PM
I want to put several different information table on different boards on my site and I've tried putting the table code in both the html+bcc and the php+html but neither worked for me. All it did was show the code to the table instead of just showing the table itself. I'm not sure if I'm supposed to do something special to the code or what but I would really like this to be possible. Please help, thank you.  :)

-Riley
Title: Re: How do I get a table to display in a block?
Post by: G6Cad on June 24, 2008, 01:05:09 PM
www.google.com

Search around for diffrent tutorials on html or and php and you will have a ton of information. Both very easy and also very complext ones.

There are really no special things you need to add when you use the TP blocks of any kind, they are made to render the code you add so a bit of reading on the tutorials you can find through google or even in our block code and snippets board will set you off in the right direction.
Title: Re: How do I get a table to display in a block?
Post by: Riley Harper on June 24, 2008, 01:13:56 PM
Well I have a table codes and such I want to use they've already been built, I just don't know what kind of block to put them in so they will show up properly, I tired putting them in both the HTML + BBC type block and the scriptbox block but they both just showed the code not the actual table. Sorry I guess I should have been more clear.
Title: Re: How do I get a table to display in a block?
Post by: G6Cad on June 24, 2008, 01:23:25 PM
Try a scriptblock
Title: Re: How do I get a table to display in a block?
Post by: Riley Harper on June 24, 2008, 01:29:44 PM
OK, I did some tweaking and it's showing up now but it still isn't prefect, it's displaying in a rather funny way but I think I can take it from here. Thank you very much for your help.  ;D
Title: Re: How do I get a table to display in a block?
Post by: Colyn on June 26, 2008, 07:52:47 AM
I have a similiar problem ... it appears as if the TP Code Editor is adding stuff when you hits SAVE.

Please look here ...

http://forum.linkafrica.net

That image is entered into a single cell table but a lot of padding is taking place after the save. If you look at the page source the non breaking spaces is indicated.

If I only enter the html without the table the EDITOR adds "/" before the closing ">" like this "/>" and that displays at the bottom of the picture.

Any ideas please.
Title: Re: How do I get a table to display in a block?
Post by: Ianedres on June 26, 2008, 07:56:34 AM
I couldn't view the link you provided; however, I had a similar problem once and edited the CSS for the theme to remove the padding from the table elements...
Title: Re: How do I get a table to display in a block?
Post by: Colyn on June 26, 2008, 07:58:25 AM
Thanks ... I have changed it from a "html+BB" to "scrptblock" and now it works.

Sorry for the trouble.
Title: Re: How do I get a table to display in a block?
Post by: Colyn on June 26, 2008, 08:02:46 AM
Sorry I have messed the spelling up in the link ... it is fixed.

Here http://forum.linkafrica.net