1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

weird stuff

Discussion in 'Co-op Advertising Network' started by leeds1, Sep 19, 2004.

  1. #1
    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 ?
     
    leeds1, Sep 19, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Remove this from your ad_network.php file:

    	if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
    		ini_set ('zlib.output_compression', 0);
    		echo $ad_network;
    	}
    PHP:
     
    digitalpoint, Sep 19, 2004 IP
  3. leeds1

    leeds1 Peon

    Messages:
    585
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Perfect - works 100% now, thanks Shaun
     
    leeds1, Sep 19, 2004 IP
  4. leeds1

    leeds1 Peon

    Messages:
    585
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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
     
    leeds1, Sep 19, 2004 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    index.php (see the setup instructions). :)
     
    digitalpoint, Sep 19, 2004 IP