HEEEEEEEELPPPPPPP!! Site weight dropped to zero!!

Discussion in 'Co-op Advertising Network' started by msaad, Dec 14, 2004.

  1. #1
    Hi,
    My site has been having a weight of over 15000 for the past month. Yesterday, I have updated the php file (as requested in an email sent to me), and now suddenly... my weight dropped to zero!

    The site says that "Ads appear to be live", and they do actually appear on my site
    (http://www.themagicseal.com/forum)

    However, my weight is zero! What happened to me?

    Thanks a lot...
    msaad
     
    msaad, Dec 14, 2004 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Tried validating again?
     
    T0PS3O, Dec 14, 2004 IP
  3. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Did you flush out your ad_network_ads.txt?
     
    a389951l, Dec 14, 2004 IP
  4. msaad

    msaad Peon

    Messages:
    120
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just did. Thank for the tip. It is scary how many people never read instruction to the end. :D (was it really in the instructions?)
    Hope this corrects the problem

    Just a quick question... This is the code i use to display 5 versions of the ads..
    Is this correct? I am not very much of a php guy!


    
    
    //
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK' => $ad_network[0]));
    unset ($ad_network);
    
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK2' => $ad_network[0]));
    unset ($ad_network);
    
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK3' => $ad_network[0]));
    unset ($ad_network);
    
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK4' => $ad_network[0]));
    unset ($ad_network);
    
    include ($phpbb_root_path . 'ad_network.php');
    $template->assign_vars(array('AD_NETWORK5' => $ad_network[0]));
    unset ($ad_network);
    PHP:
    Thanks a lot in advance.
     
    msaad, Dec 14, 2004 IP
  5. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It should be like this [or similar as this puts a pipe between the ads:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[1];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[2];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[3];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[4];
    ?>
     
    Foxy, Dec 14, 2004 IP
  6. eeve

    eeve Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Actually...

    Do this:

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

    Including the php file multiple times is very bad programming style...

    Or.. to keep your html clean, put those echo statements IN the ad_network.php file at the end. This way if you decide to change the # of ads shown or the format, you only have to change it in one place.
     
    eeve, Dec 15, 2004 IP