SMF Ads Support Forum

Support => General Support => Topic started by: Tingo on December 07, 2008, 12:02:50 pm

Title: Same Ads showing Up Twice, under the same board
Post by: Tingo on December 07, 2008, 12:02:50 pm
Hi :)

Could some one help me please?

I added a New Ad and in the "Edit Ad's" it show the same ad twice on my SMF forum

The setting I used are     


Help Which boards should this ad display in "1"
    
Help Display ads within posts        "4"


Help Display ads after categories  "6"


Help Display ads on every page right below the menu "ticked on"

Help Display ads on board index "ticked on"

Thank you for your help

Kind Regards

Charles  :)


 
Title: Re: Same Ads showing Up Twice, under the same board
Post by: ccbtimewiz on December 09, 2008, 08:47:36 pm
The mod most likely installed twice. Can you attach your index.template.php file from your default theme so I can be sure?
Title: Re: Same Ads showing Up Twice, under the same board
Post by: Tingo on December 11, 2008, 06:03:30 pm
Hi  :)

Thank you for great help, That sound like what the problem will be, would you let me know please how do I recorrect it? Thank you for your brilliant help.

Kind Regards 

Charles :)
Title: Re: Same Ads showing Up Twice, under the same board
Post by: ccbtimewiz on December 11, 2008, 08:36:11 pm
This template oddly enough is broken.

Find:

Code: [Select]
echo '
</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '
';

Replace with:
Code: [Select]
echo '
</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

Use the attached.
Title: Re: Same Ads showing Up Twice, under the same board
Post by: Tingo on December 13, 2008, 12:55:28 pm
Hi   
Thank you for your great help. I up loaded the Themes.template.php  I still got two ad's show up. Could you please help?

Kind Regards

Charles :)           
Title: Re: Same Ads showing Up Twice, under the same board
Post by: dropbop on May 30, 2009, 06:41:52 pm
Hey guys, I am having the same problem as the OP

Im using smf 1.1.9

I have installed the ad management mod loads of times on 1.1.8 and it woked fine every time, but on 1.1.9 it seems to add two ads.

It is not just on the front end but when you create an ad in Ad Management it will automaticly create an identicle second ad.

Any Ideas? Becuase the site is an affiliate site and ads are the most important part of it.

Cheers guys

DB

Title: Re: Same Ads showing Up Twice, under the same board
Post by: perfor23 on September 21, 2009, 01:08:36 pm
fixed it easy as pie. email at eric@ performance-craft.com and i will explain