switching to .shtml pages

Discussion in 'Co-op Advertising Network' started by wendydettmer, Feb 23, 2005.

  1. #1
    Hey all,

    I'm switching from html to shtml pages and i'm having issues getting the ads to show up. I added in the code <!--#include virtual="/ad_network_176.php" -->, however, i'm assuming i need to actually make a ad_network_176.php file, but what goes in it?

    sorry this is such a silly question....


    EDIT: Ok i'm a dork and got this to work. When i originally did this, it was just ad_network.php, without the 176. i'm all fixed. sorry. But my next question is, how do i get the pages to show 5 ads? Reading php script is like talkign to my inlaws - all greek.
     
    wendydettmer, Feb 23, 2005 IP
  2. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Wendy, do you have to switch your pages to .shtml to get the includes to work in them?
     
    chachi, Feb 23, 2005 IP
  3. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, hosting company will only support .shtml for SSI.
     
    wendydettmer, Feb 23, 2005 IP
  4. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well, that is a bummer. How many pages do you have in the G index? You are going to have to 301 those old pages to the new ones.
     
    chachi, Feb 23, 2005 IP
  5. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not worried about that at all, the site is only 40 pages, and google has only one indexed. It used to have about 10, but it dropped. The site is less then 2 months old, so this is the best time to do it.

    So do you know how to change the php code to show 5 ads?
     
    wendydettmer, Feb 23, 2005 IP
  6. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok, well I would 301 all of them as G may still know about them.

    As for multiple ads, this code should do it for you:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo ' | '.$ad_network[1].' | '.$ad_network[2].' | '.$ad_network[3].' | '.$ad_network[4];
    ?>
     
    chachi, Feb 23, 2005 IP