News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Ad not shows up when not logged in

Started by kristien, August 28, 2007, 04:24:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kristien

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.


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 '
....