Coinbase

Author Topic: Ad Management  (Read 4506 times)

0 Members and 1 Guest are viewing this topic.

Offline rkpatel78

  • Newbie
  • *
  • Posts: 3
    • Email
Ad Management
« 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 ....

Offline nightwalker

  • Newbie
  • *
  • Posts: 1
    • Email
Re: Ad Management
« Reply #1 on: August 26, 2008, 01:37:50 pm »
question of where you install this mod i need it but i cant install

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: Ad Management
« Reply #2 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?

Offline rkpatel78

  • Newbie
  • *
  • Posts: 3
    • Email
Re: Ad Management
« Reply #3 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

Offline rkpatel78

  • Newbie
  • *
  • Posts: 3
    • Email
Re: Ad Management
« Reply #4 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

Offline toilatruong

  • Newbie
  • *
  • Posts: 2
Re: Ad Management
« Reply #5 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

SMF Ads Support Forum

Re: Ad Management
« Reply #5 on: August 30, 2008, 07:38:22 am »
.

 

.