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?
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
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?