Coinbase

Author Topic: Classic Theme trouble with template_menu(); code  (Read 5092 times)

0 Members and 1 Guest are viewing this topic.

Offline anomolee

  • Newbie
  • *
  • Posts: 1
    • Email
Classic Theme trouble with template_menu(); code
« on: July 30, 2010, 09:20:36 am »
Hi,
I'm using the Classic Theme and have all templates edited to run the ad mod but the indextemplate.php is giving me trouble.  When it replace the code for " template_menu(); " everything gets shifted downward below the ads.  Do I need to make a mod to this code to work in the Classic Theme?
Thanks
Here is the mod I need to use below.

template_menu();

   //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);
   }

SMF Ads Support Forum

Classic Theme trouble with template_menu(); code
« on: July 30, 2010, 09:20:36 am »
.

 

.