Coinbase

Author Topic: ads not appearing on home page  (Read 4898 times)

0 Members and 1 Guest are viewing this topic.

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
ads not appearing on home page
« on: July 29, 2008, 08: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.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: ads not appearing on home page
« Reply #1 on: July 29, 2008, 09:06:43 pm »
Find:
Code: (Line 347) [Select]
<body>
Replace with:
Code: [Select]
<body>';
Find:
Code: (362) [Select]
<div align="center">
<img src="http://ufo-secret-files.net/UFO.jpg" align="center" alt="*" />
</div>';

Replace with:
Code: [Select]
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>';

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
Re: ads not appearing on home page
« Reply #2 on: July 29, 2008, 10:03:09 pm »
Thanks, but it didn't work. Here was the index.template that I edited.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: ads not appearing on home page
« Reply #3 on: July 29, 2008, 10:37:05 pm »
You added an extra echo statement.

Line 176. Remove:

Code: [Select]
echo '

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
Re: ads not appearing on home page
« Reply #4 on: July 29, 2008, 11:38:32 pm »
I tried that and it didn't work. my index.template attached.

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: ads not appearing on home page
« Reply #5 on: July 30, 2008, 09: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?

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
Re: ads not appearing on home page
« Reply #6 on: July 30, 2008, 01: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

Offline ccbtimewiz

  • Sr. Member
  • ****
  • Posts: 326
    • Dream Portal
Re: ads not appearing on home page
« Reply #7 on: July 30, 2008, 01:19:21 pm »
Find:

Code: [Select]
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:

Code: [Select]
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>';

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
Re: ads not appearing on home page
« Reply #8 on: July 30, 2008, 04: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?
« Last Edit: July 30, 2008, 05:33:20 pm by shadowravenhawk »

Offline shadowravenhawk

  • Newbie
  • *
  • Posts: 7
Re: ads not appearing on home page
« Reply #9 on: July 31, 2008, 06:47:08 pm »
Does anyone know the solution to this? index.template attached

SMF Ads Support Forum

Re: ads not appearing on home page
« Reply #9 on: July 31, 2008, 06:47:08 pm »
.

 

.