[ Обновленные темы · Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
-=!NEW мини-профиль как на megasofte!=-
easyДата: Вторник, 07.07.2009, 14:49:38 | Сообщение # 1
[red]Главный[/red]
Группа: Администратор
Сообщений: 626
Статус: Offline

в глобальный блок вставляем:

Code
<div align="center"><strong>$WDAY$ <br> $DATE$ <br> $TIME$</strong>    
<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="$USERNAME$" src="http://i029.radikal.ru/0804/cb/8cc27a1c0e73.gif" border="0"><?else?><img class="userAvatar" title="$USERNAME$" src="http://i021.radikal.ru/0804/53/f5b4265aa726.gif" border="0"><?endif?><?endif?>    

<?if($USER_LOGGED_IN$)?>    

<div align="center">Вы вошли как: <strong>$USERNAME$</strong> <br />    
IP Адрес: <strong>$IP_ADDRESS$</strong> <br />    
Группа: <strong>$USER_GROUP$</strong> <br />    
Личных сообщений: <strong>$UNREAD_PM$</strong></p>    

<input class="buttonprofile" type="button" onclick="document.location.href='/index/8'; return false;" value="Профиль">    

<input class="buttonprofile" type="button" onclick="window.open('/index/14','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="ЛС">    

<input class="buttonprofile" type="button" onclick="document.location.href='/index/10'; return false;" value="Выход">    
</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?>    
<br> $LOGIN_FORM$  

А это в CSS(чтобы кнопки были нормальные(как на скрине)):

Code
.buttonprofile {border: 1px solid #799DC4; padding : 5px; text-align: left; color: #0D2938;}


 
Реклама
Ваша реклама тут пишите в лс axmed
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума
Последние обновленные темы Самые популярные темы Самые активные Новые участники
Новый Ловец чек... (6)
Смотрим удалённ... (2)
Автокликер в Ha... (0)
Базы поставщико... (0)
Скрипт sHORT Li... (0)
Новый Ловец чек... (6)
Общение (6)
Игра в слова (6)
+7 (6)
+10 (6)
easy
fafirok
Maylo
guceds
Drago1997
katrinshsh20:46:17
axmedlr23:19:08
zsteshenko0721:37:14
artemkozhin8021:48:51
artemnovick201417:06:44