Ad network file needs updating

Discussion in 'Co-op Advertising Network' started by Toopac, Sep 8, 2005.

  1. #1
    Today i went on my forum IPB 1.3 which i was running ads on & it said the ad network file needs updating, well frankly i have not a clue how to do this. I want 5 dynamic text links with a (space - space) parting the ads...

    This is in my functions.php:

    // Second custom mod for coop ad network
    ini_set ("include_path", ini_get ("include_path") .
    ':../:../../:../../../:../../../../'); include ('ad_network.php');
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK %>" ,
    $ad_network[0] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK1 %>" ,
    $ad_network[1] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK2 %>" ,
    $ad_network[2] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK3 %>" ,
    $ad_network[3] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK4 %>" ,
    $ad_network[4] , $ibforums->skin['template']);
    // Second custom mod for coop ad network

    Does this need changing?

    And i need to know what to put in the ad network php & text files?
     
    Toopac, Sep 8, 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
    You can get the PHP code from the setup instructions on your account.
     
    digitalpoint, Sep 8, 2005 IP
  3. Toopac

    Toopac Peon

    Messages:
    4,451
    Likes Received:
    166
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Right, so i upload the 2 files as normal, then i alter the bold text below which is in my functions.php?

    // Second custom mod for coop ad network
    ini_set ("include_path", ini_get ("include_path") .
    ':../:../../:../../../:../../../../'); include ('ad_network.php');
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK %>" ,
    $ad_network[0] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK1 %>" ,
    $ad_network[1] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK2 %>" ,
    $ad_network[2] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK3 %>" ,
    $ad_network[3] , $ibforums->skin['template']);
    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK4 %>" ,
    $ad_network[4] , $ibforums->skin['template']);
    // Second custom mod for coop ad network
     
    Toopac, Sep 9, 2005 IP
  4. Drakier

    Drakier Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4

    you can no longer refer to each ad separately..

    You must now instead of using $ad_network[0] through $ad_network[4]... just set your options properly in the "Settings" section of the ad network page, then copy/paste the PHP over your old ad_network.php and set the following:

    $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK %>" ,
    $ad_network[0] , $ibforums->skin['template']);

    to $ibforums->skin['template'] = str_replace( "<% COOP.AD.NETWORK %>" ,
    $ad_network, $ibforums->skin['template']);

    then remove the rest of 1-4...

    make sense?
     
    Drakier, Sep 9, 2005 IP
  5. Toopac

    Toopac Peon

    Messages:
    4,451
    Likes Received:
    166
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think so:confused:

    I'll have a bash later today:(
     
    Toopac, Sep 9, 2005 IP