For those who are interested, here is an ASP classic port of the Coop Advertising Network. Download the attached file, rename it to ad_network.asp and upload it to the root directory of your site. 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. 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.
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?
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):
Got it working now. Turned out my firewall was blocking the communicaitons for the msxml object. doh!
Good to hear. I am not actually running this live myself so please let me know if you encounter any issues.
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
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
An enhanced ASP version has been coded and should be tested: http://forums.digitalpoint.com/showthread.php?p=61054#post61054
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.
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/
what is the port for my firewall was blocking the communicaitons for the msxml object? Please, thanks
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!