Hi Shawn, I'm having a problem getting vadlidated... Any reason why? http://www.seo-dev.co.uk Cheers... Also, the ad isn't being displayed on all pages of the site.. Only the index... Do I neet to upload the ad_network.php file to the root of every folder on the site or just to the site root... Cheers
Just the site root is fine... But you do need to add the include code to each page. As far as not being validated, it would be because the ads aren't on each page. Are you getting any errors or anything for the pages it's not showing on?
No nothing... The ad code is on every page (I added it to the blogger template then republished the whole site)... I'll try republishing again and see if that works... __________ Nope... Didn't work. Any other ideas?
I added the code to each page (Through the blogger template form), and now there is nothing there... I know that the pages have updated, because I placed the code in <p> tags which are now empty...
No, It's not there - where it was is now just blank... I just emailed my hosting guy and made sure that php would parse the files in subdirectories as well, and he said that it definetly should... See, I'm running this on IIS and as such don't have access to an .htaccess file, so I had to call him and ask him to get php to parse .html files for me too... ____ I just got another email from him telling me that the code is definetly being parsed by php...
Well... try a test... in the PHP code, add something simple like: echo '0'; PHP: and see if it echos it on the page. Then you can at least tell if the PHP parser is working on the server or not.
Okay, so let's try this... in your ad_network.php file change this: if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') { ini_set ('zlib.output_compression', 0); echo end ($ad_network); } PHP: to just this: echo end ($ad_network); PHP: and then take the echo function out of your template (so you just have the include).
No, that didn't do it, and now the ads are being duplicated on the index page, so instead of having 5 ads, I have 10... <edit> they aren't being duplicated any more</edit>
I dunno man... PHP on Windows sucks. Try using the full path to the ad_network.php file (full path on the server) rather than just the file name.