Coinbase

Author Topic: Fixed Right Side Tower Ad for Extreme 6 Mod.  (Read 1931 times)

0 Members and 1 Guest are viewing this topic.

Offline hzuleta

  • Newbie
  • *
  • Posts: 2
    • Email
Fixed Right Side Tower Ad for Extreme 6 Mod.
« 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
Code: [Select]
<div id="ustsag">
  <div id="ustsol">';

Replace with and add..
Code: [Select]
<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)


SMF Ads Support Forum

Fixed Right Side Tower Ad for Extreme 6 Mod.
« on: February 08, 2009, 06:46:52 pm »
.