Deaf Topics - Tea Forums & Tea Industry Forum - Debt Consolidation - Find jobs - Find jobs

PDA

View Full Version : weird stuff


leeds1
Sep 19th 2004, 3:09 am
Hi

I have set up a site http://www.118student.co.uk on the ad network

All pages are .shtml

All pages have an includes statement for the bottom header which is a .php file

Within that file I added the code :

<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include_once ('ad_network.php');
echo $ad_network;
?>

The site has validated OK - but have a look at the page:

a) strange warning
b) two duplicate ads

any clues ?

digitalpoint
Sep 19th 2004, 10:08 am
Remove this from your ad_network.php file:

if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
ini_set ('zlib.output_compression', 0);
echo $ad_network;
}

leeds1
Sep 19th 2004, 2:45 pm
Perfect - works 100% now, thanks Shaun

leeds1
Sep 19th 2004, 3:06 pm
plus I saw this :

If you would like a large weight/impression bonus, you can also run the ads in your vBulletin 3 archive. If you want to do that, you can add the following to your index.php file within your archive folder (the bold is shown for reference of what is already there and does not get added):

can you tell me what file to edit specifically within the templates ?

Thanks

digitalpoint
Sep 19th 2004, 3:21 pm
index.php (see the setup instructions). :)