How is this done?
I am runining SMF 2.0RC1-1 with SMFAds 2.3.5
I also have eNinja - Custom Pages mod 1.0.12
I have ads that show up at both top and bottom of the site everywhere on the site.
in one of my custom pages (http://www.blabla.ca/index.php?action=page;sa=advertisers) I dont want the top and bottom ads to show.
How can this be done?
Attach your index.template.php file.
Here it is
Find:
//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);
}
Replace with:
//Display ads on the top of the page
if (function_exists("show_topofpageAds") && @$_GET['action'] !== 'page')
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
It would be nice to have this as a setting in the Ads mod...
Do you think you will ever do this?