Код профиля:
Code
<center>
<strong>
<SCRIPT LANGUAGE="JavaScript">
currentTime = new Date();
if (currentTime.getHours() >= 6 && currentTime.getHours() <= 11 )
document.write("Доброе утро, ");
if (currentTime.getHours() >= 12 && currentTime.getHours() <= 17 )
document.write("Добрый день, ");
if (currentTime.getHours() >= 18 && currentTime.getHours() <= 23)
document.write("Добрый вечер, ");
if (currentTime.getHours() >= 0 && currentTime.getHours() <= 5)
document.write("Доброй ночи, ");
</SCRIPT>
<font color="white"> $USER_FULL_NAME$</font>
</strong>
</center>
<div align=center>
<font color="white">Время: <b>$TIME$</b></font>
</div>
<img src="http://s34.ucoz.net/.s/img/icon/mf.png" border="0"><a id="upml2" href="javascript:openOnClick('mail')"> Читать ЛС (<b>$UNREAD_PM$</b>)</a>
<script type="text/javascript">function flashit(id,cl){var c=document.getElementById(id);if (c.style.color=='red'){c.style.color=cl;}else {c.style.color='red';}}setInterval("flashit('upml2','')",500)</script>
<table>
<tr>
<td width=140 VALIGN=top>
<img class="glossy" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><img class="glossy" title="$USERNAME$" src="http://o-ucoze.com/mini-profils/1.png" border="0"><img class="glossy" title="$USERNAME$" src="http://o-ucoze.com/mini-profils/1.png" border="0">
<div class="eMessage img {max-width:10px;}
eMessage img {max-height:10px;}" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div>
</td>
<td VALIGN=top>
<div align=right>
<a target="_blank" href="$PERSONAL_PAGE_LINK$"> Профиль</a>
<br><a href="javascript:openOnClick('users')"> Пользователи</a>
<br><a href="javascript:openOnClick('options')"> Настройки</a>
<br><a href="javascript:openOnClick('send')">Отправ. ЛС.</a>
</div>
<script language=javascript type=text/javascript>
function openOnClick(client_type)
{
if(client_type=="mail")clientWindow = window.open("$PM_URL$","pmw","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="send")clientWindow = window.open("/index/14-999-0-1","pms","scrollbars=1,top=0,left=0,resizable=1,width=850,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="options")clientWindow = window.open("/index/11","options","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
if(client_type=="users")clientWindow = window.open("$USERS_LIST_URL$","users","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</script>
</td>
</tr>
</table>
<div align=left>
<b>Ваш логин:</b> $USERNAME$<br>
<b>Ваше имя:</b> $USER_FULL_NAME$<br>
<b>Вы родились:</b> $USER_BIRTHDAY$ <br>
<b>Ваш ID:</b> $USER_ID$<br>
<b>Вы здесь: $USER_REG_DAYS$-й день</b><br>
<b>Ваша група:</b> $USER_GROUP$<br>
<b>ID вашей групы:</b> $GROUP_ID$<bR>
<b>Ваш IP адрес:</b> $IP_ADDRESS$<br>
<b>Ваш браузер:</b> $USER_AGENT$ $USER_AGENT_VER$<br>
<b>Ваш пол :</b> $USER_GENDER$<br>
</div>
<a href=/index/14-1-0-1 target=_blank><img src="http://o-ucoze.com/mini-profils/2.png" border="0" alt="" />ЛС администратору</a>
<br><a href="$LOGOUT_LINK$"><img src="http://o-ucoze.com/mini-profils/3.gif" border="0" alt="" /></a></br>
$LOGIN_FORM$
</td>
</tr>
</table>
Изменяем шаблон "Форма входа" на этот код:
Code
<div style="width:180px;">
<table border="0" cellspacing="1" cellpadding="0" width="80">
<td colspan="2" style="color:red;text-align:center;">$ERROR$</td>
<tr><td width="20%" nowrap="nowrap">Логин:$UID_ICON$<br><input class="loginField" type="text" name="user" value="" size="20" style="width:100%;" maxlength="50" /></td></tr>
<tr><td>Пароль:<br><input class="loginField" type="password" name="password" size="20" style="width:100%" maxlength="15" /></td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr><td nowrap><input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked /><label for="rem$PAGE_ID$">запомнить</label>
<input id="hid$PAGE_ID$" type="checkbox" name="hidden" value="1" /><label for="hid$PAGE_ID$">скрытый</label><br><center><input class="loginButton" name="sbm" type="submit" value="Вход" /></center></td></tr>
<tr><td colspan="2"><div style="font-size:7pt;text-align:center;"><a href="$REMINDER_LINK$">Забыл пароль</a><br><a href="$REGISTER_LINK$">Регистрация</a></div></td></tr>
</table>
</div>