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.

ASP Ad Network Port

Discussion in 'Co-op Advertising Network' started by l0cke, Sep 20, 2004.

  1. #1
    For those who are interested, here is an ASP classic port of the Coop Advertising Network.
    1. Download the attached file, rename it to ad_network.asp and upload it to the root directory of your site.

    2. Create a blank file named ad_network_ads.txt and put it in the root directory of your site as well. The 'Internet Guest Account' or whatever it may be on your server must have write permissions to this file.

    3. Add the following code in your ASP files where you want the ads to show:
      <!--#include virtual="/ad_network.asp"-->
      <%=ad_network%>
      Code (markup):
    That should do it. You can add formatting tags around the '<%=ad_network%>' output if you wish. Also, this code is currently set to display text links only. To display banners change the following line in ad_network.asp
    Const ad_url = "http://ads.digitalpoint.com/network.php?type=link"
    Code (markup):
    to
    Const ad_url = "http://ads.digitalpoint.com/network.php"
    Code (markup):
    To add a background color to the banners change the link to
    Const ad_url = "http://ads.digitalpoint.com/network.php?color=FFFFFF"
    Code (markup):
    where FFFFFF is the background color (in hex) you wish to use.

    Feel free to post any questions you may have.
     

    Attached Files:

    l0cke, Sep 20, 2004 IP
    payoutwindow likes this.
  2. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm trying to get this working but I'm having some difficulty getting it going.
    Microsoft VBScript runtime  error '800a000d'
    
    Type mismatch: 'ads(...)'
    
    /library/ad-coop.asp, line 22
    
    Code (markup):
    Line 22 is:
    If ((UBound(ads) < 101) Or (DateAdd("h", 1, ads(0)) < Now())) Then
    
    Code (markup):
    the browser acct has wrx security. Any suggestions?
     
    mopacfan, Oct 15, 2004 IP
  3. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think I found it. It seems the file was not empty. I found a LF & CR. I deleted the file and created a new one.

    Now I get
    msxml3.dll error '800c0005'
    
    The system cannot locate the resource specified.
    
    /library/ad-coop.asp, line 14
    
    Code (markup):
     
    mopacfan, Oct 15, 2004 IP
  4. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Got it working now. Turned out my firewall was blocking the communicaitons for the msxml object. doh!
     
    mopacfan, Oct 15, 2004 IP
  5. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #5
    Good to hear. I am not actually running this live myself so please let me know if you encounter any issues.
     
    l0cke, Oct 15, 2004 IP
  6. mopacfan

    mopacfan Peon

    Messages:
    3,273
    Likes Received:
    164
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's working great now. All I have left is to get validated. The auto validator did not work :(
     
    mopacfan, Oct 15, 2004 IP
  7. l0cke

    l0cke Active Member

    Messages:
    178
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    73
    #7
    I check some of your sponsorinfo.asp pages and you are getting a type mismatch error. That's probably why auto-validate didn't work
     
    l0cke, Oct 15, 2004 IP
  8. jvmills

    jvmills Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    just to say a big thanks to Locke, I now have the asp script running on my site.

    Gracias
     
    jvmills, Nov 19, 2004 IP
  9. asamuel

    asamuel Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I have followed your instructions above and have the text working on my site in the fotter however I am having trouble getting any ccs tags to change the colour of the text. Can some one enlighten me on this issue as I am ready to go apart from that!!!

    PM me for site
     
    asamuel, Nov 22, 2004 IP
  10. Zinho

    Zinho Peon

    Messages:
    284
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    An enhanced ASP version has been coded and should be tested:

    http://forums.digitalpoint.com/showthread.php?p=61054#post61054
     
    Zinho, Dec 2, 2004 IP
  11. optwizard

    optwizard Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I installed script and got this

    ad_network.php file needs updating

    what should I do
     
    optwizard, Mar 23, 2005 IP
  12. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    How did you make this change?
    I am using ISA server, so would need to know the change you made in hopes of finding the equivelent in ISA.
     
    michail1, Apr 16, 2005 IP
  13. Perrow

    Perrow Well-Known Member

    Messages:
    1,306
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    140
    #13
    Try this one, here.
     
    Perrow, Apr 16, 2005 IP
  14. michail1

    michail1 Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Perrow,
    I have tried that one as well.
    Ads work perfect on the site(s) as have been for the last year, but still no validation. Shawn says my IP isn't banned.
    Error is:
    Ads not found on http://www.michail.com/
     
    michail1, Apr 16, 2005 IP
  15. sergiomada

    sergiomada Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    what is the port for my firewall was blocking the communicaitons for the msxml object?

    Please, thanks ;)
     
    sergiomada, May 19, 2005 IP
  16. Jedlin

    Jedlin Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Thanks for the tip!

    This led me to my McAfee Port Blocking Firewall log. That showed the following:
    Blocked by port blocking rule php-cgi.exe Prevent downloads from the world wide web ##.##.##.##
    Blocked by port blocking rule DLLHOST.EXE Prevent downloads from the world wide web ##.##.##.##


    I added the dllhost.exe into McAfee's allowed port 80 programs list and now my ASP RSS feeds work! :)

    Did the same for php-cgi.exe to get my PHP based RSS feeds working.

    So now both my PHP and ASP feeds for RSS news are working again with my firewall!
     
    Jedlin, May 19, 2006 IP