News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

double ads????

Started by tomsocal02, August 10, 2008, 03:55:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomsocal02

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

ccbtimewiz

Attach your index.template.php file..


ccbtimewiz

You didn't attach the file?

OkBluejays

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.


ccbtimewiz

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 '

OkBluejays

Made that change and still showing twice.

Ive also attached a screen shot of the other issue.

ccbtimewiz

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

OkBluejays

Here they are in the next two posts attached.
Thx

OkBluejays


ahennell

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.

bigguy

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.