Coinbase

Author Topic: Towers outside of containing DIV?  (Read 2267 times)

0 Members and 1 Guest are viewing this topic.

Offline Adman

  • Newbie
  • *
  • Posts: 6
Towers outside of containing DIV?
« on: March 12, 2008, 03:40:38 pm »
Hi all,

Great mod. I've manually installed this on Babylon and it works great. However, as I have a fixed width forum I'm trying to get the towers outside my containing div but inside my main containing div.

I have an extra container around my forum so I can get the side towers in it but keep the fixed width I have. I still need to tweak the css but in index.template I'm doing this:

I've put this code under the beginning of that div:

Code: [Select]
//Side ads mod
if (function_exists"show_towerleftAds") && function_exists("show_towerrightAds"))
{
//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';
unset($ads);

//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}

And put this at the end:

Code: [Select]
//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds"))
{
$ads = show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td></tr></table>';
unset($ads);

//Close table for towerleft ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);
}

And the code that's left over I've left in it's original place:

Code: [Select]
if (function_exists("show_bottomAds"))

//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

But I get a parse error which is syntax related. What have I missed in my ignorance? :)

Many thanks for your time :)

SMF Ads Support Forum

Towers outside of containing DIV?
« on: March 12, 2008, 03:40:38 pm »
.