How do I display more than one ad in .shtml pages?

Discussion in 'Co-op Advertising Network' started by colevans, Dec 27, 2004.

  1. #1
    I use .shtml pages and I want to display more than one ad. How do I do this?

    I tried <!--#include virtual="/ad_network.php" --> but that only displays one ad.

    And <!--#include virtual="/ad_network.php" --><!--#include virtual="/ad_network.php" --> is not the way to add another ad...

    I want to be able to add seperators and more ads to all pages by altering one file only.
     
    colevans, Dec 27, 2004 IP
  2. colevans

    colevans Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I made this php file:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo ''.' | '.$ad_network[0].' | '.$ad_network[1].' | '.$ad_network[2].' | '.$ad_network[3].'</p>';
    ?>

    Called it shtml-ads.php

    and called it with <!--#include virtual="/shtml-ads.php" -->

    This displays 5 ads in a row, each separated with |

    Don't know what I did differently, but each time I tried it before I would get the first ad on one line and the other four beneath it...
     
    colevans, Dec 28, 2004 IP