1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Adding coop to Invasion Powered board (IPB) 2.1.6

Discussion in 'Co-op Advertising Network' started by Imran, Nov 6, 2006.

  1. #1
    I had an opportunity to work for a client who wanted to me to put coop ads on his IPB Powered board.
    After doing a research I found a article but that was for an older version, but it gave me an idea how to add coop to it hence i did this and got success with it.

    On IPB 2.1.6:
    In your IPB directory.
    >>Look for ForumDIR/sources/classes/class_display.php.
    >>Download, backup and open class_display.


    Find:
    $this->ipsclass->skin['_wrapper'] = str_replace( "<% CHARSET %>"        , $this->ipsclass->vars['gb_char_set'], $this->ipsclass->skin['_wrapper']);
    Code (markup):
    Add below:

    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_428.php');
    $ad_network = substr_replace($ad_network," ,strpos(substr($ad_network,strpos($ad_network,"|")+1),"|") + strpos($ad_network,"|")+1,1);
    $this->ipsclass->skin['_wrapper'] = str_replace( "<% COOP.AD.NETWORK %>" , $ad_network, $this->ipsclass->skin['_wrapper']);
    Code (markup):
    --------------------------------------------


    If your ad file is called something other than ad_network_488.php, change the include to your file name.

    Upload class_display.php

    3. Log into AdminCP and go to your Skin Manager and edit the Board Wrapper for your skin(s)

    Place <% COOP.AD.NETWORK %> wherever you want the ads to show (I have them under the Copyright section at the bottom)

    Save and you are done
    Rest as .Here
     
    Imran, Nov 6, 2006 IP
  2. alexasigno

    alexasigno Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone had any joy getting this to work on IPB 2.2?
     
    alexasigno, Dec 12, 2006 IP
  3. Namesniper

    Namesniper Well-Known Member

    Messages:
    365
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    118
    #3
    I didnt upgraded to 2.2 yet
     
    Namesniper, Dec 12, 2006 IP
  4. Imran

    Imran Notable Member

    Messages:
    2,340
    Likes Received:
    190
    Best Answers:
    0
    Trophy Points:
    230
    #4
    This works for 2.2 also :)
     
    Imran, Dec 17, 2006 IP
  5. kjbweb

    kjbweb Well-Known Member

    Messages:
    223
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    105
    #5
    Can anyone sort this out for v2.3.x?
    Having some serious issues trying to get COOP to work with IPB at the moment :(
     
    kjbweb, Jan 5, 2009 IP