Coinbase

Author Topic: AD Mod Help With SilentWave Theme  (Read 4265 times)

0 Members and 1 Guest are viewing this topic.

Offline night_warrior

  • Newbie
  • *
  • Posts: 1
    • Email
AD Mod Help With SilentWave Theme
« on: October 01, 2008, 10: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,

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: AD Mod Help With SilentWave Theme
« Reply #1 on: October 14, 2008, 02: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:
Code: [Select]
<body>
Replace with:
Code: [Select]
<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 '


Offline huguito

  • Newbie
  • *
  • Posts: 2
Re: AD Mod Help With SilentWave Theme
« Reply #2 on: February 02, 2009, 10:07:30 pm »
please give some instructions for newbies
I have totally no idea about what I should do  :'(

Offline Ega

  • Newbie
  • *
  • Posts: 2
Re: AD Mod Help With SilentWave Theme
« Reply #3 on: February 22, 2009, 12:31:06 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:
Code: [Select]
<body>
Replace with:
Code: [Select]
<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... :(

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: AD Mod Help With SilentWave Theme
« Reply #4 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?

Offline Ega

  • Newbie
  • *
  • Posts: 2
Re: AD Mod Help With SilentWave Theme
« Reply #5 on: February 22, 2009, 12:58:42 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...

SMF Ads Support Forum

Re: AD Mod Help With SilentWave Theme
« Reply #5 on: February 22, 2009, 12:58:42 pm »
.

 

.