SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: night_warrior on October 01, 2008, 11:34:49 AM

Title: AD Mod Help With SilentWave Theme
Post by: night_warrior on October 01, 2008, 11:34:49 AM
Hi, Im using a SilentWave Theme
And i want to Install The SMF Ads Mod

My website link is here:
http://www.filmdepom.com

But when i try to install this mod it doesn't work on my custom theme, Any Help? 

Thanks for the Help,
Title: Re: AD Mod Help With SilentWave Theme
Post by: ccbtimewiz on October 14, 2008, 03:06:49 PM
This is because the Package Manager only edits the default theme template files.

If you're using a custom theme, you need to perform manual edits.

In your index.template.php;

Find:
<body>

Replace with:
<body>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
   $ads = show_topofpageAds();
   if(!empty($ads))
      if($ads['type']==0)
         echo $ads['content'];
      else
         eval($ads['content']);
     unset($ads);
}

echo '


Title: Re: AD Mod Help With SilentWave Theme
Post by: huguito on February 02, 2009, 10:07:30 PM
please give some instructions for newbies
I have totally no idea about what I should do  :'(
Title: Re: AD Mod Help With SilentWave Theme
Post by: Ega on February 22, 2009, 12:31:06 PM
Quote from: ccbtimewiz on October 14, 2008, 03:06:49 PM
This is because the Package Manager only edits the default theme template files.

If you're using a custom theme, you need to perform manual edits.

In your index.template.php;

Find:
<body>

Replace with:
<body>';

//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
   $ads = show_topofpageAds();
   if(!empty($ads))
      if($ads['type']==0)
         echo $ads['content'];
      else
         eval($ads['content']);
     unset($ads);
}

echo '




Unfortunately this is not enough... :(
Title: Re: AD Mod Help With SilentWave Theme
Post by: ccbtimewiz on February 22, 2009, 12:49:13 PM
These were the instructions for night_warrior, as s/he placed code already in and was missing certain parts.

If you want further instructions, you should refer to my thread about it?
Title: Re: AD Mod Help With SilentWave Theme
Post by: Ega on February 22, 2009, 12:58:42 PM
Quote from: ccbtimewiz on February 22, 2009, 12:49:13 PM
These were the instructions for night_warrior, as s/he placed code already in and was missing certain parts.

If you want further instructions, you should refer to my thread about it?

I use the same theme, I have the same problem...