Главная » 2012 » Март » 16 » Скрипты uCoz: Вход / Профиль в свернутом режиме
19:00
Скрипты uCoz: Вход / Профиль в свернутом режиме

Вход / Профиль в свернутом режиме


Советуем посмотреть:



В ПУ -> Управление дизайном -> Верхняя часть сайта, вставляем этот код:
Code
<?if($LOGIN_LINK$)?>
<div style="position: fixed; top: 40px;left:0; ">
  <div style="position: fixed; left: 0px; "><div style="-moz-border-radius:6px ;border-radius:6px ;-webkit-border-radius:6px ;border:1px dashed #000;background-color:yellow;margin-left:5px;padding:5px;"><img src="http://www.iconsearch.ru/uploads/icons/humano2/32x32/utilities-log-viewer.png" border="0" title="Форма входа" align="absmiddle"> <a onclick="$('#profil_by_webo4ka').slideToggle('fast')" href="javascript://">Вход</a></div></div>

  <div id="profil_by_webo4ka" style="width:200px;padding:10px;display:none;position:fixed;top:40px; left:115px; border:1px solid #666666;-moz-border-radius:6px ;border-radius:6px ;-webkit-border-radius:6px ;align:center;background:lightblue;">
$LOGIN_FORM$</div> </div>
<div style="position: fixed; top: 90px;left:0; "><?ifnot $USER_LOGGED_IN$?><script type="text/javascript" src="http://ucodes.ru/js/unetReg.js"></script>
  <div style="-moz-border-radius:6px ;border-radius:6px ;-webkit-border-radius:6px ;border:1px dashed #000;background-color:yellow;margin-left:5px;padding:5px;vertical-align:middle;"><img src="http://www.iconsearch.ru/uploads/icons/oxygen/32x32/preferences-desktop-cryptography.png" border="0" align="absmiddle"><a href="http://lazko-viktor.at.ua/index/3">Регистрация</a></div><?endif?></div>
<?endif?><?if($USER_LOGGED_IN$)?>
<div style="position: fixed; left: 0px;top:70px; "><div style="-moz-border-radius:6px ;border-radius:6px ;-webkit-border-radius:6px ;border:1px dashed #000;background-color:yellow;margin-left:5px;padding:5px;"><img src="http://www.iconsearch.ru/uploads/icons/webapp/32x32/profile.png" border="0" title="Профиль" align="absmiddle"><a onclick="$('#profil_by_webo4ka').slideToggle('fast')" href="javascript://">Профиль</a></div> </div>
  <div id="profil_by_webo4ka" style="width:200px;padding:10px;display:none;position:fixed;top:115px; left:5px; border:1px solid #666666;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0;-webkit-border-radius:6px 6px 0 0;align:center;background:lightblue;">

  <table class="boxTable"><tr><th><!-- <bt> --><!--<s5158>-->Ваш профиль [<a onclick="$('#profil_by_webo4ka').slideToggle('fast')" href="javascript://" title="Скрыть профиль">Cкрыть</a>]<!--</s>--><!-- </bt> --></th></tr><tr><td class="boxContent">
<div align="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><br><font color=red>$USER_FULL_NAME$</font>!</strong>
<br> <br>

<?if($USER_AVATAR_URL$)?><img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USER_FULL_NAME$" src="http://s56.radikal.ru/i152/0811/94/7504f641ae8e.png" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://s003.radikal.ru/i204/1103/d2/d2ffd0a24d63.png" border="0"><?endif?><?endif?>

<div align="left"><span style="font-weight: bold; color: rgb(0, 102, 0);"><br><font color="#006400">Группа:</font></span> <b>$USER_GROUP$
  <div align="left"><font color="#006400"><strong>Время:</strong></font><b> $TIME$</b><br></div></div>

<div align="center">
  <?if($USER_LOGGED_IN$)?><noindex><script type="text/javascript">function uploadinajax(){new _uWnd('uploadfile','Добавить материал:',200,300,{align:0,shadow:1,autosize:1,maxh:350,minh:100,resize:0,icon:'http://icons.iconarchive.com/icons/pixelmixer/basic/16/plus-icon.png'},'[color=red]<a href="/load/0-0-0-0-1"><img src="http://irochka.info/images/thumb.gif" border="0" alt="" /> Добавить файл</a> <br> <a href="/news/0-0-0-0-1"><img src="http://t3.gstatic.com/images?q=tbn:ANd9GcTnhvraCgdUr5-D9XByTS7_4MznyS4gB8PEbzLpBGVOv1BY7p0T" border="0" alt="" /> Добавить новость</a> <br> <a href="/publ/0-0-0-0-1"><img src="http://www.bakingshop.com/bc/img/WFO-811.jpg" width=50 height=50 border="0" alt="" /> Добавить статью</a> <br> <a href="javascript://" onclick="uWeb_photo.open()"><img src="http://hotel-grand.com.ua/ICONKA_PHOTICK.gif" border="0" alt="" /> Добавить фото</a>'); }</script> <br> <a href="javascript:;" onclick="uploadinajax();[/color]"><img src="http://mxtm.ucoz.ru/images/material.png" border="0" alt="" /></a></noindex> <br> <?endif?> </p>
<div align="left"><a href="$PERSONAL_PAGE_LINK$" target="_blank" title="Ваш профиль на сайте"><img src="http://soft-fan.3dn.ru/icons_forum/progr.gif" border="0"> Профиль</a>
<br><a href="javascript:openOnClick('users')"title="Список пользователей данного веб-сайта"><img src="http://babin.at.ua/image/ico2/vcard.png"> Список пользователей</a>
<br><a href="javascript:openOnClick('options')"title="Изменить данные в профиле"><img src="http://babin.at.ua/image/ico2/wrench.png"> Изменить информацию</a>
<br><a href="javascript:openOnClick('send')"title="Отправить Личное Сообщение (ЛС)"><img src="http://babin.at.ua/image/ico2/email_edit.png"> Отправить сообщение</a>
<br><a id="upml2" href="/index/14" onclick="ajaxPm.start();return false;" title="Читать Личные Сообщения (ЛС)"><img src="http://babin.at.ua/image/ico2/email.png"> Читать ЛС (<b>$UNREAD_PM$</b>)</a>
<?if($IS_NEW_PM$)?><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><?endif?> </div>
<DIV><br><center><a target="_blank" href="$LOGOUT_LINK$" title="Выйти с профиля сайта"><img src="http://www.райхан.рф/wp-content/uploads/2011/06/exit.png" border="0"></a></center></DIV>
  </div> </td></tr></table></div>
<?endif?>


Там где Вход, будет разворачиватся Ваша форма входа а не от Unet, а там где профиль, профиль не мой, но переделанный и картинки помойму Вам самим надо будет перезалить...

В профиль добавлена функция лично от меня добавить материал: на моем сайте активированы только новости, каталог сайтов, каталог файлов и фотоальбомы, по этому в добавлении материала Вам придется добавить дополнительные ссылки, но это по желанию.

Спасибо за внимание, с уважением Сергей!
Материал взят с сайта infoscript.ru













Внимание! Копирование данного материала запрещено без указания ссылки на сайт Infoscript.ru
Просмотров: 354 | Добавил: Ahmed | Теги: профиль, вход, UCOZ:, Скрипты, режиме, свернутом | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *: