Deaf Topics - Watch Anime Online - Name tag - Sciences in 2007 - Credit Reports

PDA

View Full Version : ASP Ad Network Port


l0cke
Sep 20th 2004, 3:42 pm
For those who are interested, here is an ASP classic port of the Coop Advertising Network (http://www.digitalpoint.com/tools/ad-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%>

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" to Const ad_url = "http://ads.digitalpoint.com/network.php" To add a background color to the banners change the link to Const ad_url = "http://ads.digitalpoint.com/network.php?color=FFFFFF" where FFFFFF is the background color (in hex) you wish to use.

Feel free to post any questions you may have.

mopacfan
Oct 15th 2004, 12:12 pm
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


Line 22 is:
If ((UBound(ads) < 101) Or (DateAdd("h", 1, ads(0)) < Now())) Then

the browser acct has wrx security. Any suggestions?

mopacfan
Oct 15th 2004, 12:17 pm
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

mopacfan
Oct 15th 2004, 1:06 pm
Got it working now. Turned out my firewall was blocking the communicaitons for the msxml object. doh!

l0cke
Oct 15th 2004, 1:44 pm
Good to hear. I am not actually running this live myself so please let me know if you encounter any issues.

mopacfan
Oct 15th 2004, 1:56 pm
It's working great now. All I have left is to get validated. The auto validator did not work :(

l0cke
Oct 15th 2004, 3:36 pm
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

jvmills
Nov 19th 2004, 7:02 am
just to say a big thanks to Locke, I now have the asp script running on my site.

Gracias

asamuel
Nov 22nd 2004, 2:09 am
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

Zinho
Dec 2nd 2004, 10:57 am
An enhanced ASP version has been coded and should be tested:

http://forums.digitalpoint.com/showthread.php?p=61054#post61054

optwizard
Mar 23rd 2005, 11:45 am
I installed script and got this

ad_network.php file needs updating

what should I do

michail1
Apr 16th 2005, 12:42 am
Got it working now. Turned out my firewall was blocking the communicaitons for the msxml object. doh!
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
Apr 16th 2005, 2:29 am
I installed script and got this

ad_network.php file needs updating

what should I do
Try this one, here (http://forums.digitalpoint.com/showthread.php?p=138499&highlight=asp+writable#post138499).

michail1
Apr 16th 2005, 11:00 pm
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/

sergiomada
May 19th 2005, 11:11 am
what is the port for my firewall was blocking the communicaitons for the msxml object?

Please, thanks ;)

Jedlin
May 19th 2006, 5:18 pm
Got it working now. Turned out my firewall was blocking the communicaitons for the msxml object. doh!

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!