Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: wing on July 24, 2005, 11:18:36 PM

Title: Table help?
Post by: wing on July 24, 2005, 11:18:36 PM
Hi, trying to add some banners ads on the side of my forum, I was just going to ad the scripts in the table but cannot for the life of me figure out how this works.

I set the table width to 85% in the index.template.php and from the attached pic you can see, where I want to put my ad.

If I add a row or table or column stuff goes on top, or below or whatever but not on the side :(

Can someone help?  Thanks!

(http://s2ki.iroque.com/wing/sidebar.jpg)
Title: Re: Table help?
Post by: 061 on July 25, 2005, 09:18:09 AM
open
index.template.php

around line 294 u will find this

Quotefunction template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '</td>

just after that add
Quote<td width="10%" align="left" valign="top">ur banner code here
</td>
Title: Re: Table help?
Post by: wing on July 25, 2005, 09:38:14 AM
Thanks, I also figured out another way to do it.

I set my table to 100%, then I put another table inside the table, making that section 3 tables essential.  Your way is cleaner though.

Thanks.