News:

Help keep this project going by donating or buying adseller pro

Main Menu
Coinbase

ads not appearing on home page

Started by shadowravenhawk, July 29, 2008, 09:53:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shadowravenhawk

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.

ccbtimewiz

Find:
Code (Line 347) Select
<body>

Replace with:
<body>';

Find:
Code (362) Select
<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>';


shadowravenhawk

Thanks, but it didn't work. Here was the index.template that I edited.

ccbtimewiz

You added an extra echo statement.

Line 176. Remove:

echo '

shadowravenhawk

I tried that and it didn't work. my index.template attached.

ccbtimewiz

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?

shadowravenhawk

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

ccbtimewiz

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

shadowravenhawk

#8
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?

shadowravenhawk

Does anyone know the solution to this? index.template attached