Find services - Credit Card Consolidation - Myspace Layouts - Krakow poland hotels - Payday Loan

PDA

View Full Version : problem getting ads to display


mikeseo
Nov 29th 2004, 4:31 pm
I can't seem to get the ads to display on the site www.best-auto-warranty.com .

I put <!--#include virtual="/ad_network.php" --> on index.html
I added AddHandler server-parsed .html to htaccess for ssi with .html .
I uploaded ad_network_ads.txt and made writtable and it does have ad info written to it.
I uploaded ad_network.php .

Other ssi's do work on the site but the ad doesent seem to display on www.best-auto-warranty.com/index.html .

digitalpoint
Nov 29th 2004, 4:35 pm
In the ad_network.php file, change this line:
if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
to this:
if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml' || @$_SERVER['DOCUMENT_NAME'], -6) == '.html') {

mikeseo
Nov 30th 2004, 9:51 am
parse error, unexpected ','

digitalpoint
Nov 30th 2004, 10:13 am
Opps... that's what I get for copy/pasting. :)

if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml' || substr (@$_SERVER['DOCUMENT_NAME'], -5) == '.html') {

mikeseo
Nov 30th 2004, 10:23 am
the ad is showing now.

the url is http://www.best-auto-warranty.com/index.html but when I click validate it goes to http://www.best-auto-warranty.com/index.html/ and says no ads found. when you visit it with index.html/ it looks weird, like css isnt showing?

also when I click Validate/Calculate Weight Now with just www.best-auto-warranty.com as the url it says the site failed becuase the ad is not showing on other pages of the site. does the ad have to be on all pages? I was trying to make it just show on index.html for testing.

a389951l
Nov 30th 2004, 10:39 am
It needs to be all pages for the site to pass validation.

digitalpoint
Nov 30th 2004, 10:49 am
the ad is showing now.

the url is http://www.best-auto-warranty.com/index.html but when I click validate it goes to http://www.best-auto-warranty.com/index.html/ and says no ads found. when you visit it with index.html/ it looks weird, like css isnt showing?

also when I click Validate/Calculate Weight Now with just www.best-auto-warranty.com as the url it says the site failed becuase the ad is not showing on other pages of the site. does the ad have to be on all pages? I was trying to make it just show on index.html for testing.
Take the index.html out of your base URL.