News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Ad Management

Started by rkpatel78, August 25, 2008, 05:52:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rkpatel78

I am using Ad Management for my site that has following version of applications.
SMF 1.1.5
TinyPortal v0.9.8 © Bloc
Theme is from DzinerStudio.com (DS-Natural)

--- I am ading one ad, it is appering three ....... in the AD Management Tab

Please help me ....

nightwalker

question of where you install this mod i need it but i cant install

ccbtimewiz

You're using a theme other than the default theme-- have you made the appropriate edits in your template files?

rkpatel78

Please find the attached details of the code i have ... i have done the changes to show the add on below the main new but it is not working

please help

rkpatel78

index.template then....
1.)Find:

Code:
}

function template_main_below()
{
   global $context, $settings, $options, $scripturl, $txt;
2.)Before that , add:

Code:
   //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);
   }
3.)Find:

Code:
   // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
4.)Before that, add:


Code:
   //Close table for towerright ads
   if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
   {
      $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);

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

Just like other theme  it can only display some ad position ... and they ar:
Below Menu, Tower Right & Tower Left


-----It is not displaying below menu ... can any one help me please

toilatruong

Quote from: nightwalker on August 26, 2008, 02:37:50 PM
question of where you install this mod i need it but i cant install
Mee too.

"You cannot download or install new packages because the Packages directory or one of the files in it are not writable! "


Pls help!

Thanks