SMF Ads Support Forum

Support => General Support => Topic started by: hzuleta on February 08, 2009, 06:46:52 PM

Title: Fixed Right Side Tower Ad for Extreme 6 Mod.
Post by: hzuleta on February 08, 2009, 06:46:52 PM
I was having trouble with the right side ad being outside of the table. As in a previous post that was deleted for some reason?

Anyway, I ended up fixing it. You don't place the code where the edit tells you to. Instead:
find
<div id="ustsag">
  <div id="ustsol">';


Replace with and add..
<div id="ustsag">
  <div id="ustsol">';
//Below the menu ads
   if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
   {
      $ads = show_indexAds();   
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);

      //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 leave the last "}" where it is.

Hopes this helps anyone? I'm an extreme newbie so I apologize if something looks weird...

(btw this is only the right side fix, as I doubt anyone would use the left side in this theme)