News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

Classic Theme trouble with template_menu(); code

Started by anomolee, July 30, 2010, 10:20:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

anomolee

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