- ########################################################
- ##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
- <!-- BEGIN switch_header_banner -->
- <center><br />{HEADER_BANNER_CODE}</center>
- <!-- END switch_header_banner -->
- #
- #-----[ REEMPLAZAR POR / REPLACE WITH ]------------------------------------------
- # That in the case of wanting to put a banner random after the logo that appears on the left
- <center><br /><a href="{U_PORTAL}" title="{L_HOME}"><img src="images/banners/{ROTA_BANNER}" alt="{L_HOME}" title="{L_HOME}"/></center>
- #
- #-----[ SAVE AND UPLOAD ]------------------------------------------
- #