Rotate Banners In Header »  Show posts from    to     

Icy Phoenix


Old Support Topics - Rotate Banners In Header



JHOSMAN [ Sat 22 Mar, 2008 18:15 ]
Post subject: Rotate Banners In Header
Please move to IcyCustomizations

Code: [Hide]
  1.  
  2. ########################################################  
  3. ##Title: Rota Banner Mod  
  4. ##Versión; 1.0.0  
  5. ## Author: esnola (webmaster@todo-mods.com)  
  6. ## Author Web: http://www.todo-mods.com  
  7. ##  
  8. ## Descripción en español:  
  9. He rotated the logo of a random or a banner in the header  
  10. ##  
  11. ##  
  12. ## Installation Level: Easy (Fácil)  
  13. ## Installation Time: 2 Minutes  
  14. ## Files to editr:(2) includes/page_header.php  
  15. ## templates/mg_themes/overall_header.tpl  
  16. ##  
  17. #########################################################  
  18. # # Before you make any changes to your files forum backed up the same.  
  19. # # This MOD Before Adding To Your Forum, You Should Back Up All Files Related To This MOD  
  20. #########################################################  
  21. #  
  22. #-----[ INSTRUCTIONS ]------------------------------------------  
  23. #  
  24.  
  25. CREATE A FOLDER BANNERS IN THE DIRECTORY CALL IMAGES AND PUTTING THE IMAGES THAT ALLI  
  26. WANT TO BE PRINT.  
  27.  
  28. images/banners/  
  29.  
  30. #  
  31. #-----[ ABRIR / OPEN ]------------------------------------------  
  32. #  
  33.  
  34. includes/page_header.php  
  35.  
  36. #  
  37. #-----[ BUSCAR / FIND ]------------------------------------------  
  38. #  
  39.  
  40. if( !defined('PORTAL_INIT') )  
  41. {  
  42. include($phpbb_root_path . 'includes/functions_cms.' . $phpEx);  
  43. cms_config_init($cms_config_vars);  
  44. define('PORTAL_INIT', true);  
  45. }  
  46.  
  47. #  
  48. #-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------  
  49. #  
  50.  
  51. //INICIO Rota_banner_Mod v1.0.0  
  52. $ubica = ('images/banners');  
  53. $dir=opendir($phpbb_root_path.$ubica);  
  54. $array_banner=array();  
  55. while ($file = readdir($dir))  
  56. {  
  57. if($file != "index.php" AND $file != "." AND $file != "..")  
  58. {  
  59. $array_banner[] = $file;  
  60. }  
  61. }  
  62. closedir($dir) ;  
  63.  
  64. $alea = rand(0,(count($array_banner)-1));  
  65. $banner = $array_banner[$alea];  
  66. $el_banner = $banner;  
  67. //FINAL Rota_banner_Mod v1.0.0  
  68.  
  69. #  
  70. #-----[ BUSCAR / FIND ]------------------------------------------  
  71. #  
  72.  
  73. 'PHPEX' => $phpEx,  
  74.  
  75. #  
  76. #-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------  
  77. #  
  78.  
  79. 'ROTA_BANNER' => $el_banner,  
  80.  
  81. #  
  82. #-----[ ABRIR / OPEN ]------------------------------------------  
  83. #  
  84.  
  85. templates/mg_themes/overall_header.tpl  
  86.  
  87. #  
  88. #-----[ BUSCAR / FIND ]------------------------------------------  
  89. # 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  
  90.  
  91. {FULL_SITE_PATH}{SITELOGO}  
  92.  
  93. #  
  94. #-----[ REEMPLAZAR POR / REPLACE WITH ]------------------------------------------  
  95. # 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  
  96.  
  97. images/banners/{ROTA_BANNER}  
  98.  
  99. #  
  100. #-----[ BUSCAR / FIND ]------------------------------------------  
  101. # That in the case of wanting to put a banner random after the logo that appears on the left  
  102.  
  103. <!-- BEGIN switch_header_banner -->  
  104. <center><br />{HEADER_BANNER_CODE}</center>  
  105. <!-- END switch_header_banner -->  
  106.  
  107. #  
  108. #-----[ REEMPLAZAR POR / REPLACE WITH ]------------------------------------------  
  109. # That in the case of wanting to put a banner random after the logo that appears on the left  
  110.  
  111. <center><br /><a href="{U_PORTAL}" title="{L_HOME}"><img src="images/banners/{ROTA_BANNER}" alt="{L_HOME}" title="{L_HOME}"/></center>  
  112.  
  113. #  
  114. #-----[ SAVE AND UPLOAD ]------------------------------------------  
  115. #  


keany [ Sat 22 Mar, 2008 18:25 ]
Post subject: Re: Rotate Banners In Header
If u have any demo to see the efect .......


JHOSMAN [ Sat 22 Mar, 2008 18:28 ]
Post subject: Re: Rotate Banners In Header
is similar from the images of this portal: www.udistrital.edu.co My University




Powered by Icy Phoenix