- ########################################################
- ##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 ]------------------------------------------
- #
Rotate Banners In Header
Subject: Rotate Banners In Header
Please move to IcyCustomizations
Subject: Re: Rotate Banners In Header
is similar from the images of this portal: www.udistrital.edu.co :mrviolet: My University :LOL:
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.1446s (PHP: 12% SQL: 88%)
SQL queries: 13 - Debug Off - GZIP Enabled