ANyone added this to IPB?

Discussion in 'Co-op Advertising Network' started by John D, Jan 18, 2006.

  1. #1
    Hey,
    I just wanted to check the weight for an IPB forum.

    Has anyone added co-op to IPB?

    I tried but ads aren't showing up and it says ads aren't found in the co-op panel.

    Thanks
     
    John D, Jan 18, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Which version? I added it ages ago, search the forums for my explanation on how. But it depends on the version. With advanced search you can seearch by user or just google it with site:forums.digit....etc.
     
    T0PS3O, Jan 18, 2006 IP
  3. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #3
    2.1.0

    I did see a post here that had a guide to it on another forum but the other forum is offline.
     
    John D, Jan 18, 2006 IP
  4. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #4
    I updated the url on the older thread but that was for 2.0.x - free version. Not sure if it will work with 2.1.x.
     
    a389951l, Jan 18, 2006 IP
  5. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I run it on IPB V2.1.3
     
    chiefshuddle, Jan 18, 2006 IP
  6. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #6
    Where did you get the info on how to add it?

    Thanks
     
    John D, Jan 18, 2006 IP
  7. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Find the file class_display.php under /yourforumdirectory/sources/classes/

    Edit the file and find this line of code:

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

    		$this->ipsclass->skin['_wrapper'] = str_replace( "<% ADNETWORK %>"      , $ad_network                         , $this->ipsclass->skin['_wrapper']);
    
    Code (markup):


    Find the copyright portion in the board wrapper via the ACP > Look and Feel and add this below it:

    <% ADNETWORK %>
    Code (markup):
    Hope this helps :)
     
    chiefshuddle, Jan 18, 2006 IP
  8. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Sorry, I was about half drunk when I posted that.

    I forgot an obvious very important part.

    In the class_display.php file find this:

            //-----------------------------------------
    		// Parse EXEC commands in wrapper only
    		// If we moved this below the block of str_replace
    		// we'd get exec commands parsed in HTML templates
    		// too... Do we want that? Not for now...
    		//-----------------------------------------
    		
    Code (markup):
    Below that add this:

    		// Special macro for Link Vault Network
    		
    		ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    		include ('ad_network_youradnetworknumber.php');
    Code (markup):
    Of course doing it this way you need to insure that ad_network_youradnetworknumber.php exists in the home directory of your forums because its a relative path, if it exists elsewhere you will need to put in the full server path to the file.

    Sorry for the confusion. :confused:

    Shawn, feel free to add the above to the coop instructions if you wish, I know it works fine as I've been running it this way with no problems for several months on 2.1.X versions of IPB up to 2.1.3, I will be upgrading soon but I don't expect a change there either.
     
    chiefshuddle, Jan 19, 2006 IP
  9. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #9
    Thanks very much, going to give this a try later.
     
    John D, Jan 19, 2006 IP
  10. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You're welcome.

    If your COOP setup is correct it works flawlessly.
     
    chiefshuddle, Jan 19, 2006 IP
    a389951l likes this.
  11. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #11
    Doesn't seem to be working.

    COOP is saying ads aren't found.

    Is that definitely everything I have to do?

    Thanks
     
    John D, Jan 19, 2006 IP
  12. a389951l

    a389951l Must Create More Content

    Messages:
    1,885
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    140
    #12
    What is the site url?
     
    a389951l, Jan 19, 2006 IP
  13. John D

    John D Well-Known Member

    Messages:
    1,154
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    150
    #13
    John D, Jan 19, 2006 IP
  14. chiefshuddle

    chiefshuddle Banned

    Messages:
    338
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Yes, that should be everything. Like I said though, it depends on the path with the include on where the ads are located and also that coop is configured correctly.
     
    chiefshuddle, Jan 20, 2006 IP