SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: shadowravenhawk on July 29, 2008, 09:53:52 PM

Title: ads not appearing on home page
Post by: shadowravenhawk on July 29, 2008, 09:53:52 PM
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.
Title: Re: ads not appearing on home page
Post by: ccbtimewiz on July 29, 2008, 10:06:43 PM
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>';

Title: Re: ads not appearing on home page
Post by: shadowravenhawk on July 29, 2008, 11:03:09 PM
Thanks, but it didn't work. Here was the index.template that I edited.
Title: Re: ads not appearing on home page
Post by: ccbtimewiz on July 29, 2008, 11:37:05 PM
You added an extra echo statement.

Line 176. Remove:

echo '
Title: Re: ads not appearing on home page
Post by: shadowravenhawk on July 30, 2008, 12:38:32 AM
I tried that and it didn't work. my index.template attached.
Title: Re: ads not appearing on home page
Post by: ccbtimewiz on July 30, 2008, 10:18:58 AM
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?
Title: Re: ads not appearing on home page
Post by: shadowravenhawk on July 30, 2008, 02:02:37 PM
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
Title: Re: ads not appearing on home page
Post by: ccbtimewiz on July 30, 2008, 02:19:21 PM
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>';
Title: Re: ads not appearing on home page
Post by: shadowravenhawk on July 30, 2008, 05:29:52 PM
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?
Title: Re: ads not appearing on home page
Post by: shadowravenhawk on July 31, 2008, 07:47:08 PM
Does anyone know the solution to this? index.template attached