Привет Гость!
Ты должен:
Войти или зарегистрироваться
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Модератор форума: NEGATIV  
Скрипты для ucoz: Мини-профиль светлый
PolygДата: Воскресенье, 27.03.2011, 03:45 | Сообщение # 1
Оффлайн
Сообщений: 324
Группа:
Пользователи

Мини-профиль светлый.

ПУ-->Управление дизайном-->CSS. В любое место ставим это:

Code
.loginField {background:#f1f1f1;border:1px solid #cbcbcb;color:#8B8881;height:20px;}   
.loginButton {background:#f1f1f1;border:1px solid #cbcbcb;color:#8B8881;width:97%;height:25%;float:left;}   
#about_pr {background:#f1f1f1;border:1px solid #cbcbcb;height:80px;}   
.buttonprofile {background:#f1f1f1;border:1px solid #cbcbcb;line-height:25px;width:100%;color:8B8881;text-align:center;margin-bottom:3px;

ПУ-->Управление дизайном-->Форма входа. Все удаляем и ставим это:
Code
<?if($PAGE_ID$="login")?><div style="width:180px;"><?endif?>   
<table border="0" cellspacing="1" cellpadding="0" width="100%">   
<?if($ERROR$)?><td colspan="2" style="color:red;text-align:center;">$ERROR$</td><?endif?>   
<tr><td><input class="loginField" type="text" name="user" onfocus="if(this.value=='E-Mail (uNet)')this.value=''" onblur="if(this.value=='')this.value='E-Mail (uNet)'" value="E-Mail (uNet)" size="20" style="width:96%;" maxlength="50"/></td></tr>   
<tr><td><input class="loginField" type="password" name="password" size="20" style="width:96%" onfocus="if(this.value=='Пароль')this.value=''" onblur="if(this.value=='')this.value='Пароль'" value="Пароль" maxlength="15"/></td></tr>   
</table>   
<table border="0" cellspacing="1" cellpadding="0" width="100%">   
<tr><td nowrap> <?if($PAGE_ID$="login" && $HIDDEN_ALLOWED$)?>
<input id="hid$PAGE_ID$" type="checkbox" name="hidden" value="1" /><label for="hid$PAGE_ID$">скрытый</label><?endif?></td><td align="right" valign="top"><input class="loginButton" name="sbm" type="submit" value="Вход"/></td></tr>   
<tr><td width="40%"><input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/><label for="rem$PAGE_ID$">запомнить</label></td><td colspan="2" width="60%"><div style="font-size:7pt;text-align:center;"><a href="$REMINDER_LINK$">Забыл пароль</a> | <a href="$REGISTER_LINK$">Регистрация</a></div></td></tr>   
</table>   
<?if($PAGE_ID$="login")?></div><?endif?>

Затем, по месту, в новый блок вставляем это:
Code
<?if($USER_LOGGED_IN$)?>   
<table width="100%">   
<tbody>   
<tr>   
<td width="35%"><div class="avaa"><?if($USER_AVATAR_URL$)?><img src="$USER_AVATAR_URL$" width="80" height="80"><?else?><img src="http://ujava.3dn.ru/img/noava.png" width="80" height="80"><?endif?></td>   
<td width="65%"><div id="about_pr">   
   Ник: <b>$USERNAME$</b>   

   ID: <b>$USER_ID$</b>   

   IP: <b>$IP_ADDRESS$</b>

   Пол: <b>$USER_GENDER$</b>

   Вы с нами: <b>$USER_REG_DAYS$ д<?if($USER_REG_DAYS$%10=0||$USER_REG_DAYS$%10>4||$USER_REG_DAYS$%100>10&&$USER_REG_DAYS$%100<15)?>ней<?else?><?if($USER_REG_DAYS$%10=1)?>ень<?else?>ня<?endif?><?endif?></b>   
</div></td>   
</tr>   
</tbody>   
</table>   
<table width="100%">   
<tbody>   
<tr>   
<td width="100%">   
<input class="buttonprofile" type="button" onclick="document.location.href='/index/8'; return false;" value="Профиль"/>

<input class="buttonprofile" type="button" onclick="document.location.href='$PM_URL$'; return false;" value="Читать ЛС (<?if($IS_NEW_PM$)?>$IS_NEW_PM$<?else?>0<?endif?>)"/>

<input class="buttonprofile" type="button" onclick="document.location.href='$LOGOUT_LINK$'; return false;" value="Выход"/>   
</td>   
</tr>   
</tbody>   
</table>   
<?else?>   
$LOGIN_FORM$   
<?endif?>


Дуракам закон не писан, если писан то не читан, если читан то не понят, если понят то не так
  • Страница 1 из 1
  • 1
Поиск:

Карта сайта: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38
88x31
88x31
88x31
Хостинг от uCoz