Now that my hosting company fixed the directory structure, I tried displaying ads again, but still had just one. So, I used the following code in a test page to be sure I had the correct path, and that the folder was writable. Dim fso, MyFile Set fso = CreateObject("Scripting.FileSystemObject") Set MyFile= fso.CreateTextFile("../files/testfile.txt", True) '************* use your full path and file name here MyFile.WriteLine("This is a test.") MyFile.Close I then checked the target folder and sure enough a file had been created. With the correct path confirmed, I wound up modifying the ads_network.asp file to remove the slash in the server.mappath line. That then worked. This is what I changed it to, making the path relative rather than absolute. ad_file = Server.MapPath("../files/ad_network_ads.txt") Also, a suggestion for stupot: You might want to 'Dim ads'. Reason is that WebWiz ASP forums use <% option explicit %> on each page and the so an undeclared variable error is returned. Thanks for all of your hard work. It's appreciated by many.
Alright, after thinking all was well for a few days I just logged in to see all my weight had disappeared. Now all of my sites with this new change are appearing as not showing any ads when validated, however they are clearly showing each ad when you view the site. Thanks !
MapPath and I don't get along. I used the full path like this. 'the (writable) path to ad_network_ads.txt [b]Const root_path="e:\web\public_html\mydomain\"[/b] Const fsoForReading = 1 Const fsoForWriting = 2 ' "link" for text link | "text" for text banner | "" (empty) for graphical banner ad_type = "link" 'it must be a path with write privileges [b]ad_file = root_path & "ad_network_ads.txt"[/b] etc..... Code (markup):
Well after a good amount of time invested, ads display but my site will not validate. Unfortunately, it has been posted in another thread that ASP is not supported. So, no validation help is offered. Looks like I'm dead in the water :-(
Don't give up just yet. There's still hope. I just need to find someone that can translate the php for me so I can update the asp.
Ok, here's the updated code. It was a very minor change, but without exam's help interpreting the php, I never would have figured it out. The query string had changed that get's sent to the server. The updated code is attached. Be sure to modify the code to replace your url, link type and ads.txt file location. Michael
Is anyone's asp working in the co-op? Everthing was fine yesterday. Ads are showing, but won't validate. I downloaded the new coopads.asp and renamed it as_network.asp and it still won't validate. Any help would be VERY appreciated.
I just got 'invalidated' Email messages. I downloaded the coopads.asp and plunked it into my ad_network.asp file, updated the stuff in it to the appropriate paths, etc., and then deleted my ad_network.txt files, refreshed a few times to fill all 5 links, and now it's validating again. My 'invalid' file was still showing the ads just fine... -- Derek
The asp code doesn't work on my sites now as one of the parameters seems to have changed.. (Why???) All sites have failed to validate...
Mine was doing the same thing. It turns out that the query string values passed to the server had changed. The code would display the ads because nothing changed to that side of the application. Only after the four lines are updated as in the file I posted yesterday, will an asp site be able to re-validate.
The official response is that "php is the only supported version" or something to that effect. Se we are all the bastard children of the coop. Such as it is, as long as someone can interpret the php, there are enough of us that can keep the asp up to date.
All I had to do was change the a= to b= in the line which has the digitalpoint url in it. All works fine now. Strange that i didn't get an email about this change, Shawn usually sends one out.
He sends an Email if the php version needs updating(f*** the rest, basically). That seems to be working fine right now on my one php site. -- Derek
I got a message on the 7th Jan about the merge, I guess this is the one, my mistake I just didn't realise the impact (b=) it would have on the ASP.
That's the one. I don't know anything about the ASP, PERL ColdFusion or any other version of the ad_network file (other than PHP), but if the ad_network.php needs to be updated, than most certainly the others do as well.