The ads aren't appearing on the home page but I got two banners to appear. My site is www.ufo-secret-files.com. My index.template for my default theme is attached. I am using the Alien Nation theme.
Find:
<body>
Replace with:
<body>';
Find:
<div align="center">
<img src="http://ufo-secret-files.net/UFO.jpg" align="center" alt="*" />
</div>';
Replace with:
if( function_exists("show_topofpageAds") ) {
$ads = show_topofpageAds();
if( !empty($ads))
if( $ads['type'] == 0 )
echo $ads['content'];
else
eval( $ads['content'] );
unset($ads); }
echo '
<div align="center">
<img src="http://ufo-secret-files.net/UFO.jpg" align="center" alt="*" />
</div>';
Thanks, but it didn't work. Here was the index.template that I edited.
You added an extra echo statement.
Line 176. Remove:
echo '
I tried that and it didn't work. my index.template attached.
That looks right. Are you inserting the ad-code into the ad-management panel in your admin panel?
If so, how are you coding it?
Yes, the Google java script is in the ad mod. It is appearing on every page except the home page. visit my site: www.ufo-secret-files.net
Find:
echo '
<div align="center">
<img src="http://ufo-secret-files.net/UFO.jpg" align="center" alt="*" />
</div>';
echo '<div align="center">
<a href="http://ufo-secret-files.net/9.html"><img src="http://ufo-secret-files.net/bannerad.jpg" align="center" alt="banner" /></a>
</div>';
Replace with:
echo '
<div align="center">
<img src="http://ufo-secret-files.net/UFO.jpg" align="center" alt="*" />';
echo '<br />';
echo '<a href="http://ufo-secret-files.net/9.html"><img src="http://ufo-secret-files.net/bannerad.jpg" align="center" alt="banner" /></a>
</div>';
It worked but they are in the wrong spot. I want them to appear to the right of the log in area and at the bottom of the page. As they would if I had the ad mod on the default theme. You can see my site at: www.ufo-secret-files.net
Also, in the future if I want to change one of the banners on top do I make the changes to the default theme, Alien Nation theme, or both?
Does anyone know the solution to this? index.template attached