News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Towers outside of containing DIV?

Started by Adman, March 12, 2008, 04:40:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Adman

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:

//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:

//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:

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 :)