https://www.icyphoenix.com/viewtopic.php?f=35&t=3928 ----------------------------------- JHOSMAN Sat 22 Mar, 2008 18:15 Rotate Banners In Header ----------------------------------- Please move to IcyCustomizations [code] ######################################################## ##Title: Rota Banner Mod ##Versión; 1.0.0 ## Author: esnola (webmaster@todo-mods.com) ## Author Web: http://www.todo-mods.com ## ## Descripción en español: He rotated the logo of a random or a banner in the header ## ## ## Installation Level: Easy (Fácil) ## Installation Time: 2 Minutes ## Files to editr:(2) includes/page_header.php ## templates/mg_themes/overall_header.tpl ## ######################################################### # # Before you make any changes to your files forum backed up the same. # # This MOD Before Adding To Your Forum, You Should Back Up All Files Related To This MOD ######################################################### # #-----[ INSTRUCTIONS ]------------------------------------------ # CREATE A FOLDER BANNERS IN THE DIRECTORY CALL IMAGES AND PUTTING THE IMAGES THAT ALLI WANT TO BE PRINT. images/banners/ # #-----[ ABRIR / OPEN ]------------------------------------------ # includes/page_header.php # #-----[ BUSCAR / FIND ]------------------------------------------ # if( !defined('PORTAL_INIT') ) { include($phpbb_root_path . 'includes/functions_cms.' . $phpEx); cms_config_init($cms_config_vars); define('PORTAL_INIT', true); } # #-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------ # //INICIO Rota_banner_Mod v1.0.0 $ubica = ('images/banners'); $dir=opendir($phpbb_root_path.$ubica); $array_banner=array(); while ($file = readdir($dir)) { if($file != "index.php" AND $file != "." AND $file != "..") { $array_banner[] = $file; } } closedir($dir) ; $alea = rand(0,(count($array_banner)-1)); $banner = $array_banner[$alea]; $el_banner = $banner; //FINAL Rota_banner_Mod v1.0.0 # #-----[ BUSCAR / FIND ]------------------------------------------ # 'PHPEX' => $phpEx, # #-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------ # 'ROTA_BANNER' => $el_banner, # #-----[ ABRIR / OPEN ]------------------------------------------ # templates/mg_themes/overall_header.tpl # #-----[ BUSCAR / FIND ]------------------------------------------ # That in the case of wanting to put a banner or a logo random on the site of the logo that appears on the left {FULL_SITE_PATH}{SITELOGO} # #-----[ REEMPLAZAR POR / REPLACE WITH ]------------------------------------------ # That in the case of wanting to put a banner or a logo random on the site of the logo that appears on the left images/banners/{ROTA_BANNER} # #-----[ BUSCAR / FIND ]------------------------------------------ # That in the case of wanting to put a banner random after the logo that appears on the left

{HEADER_BANNER_CODE}
# #-----[ REEMPLAZAR POR / REPLACE WITH ]------------------------------------------ # That in the case of wanting to put a banner random after the logo that appears on the left

{L_HOME}
# #-----[ SAVE AND UPLOAD ]------------------------------------------ # [/code] ----------------------------------- keany Sat 22 Mar, 2008 18:25 Re: Rotate Banners In Header ----------------------------------- If u have any demo to see the efect ....... :shock: ----------------------------------- JHOSMAN Sat 22 Mar, 2008 18:28 Re: Rotate Banners In Header ----------------------------------- is similar from the images of this portal: www.udistrital.edu.co :mrviolet: My University :lol: