Trouble with update :(

Discussion in 'Co-op Advertising Network' started by bobafind, Jan 21, 2005.

  1. #1
    I recently updated to the new ad_network.php, deleted my ad_network_ads.txt and remade an empty one. Both are 777. I see three ads on each page, all the same, for Gift Baskets. This is what I have in my webpages:

    In my main forum:
    
    // Special macro for coop ad network
    
     ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    $ad_display .= $ad_network[0] . ' ';
    $ad_display .= $ad_network[1] . ' ';
    $ad_display .= $ad_network[2];
                    $this_footer = str_replace( "<!--COOP.AD.NETWORK-->", $ad_display, $this_footer );
    
    PHP:
    And in the "lofi version" (archive)...
    <?php
            ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
            include_once ('ad_network.php');
    
    $LOFISKIN['wrapper'] = <<<EOF
    
    PHP:
    ...
    
    <div style = "text-align:center; font-size:10pt;">
    {$ad_network[0]},
    {$ad_network[1]},
    {$ad_network[2]},
    </div>
    
    PHP:
    ...
    
    EOF;
    
    PHP:
    Any glaring mistakes?
     
    bobafind, Jan 21, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Your ad_network.php file is out of date.
     
    digitalpoint, Jan 21, 2005 IP
  3. bobafind

    bobafind Peon

    Messages:
    128
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How did you know? I updated it just a few minutes ago! I'll try again though.

    I copied the "Text link only" code from the setup page.. should I not use that?
     
    bobafind, Jan 21, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Double check your ad_network.php file... I'm showing on this end that it's still old. If you look in the file, does it have the last updated date/time comment at the top? Maybe it didn't save properly on your server or something when you tried to update it.
     
    digitalpoint, Jan 21, 2005 IP
  5. bobafind

    bobafind Peon

    Messages:
    128
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    <?php
            // Last update:  Jan 21, 2005 8:51 am
    
            if (!function_exists('file_get_contents')) {
                    function file_get_contents($url) {
                            $handle = fopen($url, 'r');
                            $string = fread($handle, 4096000);
                            fclose($handle);
                            return $string;
                    }
            }
    PHP:
    [EDIT!]
    Validates now ... (had to wait a few minutes..) Maybe I did have an outdated copy - I thought I deleted it and made a new one though.. oh well ;)
     
    bobafind, Jan 21, 2005 IP