Код: Выделить всё
##############################################################
## MOD Title: Day/Night Logo
## MOD Author: danb00 < extreme[at]extremephpbb[dot]com > http://www.extremephpbb.com/
## MOD Description: This mod will change your logo depending on the time of day
## MOD Version: 0.1
## Installation Level: Easy
## Installation Time: 2 Minutes
## Files To Edit: overall_header.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2005-03-06 - Version 0.1
## - First Version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
#
#-----[ REPLACE, WITH ]------------------------------------------
#
<td><a href="{U_INDEX}">
<script type="text/javascript">
<!--
now = new Date();
hour = now.getHours();
if (hour > 6 && hour < 20) {
document.write ("<IMG SRC = 'templates/subSilver/images/logo_phpBB.gif' BORDER = '0' ALT = 'Day'>");
}
else
{
document.write ("<IMG SRC = 'templates/subSilver/images/logo_phpBB.gif' BORDER = '0' ALT = 'Night'>");
}
// -->
</script>
</a></td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM