Can't get ads to display using ASP

Discussion in 'Co-op Advertising Network' started by xstream, Jan 30, 2005.

  1. #1
    I cannot understand how to get this to work and I'm embarrased :eek: to say I have a computer programming degree. I have created a links directory off of my asp directory (for testing). Used that as the site name on my account. Inside that directory I have the .htaccess file, the ad_network_ads.txt file (with write permissions) , ad_network.asp, and then I call the ads from index.asp

    When I run it at http://www.xstreamrealty.com/docs/asppages/links
    I see a white screen with no ads and no errors

    When I click on "View/Calculate Weight Now", I get:
    Ads not found on http://www.xstreamrealty.com/docs/asppages/links/

    I used the asp file that was put on this forum and my index.asp only has the following code

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file ="ad_network.asp" -->

    <html>
    <head>
    <title>ad test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>
    <%
    ads=ad_network
    response.write ads(0) & "<br>"
    response.write ads(1) & "<br>"
    %>
    </body>
    </html>​

    I have another question too. If I ever get this to work, will I really need to place it on ALL of my pages? I have a lot and they aren't all asp (some are just.htm). Will I be able to add an iframe on the .htm pages linking to this page?
     
    xstream, Jan 30, 2005 IP
  2. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you serving your pages from a windows or non-windows server?
     
    mopacfan, Jan 30, 2005 IP
  3. xstream

    xstream Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am using a windows shared web hosting server
     
    xstream, Jan 30, 2005 IP
  4. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok, then there is no .htaccess file. You just copy the ad_network.asp file to your server, create the ad_network.txt file, give it write permissions, set the path in the ad_network.asp to where ever you created the txt file and you should be good to go.
     
    mopacfan, Jan 30, 2005 IP
  5. xstream

    xstream Guest

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That helped a lot, thank you.

    Unfortunately, I'm not out of the woods yet. I see something now, but not ads. Instead, I get this error for each ad to display:
    ad_network.php file needs updating - in ASP

    I saw the same question posted in this forum but the answer was not revealed. What does this error mean?
     
    xstream, Jan 30, 2005 IP
  6. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok, change the query string variable from "a" to "b". That should solve the problem. It sounds like your ad code is not completely up to date.
     
    mopacfan, Feb 3, 2005 IP