############################################################## ## MOD Title: phpAdsNew integration ## MOD Author: Matthijs < phpbb@matthijs.net > (Matthijs van de Water) http://www.matthijs.net/phpbb/ ## MOD Description: This integrates phpAdsNew with phpBB and places a banner on all your pages. ## MOD Version: 1.0.0 ## ## Installation Level: easy ## Installation Time: 2 Minutes ## Files To Edit: includes/page_header.php, templates/subSilver/overall_header.tpl ## Included Files: n/a ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/ ############################################################## ## Author Notes: You may have to update the view() functions properties for your situation. ## please refer to the phpAdsNew documentation for advanced options. ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # // Work around for "current" Apache 2 + PHP module which seems to not // cope with private cache control setting if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')) # #-----[ BEFORE, ADD ]------------------------------------------ # // // phpAdsNew Banner Code // // You may have to alter the path to phpadsnew.inc.php // Also, you may have to customize the view() functions settings // See the phpAdsNew Manual and the phpAdsNew Admin Area if (@include('phpadsnew/phpadsnew.inc.php')) { if (!isset($phpAds_context)) { $phpAds_context = array(); } $phpAds_raw = view_raw ('1', 2, '_blank', '', '0', $phpAds_context); $template->assign_vars(array('BANNER' => $phpAds_raw['html'])); } // // End Banner Code // # #-----[ OPEN ]------------------------------------------ # templates/subSilver/overall_header.tpl # #-----[ FIND ]------------------------------------------ #
# #-----[ AFTER, ADD ]------------------------------------------ #
{BANNER}

# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM