News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

AD Mod Help With SilentWave Theme

Started by night_warrior, October 01, 2008, 11:34:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

night_warrior

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,

ccbtimewiz

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 '



huguito

please give some instructions for newbies
I have totally no idea about what I should do  :'(

Ega

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... :(

ccbtimewiz

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?

Ega

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...