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.

AdNetwork ASP Code

Discussion in 'Co-op Advertising Network' started by Cyber-SEO, Dec 28, 2004.

  1. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #41
    The error shows that it is looking for the ad network text file in your forum folder, not the files folder. Try changing the variable ad_file to be the same path as you use for your databases.
     
    stupot, Jan 9, 2005 IP
  2. rodolphe

    rodolphe Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #42
    It is working! Thank you :)
     
    rodolphe, Jan 9, 2005 IP
  3. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #43

    Well... I am having this problem on some of my websites as well.. Along with a few other random problems. I am not sure what is causing this. The weird thing is, I had it working fine for a little while then I got error alerts in my email so now I had to pull the ads off entirely because I cant get them to work properly.

    Any suggestions?

    Thanks!
     
    Design1, Jan 10, 2005 IP
  4. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #44
    LaCabra, Jan 10, 2005 IP
  5. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #45
    Thanks for your response! I grabbed that file and replaced it just in case, although im positive it was the same one I used before.

    Someone earlier had posted that they had to dim a line, and I noticed earlier when I had the new page on my site that after I viewed the main page then viewed a second page I got the error 'name redefined' for the dim ad_params so when I dim that i get the error:

    ------------------------------------------------
    Microsoft VBScript runtime error '800a0009'

    Subscript out of range: '[number: 0]'

    *website location info is here*../ad_network.asp, line 39
    ------------------------------------------------


    Otherwise on my testing page with just the ad code this is the error I get:

    -------------------------------------------------
    Microsoft VBScript runtime error '800a000d'

    Type mismatch: 'cdate'

    *website location info is here*../ad_network.asp, line 44

    -------------------------------------------------


    One strange thing I did notice was I first went to the site and the error was:
    Subscript out of range: '[number: 1]'

    Then, after i refreshed the page and ever since, it has been:
    Subscript out of range: '[number: 0]'


    I tried deleting the txt file, rebooting the web server, clearing my cache, trying on another computer, etc.

    Thanks for any help, it is greatly appreciated!
     
    Design1, Jan 10, 2005 IP
  6. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #46
    Design, try to PM/Email stupot he may be able to help as he posted the file. There were small issues with previous releases but I'm running the latest without a prob.
    Sorry and good luck.
    :)
    Cheers
    Frank
     
    LaCabra, Jan 10, 2005 IP
  7. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #47
    Hi all, the latest version of the ASP code, if you find any errors please PM me with example code and I will fix and repost.
     
    stupot, Jan 10, 2005 IP
  8. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #48
    Actually, the error simply referenced ad_network.asp in the forum folder (line 21). But, adding a trailing slash to the path no longer generates the permission error.

    However, I now have a new error.

    WinHttp.WinHttpRequest error '80072ee7'

    The server name or address could not be resolved

    /forum/ad_network.asp, line 124 ​

    The test page is: http://www.audience-response-rentals.com/forum/test.asp

    Again, any clues on resolving this are appreciated.
     
    longcall911, Jan 10, 2005 IP
  9. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #49
    This looks like it maybe a problem with your host not allowing domain resolution or communications from your server hence the call to ads.digitalpoint.com fails.
     
    stupot, Jan 10, 2005 IP
  10. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #50
    OK thanks. I suspect this is true. I will try another site of mine, on a different service. Thanks.
     
    longcall911, Jan 11, 2005 IP
  11. LaCabra

    LaCabra Goats R Us

    Messages:
    1,954
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    0
    #51
    Stupot,
    You've published the latest version of the ASP code. I was just wondering what the DP.ASP file is for? I have neve seen it or used it and my ads are working fine.
    Thanks and cheers
    Frank
     
    LaCabra, Jan 11, 2005 IP
  12. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #52
    I am still having the same problem as I was before.. with the new version and following the format suggested by the dp.asp page.

    Any suggestions?
    :confused: :confused:


    Thanks!
     
    Design1, Jan 11, 2005 IP
  13. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #53
    I'm trying a different forum now, on a different server. But, I got the same cdate error as Design1.

    Type mismatch: 'cdate'

    /ad_network.asp, line 44 ​


    Line 44 is: LinksDate = cdate(spParam(0))

    I know a bit of asp, but I don't know the ad network parameters in order to trouble shoot.

    /*tom*/
     
    longcall911, Jan 11, 2005 IP
  14. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #54
    Ahh! Well at least I am not the only one. Here is my status.. I thought I had it fixed on all of my site, then I noticed as I kept browsing through the different pages of my site to look it over, the error started happening. I deleted the txt file and browsed the site again for awhile just fine till I got the error again!

    It almost looks like it has something to do with displaying certain ads because if i delete the page and refresh the page over and over it works fine then it will just stop with that same error:

    Microsoft VBScript runtime error '800a000d'

    Type mismatch: 'CDate'

    WWW.MYSITE.COM\../ad_network.asp, line 44


    This does not happen on all of my websites I have this running on, to my knowledge. They are all coded about the same, Im not sure why this is happening on some and not the others.

    Thanks for any help!
     
    Design1, Jan 12, 2005 IP
  15. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #55
    Try this one.
     
    stupot, Jan 12, 2005 IP
  16. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #56
    This version now displays an ad ! :)

    However, ads(1) is the only variable that will display.

    ads(0,2,3,4) do not display. They are in fact zero length strings.

    I tested against IsEmpty and IsNull which returned false.

    But, ads(0) = "" returns true.

    Getting close. . .
     
    longcall911, Jan 12, 2005 IP
  17. stupot

    stupot Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #57
    hmm, strange anyone else having this problem? I have tested it and the only time i can reproduce what is happening to you is when the ad_network_ads.txt file cannot be written to, try making sure that you have write permissions set in the root folder.
     
    stupot, Jan 13, 2005 IP
  18. Design1

    Design1 Active Member

    Messages:
    388
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    78
    #58
    All problems are fixed for me! All of my sites have it running perfect. Thanks!
     
    Design1, Jan 13, 2005 IP
  19. longcall911

    longcall911 Peon

    Messages:
    1,672
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    0
    #59
    Although my forum dbase still works, there is definitely a server config problem. My reseller account uses virtual hosts and the hosting company constantly screws up the path. Using the cpanel admin interface, it won't even display a directory structure.

    Once that has been cleared I'll see how things are. Many thanks stupot.
     
    longcall911, Jan 13, 2005 IP
  20. asamuel

    asamuel Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #60
    I am a little stumped... I have dowloaded stupots new ad_network.asp file and dp.asp file I have replaced the old ad_networ.asp and ad_network_ads.txt file and all the ads are displaying fine. Yet my site will not validate, any ideas??
     
    asamuel, Jan 15, 2005 IP