SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: kristien on August 28, 2007, 03:24:59 am

Title: Ad not shows up when not logged in
Post by: kristien on August 28, 2007, 03:24:59 am
Hellow,

I have added this code to index.template.php but the adds only shows up when i am logged in.

Tests concluded that $ads is empty when i am not logged in.
What can i do about it ?

I use the theme scribbles.

Code: [Select]

if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
//Show ads on the bottom of the page
$ads = show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
   echo '
....