Ok I started with my phpBB forum which I had 5 ads on, all is A-OK. http://www.fintalk.com/boards/index.php -- my forum = 288 wt I have another part of my site that is a PHP based yellow page or business directory. located here. http://fintalk.com/business/home.php I added this to the footer with the correct path and I had to ad this file (ad_network_ads.txt) to the business directory. I kept gettin "You must set the "ad_network_ads.txt" file to be writable" messages for that file and the forum ad_network_ads.txt file was chmodded correctly to 777 so I put another ads.txt file into my business directory, that worked but is this correct? Anyway the 1 ad I have in there is currently showing as a text link-- a-ok. <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('../boards/ad_network.php'); echo $ad_network[0]; ?> I assume it is right because the ad is showing and I tried to validate but wasn't sure how to do it. Do I take my forum address out of the "Site/Forum URL" text field in my accounts settings? I did that and added the new directory but I seemed to lose my initial weight for my forum. I did get a validation of 4 weight for 1 text link but I lost my 288 for my original main set up which is my forum. Is my new page with my new ads suppose to use the original ad_network_ads.txt file from the forum directory? If so how to access it? My new page of ads (business pages) is looking for it its own directory. I am just lost, how to validate two seperate php sections of my site at the same time keeping weight from both - phpBB forum and phpYellow biz directory. Somebody please take a whack at this post. I have confused myself. Thanks Joe
Hard-code the full path to the ad_network_ads.txt file to the ad_network.php file. (Do not create duplicate ad_network_ads.txt files)
Hard Code? I have tried with no positive results. Are you talking about these lines of code in the ad_network.php file? ------------------------------------------------------------------- $ad_file = 'ad_network_ads.txt'; for ($i = 0; $i <= 11; $i++) { $p = substr ('../../../../../../../../../../', 0, $i * 3); if (file_exists ($p . $ad_file)) { $ad_file = $p . $ad_file; break; -------------------------------------------------------------------- Hard code this part? $ad_file = 'ad_network_ads.txt'; If so I tried using http://www.path-to-file/ with bad results I didn't try server path if thats what you mean. I think I am lost. Thanks Joe
Thanks Much!- Its working. Now with that done I have my ad_network.php file and the ad.txt file in my forum directory. I have 5 ads running. And it is my main site I signed up to coop with. http://www.fintalk.com/boards/index.php I added the extra ads to another php part of my site here: http://fintalk.com/business/home.php And they are working and displaying ads. My 2 questions are: #1 To ad more ads do I do it like this? <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('../boards/ad_network.php'); echo $ad_network[0]; echo $ad_network[1]; ?> #2. It is showing 2 ads with this set-up but I am not getting any weight credit even though I have updated my weight and I have an API key for updating. Do I have to add the new address somehow to the new pages? How to get weight credit for the new pages? Any help is appreciated. Thanks - Joe D.