1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

problem getting ads to display

Discussion in 'Co-op Advertising Network' started by mikeseo, Nov 29, 2004.

  1. #1
    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 .
     
    mikeseo, Nov 29, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    In the ad_network.php file, change this line:
    if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
    PHP:
    to this:
    if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml' || @$_SERVER['DOCUMENT_NAME'], -6) == '.html') {
    PHP:
     
    digitalpoint, Nov 29, 2004 IP
  3. mikeseo

    mikeseo Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    parse error, unexpected ','
     
    mikeseo, Nov 30, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Opps... that's what I get for copy/pasting. :)

    if (substr (@$_SERVER['DOCUMENT_NAME'], -6) == '.shtml' || substr (@$_SERVER['DOCUMENT_NAME'], -5) == '.html') {
    PHP:
     
    digitalpoint, Nov 30, 2004 IP
  5. mikeseo

    mikeseo Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    mikeseo, Nov 30, 2004 IP
  6. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #6
    It needs to be all pages for the site to pass validation.
     
    a389951l, Nov 30, 2004 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    Take the index.html out of your base URL.
     
    digitalpoint, Nov 30, 2004 IP