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
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.
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.
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
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. 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.
Doesn't seem to be working. COOP is saying ads aren't found. Is that definitely everything I have to do? Thanks
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.