SMF Ads Support Forum

Support => General Support => Topic started by: tomsocal02 on August 10, 2008, 03:55:23 PM

Title: double ads????
Post by: tomsocal02 on August 10, 2008, 03:55:23 PM
i just installed Version 2.3 and ui now have 2 ads showing. one on top of the other. what can i do to change this?
thanks
Title: Re: double ads????
Post by: ccbtimewiz on August 10, 2008, 09:23:30 PM
Attach your index.template.php file..
Title: Re: double ads????
Post by: tomsocal02 on August 10, 2008, 09:44:03 PM
thanks
Title: Re: double ads????
Post by: ccbtimewiz on August 20, 2008, 12:44:45 PM
You didn't attach the file?
Title: Re: double ads????
Post by: OkBluejays on August 25, 2008, 08:26:56 PM
I am getting same thing. Managed to remove the double the showed up a the top of the index but now below the menu double still there. Also when I go to managed ads in admin area all the types I setup show 3 times.

Title: Re: double ads????
Post by: ccbtimewiz on August 26, 2008, 12:46:18 PM
Find:
//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 '

';

//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:
//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 '
Title: Re: double ads????
Post by: OkBluejays on August 26, 2008, 01:20:32 PM
Made that change and still showing twice.

Ive also attached a screen shot of the other issue.
Title: Re: double ads????
Post by: ccbtimewiz on August 26, 2008, 01:30:23 PM
Can you attach the follow template files?

BoardIndex.template.php
Display.template.php
Post.template.php
index.template.php
MessageIndex.template.php

^ Found in ./Themes/default/

Subs.php <= Found in ./Sources
Title: Re: double ads????
Post by: OkBluejays on August 26, 2008, 08:07:14 PM
Here they are in the next two posts attached.
Thx
Title: Re: double ads????
Post by: OkBluejays on August 26, 2008, 08:07:41 PM
the rest
Title: Re: double ads????
Post by: ahennell on September 03, 2008, 06:04:15 AM
ok I'm getting double ads too - I've checked all the files you say (not that I'm comfortable looking at these files) and I can't see any double code.
Title: Re: double ads????
Post by: bigguy on September 04, 2008, 09:02:20 PM
There will be double code in there somewhere. This is why things are showing up double. Check to see if there is double code in the index.php file.