[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Softing.do.am » Скрипты » Новый мини профиль
Новый мини профиль
  Добавил: Hoverik  
 

Создаем глобальный блок и туда капируем это (блок вставляем на страницу)
Code
<DIV align="center"><script language="JavaScript">   
function process(){}   
today = new Date()   
if((today.getHours() < 12) && (today.getHours() >= 6))   
{ document.write("<b>Доброе утро $USER_FULL_NAME$.</b>")}   
if((today.getHours() >= 12) && (today.getHours() < 18))   
{ document.write("<b>Добрый день $USER_FULL_NAME$</b>")}   
if((today.getHours() >= 18) && (today.getHours() <= 23))   
{ document.write("<b>Добрый вечер $USER_FULL_NAME$</b>")}   
if((today.getHours() >= 0) && (today.getHours() < 4))   
{ document.write("<b>Здравствуйте $USER_FULL_NAME$. Не спится?</b>")}   
if((today.getHours() >= 4) && (today.getHours() <= 6))   
{ document.write("<b>Здравствуйте $USER_FULL_NAME$.<br>Мы рады вас видеть в столь ранний час.</b>")}   
</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://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$)?>   
<br>Вы вошли как: $USERNAME$   
<br>Вы $USER_GROUP$ кинотеатра   
<br>Ваш IP адрес: $IP_ADDRESS$   
<br>Вы здесь: <font color="#ff0000"><b>$USER_REG_DAYS$</b></font>-й день   
<input class="buttonprofile" type="button" onclick="window.open('/index/15-1','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Список пользователей">   
<input class="buttonprofile" type="button" onclick="window.open('/index/11','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Изменить сведения">   
<input class="buttonprofile" type="button" onclick="window.open('/index/14-999-0-1','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); 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="Читать ЛС ($UNREAD_PM$)"><br>   
<input class="buttonprofile" type="button" onclick="window.open('/index/8','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350'); return false;" value="Профиль"><br>   
<input class="buttonprofile" type="button" onclick="document.location.href='/index/10'; return false;" value="Выход">        

<center>   
<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>Гость, мы рады вас видеть. Пожалуйста зарегистрируйтесь или авторизуйтесь!<br><a href="http://kinoland.3dn.ru/404.htm">~>|Посетите эту страницу|<~</a><br>   
$LOGIN_FORM$   
<?endif?></center>

в панель управления/управление дизайном/пользователи/форма входа (не обязательно)
Code
<DIV style="PADDING-BOTTOM: 3px; COLOR: red; TEXT-ALIGN: center">$ERROR$</DIV><!--ENDIF--><?if($PAGE_ID$="login")?>   
<DIV style="WIDTH: 220px; TEXT-ALIGN: center"><?endif?><?if($PAGE_ID$="denied")?>   
<DIV style="WIDTH: 170px"><?endif?>   
<DL class=uLogBlock>   
<DIV class=uLogDescr><STRONG><SPAN style="COLOR: #1e90ff">Логин:</SPAN></STRONG></DIV>   
<DIV class=uLogField><INPUT class=log1 style="WIDTH: 100px" maxLength=25 name=user></DIV></DL>   
<DL class=uLogBlock>   
<DIV class=uLogDescr id=uld2><STRONG><SPAN style="COLOR: #1e90ff">Пароль:</SPAN></STRONG></DIV>   
<DIV class=uLogField id=ulf2><INPUT class=log2 style="WIDTH: 100px" type=password maxLength=15 name=password></DIV></DL>   
<DL class=uLogBlock>   
<DIV class=uLogRem><INPUT id=rem$PAGE_ID$ type=checkbox CHECKED value=1 name=rem><LABEL for=rem$PAGE_ID$>запомнить</LABEL> <?if($PAGE_ID$="login")?><INPUT id=hid$PAGE_ID$ type=checkbox value=1 name=hidden><LABEL for=hid$PAGE_ID$>скрытый</LABEL><?endif?></DIV>   
<DIV class=uLogSbm><INPUT class=loginButton type=submit value=Вход name=sbm></DIV></DL>   
<DL class=uLogBlock>   
<DIV class=uLogLinks style="FONT-SIZE: 7pt; TEXT-ALIGN: center"><A id=ull1 href="$REMINDER_LINK$">Забыл пароль</A> · <A id=ull2 href="$REGISTER_LINK$">Регистрация</A></DIV></DL><?if($PAGE_ID$="login" or $PAGE_ID$="denied")?></DIV><?endif?></DIV>
 
  Просмотров:  
Форум » Softing.do.am » Скрипты » Новый мини профиль
  • Страница 1 из 1
  • 1
Поиск: