SMF Ads Support Forum

Support => Ad Support => Topic started by: rkpatel78 on August 25, 2008, 04:52:02 am

Title: Ad Management
Post by: rkpatel78 on August 25, 2008, 04:52:02 am
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 ....
Title: Re: Ad Management
Post by: nightwalker on August 26, 2008, 01:37:50 pm
question of where you install this mod i need it but i cant install
Title: Re: Ad Management
Post by: ccbtimewiz on August 26, 2008, 01:39:18 pm
You're using a theme other than the default theme-- have you made the appropriate edits in your template files?
Title: Re: Ad Management
Post by: rkpatel78 on August 26, 2008, 02:05:22 pm
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
Title: Re: Ad Management
Post by: rkpatel78 on August 26, 2008, 02:07:53 pm
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
Title: Re: Ad Management
Post by: toilatruong on August 30, 2008, 07:38:22 am
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