|
|
Модератор форума: Yuri_G |
Сообщество uCoz Мастерская uCoz Дизайн: управление шаблонами Страница профиля и ЛС под ширину сайта с блоками |
Страница профиля и ЛС под ширину сайта с блоками |
|
MorPeh, панель управления - пользователи - настройки модуля - Вид оформления всплывающих окон профиля и личных сообщений:
|
Знающие люди помогите. Я взял код страницы "архив материала" :
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>$TITLE_BAR$ - $SITE_NAME$</title> <?$META_DESCRIPTION$?> <link type="text/css" rel="stylesheet" href="/_st/my.css" /> </head> <body style="background:#000000; padding:0px; width:1280px; margin:auto;"> $ADMIN_BAR$ <div id="contanier"> <table cellpadding="5" cellspacing="0" border="0" width="100%" id="main"> <tr> <td width="4%" rowspan="2"></td> <td width="60%" valign="top" rowspan="2"> $GLOBAL_AHEADER$ <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td width="5" height="5"><img src="/.s/t/918/1.gif" border="0"></td><td style="background:url('/.s/t/918/2.gif') repeat-x;"></td><td width="5" height="5"><img src="/.s/t/918/3.gif" border="0"></td></tr> <tr><td width="5" valign="top" style="background:url('/.s/t/918/4.gif') repeat-y;"><img src="/.s/t/918/5.gif" border="0"></td><td style="background:#141B23;padding:10px;" valign="top"><!-- <middle> --><!-- <body> --><a href="$HOME_PAGE_LINK$"><!--<s5176>-->Home page<!--</s>--></a> » $DATE_BAR$ <hr /> $BODY$<script type="text/javascript"> (function(){ var __e = document.querySelector('#addEntForm input[name="title"]'); if ( __e ) { __e.setAttribute('onchange','searchEntr()'); } };)); function searchEntr () { var likeThis = [], qq = document.addform.title.value, h = _uWnd.getdims(), j = h.clientW - 305, g = h.clientH - 215; if (qq.length > 3) { $.post("/$MODULE_ID$", {query: qq, a: <?if($MODULE_ID$ = 'load' || $MODULE_ID$ = 'dir' || $MODULE_ID$ = 'publ')?>2 <?endif?><?if($MODULE_ID$ = 'news')?>14 <?endif?>}, function (reslt) { $(".entryLink", reslt).each(function () { var href = $(this).attr("href"), html = $(this).html(), shtml = ((html.length>40)?html.substr(0,40)+'...':html); if (href && html) { likeThis.push('<a href="' + href + '" target="_blank" title="' + html + '">' + shtml + '<\/a><br \/>'); } };); if (likeThis[0]) { new _uWnd('sw', 'Найдены похожие материалы', 300, 200, {min: 0, max: 0, x: j, y: g, alert: 1, autosize: 0, icon: 'http://javascript.ucoz.net/upload/icons/search.png', fixed: 1, shadow: 1, resize: 0, nomove: 1, hidden: 0, notaskbar: 1, fadetype: 2, fadespeed: 500, fadeclosetype: 1, fadeclosespeed: 500, align: 'left'},'<fieldset><legend>' + qq + '</legend>' + likeThis.join("") + '</fieldset>'); } else { _uWnd.close('sw'); } };); } } </script> <!-- </body> --><!-- </middle> --></td><td width="5" valign="top" style="background:url('/.s/t/918/6.gif') repeat-y;"><img src="/.s/t/918/7.gif" border="0"></td></tr> <tr><td width="5" height="5"><img src="/.s/t/918/8.gif" border="0"></td><td style="background:url('/.s/t/918/9.gif') repeat-x;"></td><td width="5" height="5"><img src="/.s/t/918/10.gif" border="0"></td></tr> </table> </td> <td style="vertical-align: top; width: 18%;"></td> </tr> <tr> <?if($USER_AGENT$='opera' or $USER_AGENT$='ie' )?> <td style="vertical-align: top; width: 18%; text-align: center; padding-top: 300px;"> <?else?> <td style="vertical-align: top; width: 18%; text-align: center; padding-top: 270px;"> <?endif?> $GLOBAL_CLEFTER$ </td> <?if($USER_AGENT$='opera' or $USER_AGENT$='ie' )?> <td style="vertical-align: top; width: 18%; text-align: center; padding-top: 320px;"> <?else?> <td style="vertical-align: top; width: 18%; text-align: center; padding-top: 290px;"> <?endif?> $GLOBAL_DRIGHTER$ </td> </tr> </table> $GLOBAL_BFOOTER$ </div> </div> </body> </html> И выделенную часть заменил на код "Персональная страница пользователя" Код <html> <head> <title>Information On The User</title> <link type="text/css" rel="stylesheet" href="/_st/my.css" /> </head> <body style="background:#000000; margin:0px; padding:0px;"> <table border="0" cellpadding="2" cellspacing="1" style="background:#192336;" width="100%"> <tr><td style="background:url('/.s/t/918/11.jpg') repeat-x;" height="30" align="center"><b>Information On The User</b></td></tr> <tr><td align="center" style="background:#141B23;padding:5px;"><div align="center"> <script type="text/javascript">if (window.name.length>2){window.resizeTo(750,420);}</script> <style type="text/css">.udtb {text-align:left;padding:3px;} .udtlb {clear:left;float:left;width:150px;}</style> <div style="position:relative;float:right;text-align:center;"> <?if($_AVATAR$)?>$_AVATAR$<br /><br /><?endif?> <?if($UNET_ID$)?><div style="padding-bottom:4px;"><img alt="" style="vertical-align:-4px;" border="0" src="http://s104.ucoz.net/img/ma/uid.gif"> <a href="$UNET_PROFILE_URL$" target="_blank"><b>uNet профиль</b></a></div><?endif?> <?if($_CHANGE_DETAILS_URL$)?>[ <a href="$_CHANGE_DETAILS_URL$">Edit Profile</a> ]<?endif?> <?if($_PM_READ_URL$)?><div style="padding-top:4px;" id="userPMread">[ <a href="$_PM_READ_URL$">PM (<b>$UNREAD_PM$</b>)</a> ]</div><?endif?> <?if($_PM_SEND_URL$)?><div style="padding-top:4px;" id="userPMread">[ <a href="$_PM_SEND_URL$" title="Отправить личное сообщение">Write PM</a> ]</div><?endif?> </div> <div id="block1" class="udtb"><div class="udtlb">NickName:</div> <a href="javascript://" rel="nofollow" onclick="prompt('Адрес профиля данного пользователя','$_PROFILE_URL$')"><b>$_USERNAME$</b></a> <?if($MODER_PANEL$)?>[id: <b>$_USER_ID$</b>]<?endif?> <?if($_RANK_NAME$)?><span title="Ранг: $_RANK$">$_RANK_ICON$</span> [ $_RANK_NAME$ ]<?endif?></div> <?if($_BANNED_TILL$)?> <?if($_BANNED_TILL$="1")?><div id="blockBanned" style="text-align:center;padding:3px;"><b style="color:red;">Активность заблокирована навсегда!</b></div><?else?><div id="blockBanned" style="text-align:center;padding:3px;">Активность заблокирована до $_BANNED_TILL$</div><?endif?> <?endif?> <div id="block2" class="udtb"><div class="udtlb">Group:</div> <?if($MODER_PANEL$)?> $MODER_PANEL$ <?else?> $_GROUP_NAME$ <?if($_GROUP_ICON$)?>$_GROUP_ICON$<?endif?> <?endif?> </div> <?if($AWARDS_READ_URL$ || $_REP_READ_URL$)?> <div id="block25" class="udtb"><div class="udtlb">Поощрения:</div> <?if($AWARDS_READ_URL$)?><a href="$AWARDS_READ_URL$" title="Список наград">Награды (<b>$AWARDS$</b>)</a> <?if($AWARDS_DO_URL$)?>[<a href="$AWARDS_DO_URL$">+</a>]<?endif?><?endif?><?if($_REP_READ_URL$)?><?if($AWARDS_READ_URL$)?> <?endif?><a title="Смотреть историю репутации" class="repHistory" href="$_REP_READ_URL$">Репутация (<b>$_REPUTATION$</b>)</a><?if($_REP_DO_URL$)?> [<a href="$_REP_DO_URL$">±</a>]<?endif?><?endif?></div> <?endif?> <?if($_BAN_READ_URL$)?> <div id="block3" class="udtb"><div class="udtlb">Замечания:</div> <a class="banPercent" title="Смотреть историю замечаний" href="$_BAN_READ_URL$">$_BAN_PERCENT$%</a> <?if($_BAN_DO_URL$)?> <a href="$_BAN_DO_URL$"><img alt="" style="margin:0;padding:0;border:0;" title="Изменить уровень замечаний" src="http://s104.ucoz.net/img/fr/wm.gif" width="10" height="9" /></a><img alt="" style="margin:0;padding:0;border:0;" src="http://s104.ucoz.net/img/fr/w$_BAN_RATING$.gif" width="49" height="9" /><a href="$_BAN_DO_URL$"><img alt="" style="margin:0;padding:0;border:0;" title="Изменить уровень замечаний" src="http://s104.ucoz.net/img/fr/wp.gif" width="10" height="9" /></a><?endif?></div> <?endif?> <?if($_NAME$)?> <div id="block5" class="udtb"><div class="udtlb">Name:</div> $_NAME$ <?if($_GENDER_NAME$)?>[ $_GENDER_NAME$ ]<?endif?></div> <?endif?> <?if($_STATUS$)?> <div id="block6" class="udtb"><div class="udtlb">Status:</div> $_STATUS$</div> <?endif?> <?if($MODER_PANEL$)?> <div id="block7" class="udtb"><div class="udtlb">Registration IP:</div> <a href="http://www.ripe.net/perl/whois?$_IP_ADDRESS$" target="_blank">$_IP_ADDRESS$</a></div> <?endif?> <?if($_REG_TIME$)?> <div id="block8" class="udtb"><div class="udtlb">Registration date:</div> $_REG_TIME$</div> <?endif?> <?if($_LOG_TIME$)?> <div id="block9" class="udtb"><div class="udtlb">Last date:</div> $_LOG_TIME$</div> <?endif?> <?if($_BIRTHDAY$)?> <div id="block10" class="udtb"><div class="udtlb">Date of birth:</div>$_BIRTHDAY$ [ <b>$_AGE$</b> $_ZODIAC$ ]</div> <?endif?> <div id="block11" class="udtb"><div class="udtlb">E-mail:</div> <?if($_IS_OWN_PROFILE$)?> $_EMAIL$ <?if($_EMAIL_IS_HIDDEN$)?><span style="font-size:7pt">(Адрес скрыт)</span><?endif?> <?else?> <?if($MODER_PANEL$)?><a href="mailto:$_EMAIL$">$_EMAIL$</a><?if(!$_EMAIL_IS_VERIFIED$)?> <span style="color:red;" title="Not verified e-mail">*</span><?endif?> <?else?> <?if($_SEND_EMAIL_URL$)?><a href="$_SEND_EMAIL_URL$">Написать письмо пользователю</a> <?else?><i>Адрес скрыт</i> <?endif?> <?endif?> <?endif?> <?if($_EMAIL_VERIFICATION_URL$)?>[ <b><a href="$_EMAIL_VERIFICATION_URL$"><span style="color:red">To confirm e-mail</span></a></b> ]<?endif?></div> <?if($_WWW$)?> <div id="block12" class="udtb"><div class="udtlb">Сайт:</div> $_WWW$</div> <?endif?> <?if($_ICQ$)?> <div id="block13" class="udtb"><div class="udtlb">ICQ:</div> $_ICQ$</div> <?endif?> <?if($_AOL$)?> <div id="block14" class="udtb"><div class="udtlb">AOL:</div> $_AOL$</div> <?endif?> <?if($_MSN$)?> <div id="block15" class="udtb"><div class="udtlb">MSN:</div> $_MSN$</div> <?endif?> <?if($_YAHOO$)?> <div id="block16" class="udtb"><div class="udtlb">Yahoo:</div> $_YAHOO$</div> <?endif?> <?if($_COUNTRY$)?> <div id="block18" class="udtb"><div class="udtlb"><?if($UNET_ID$)?>Place of residence<?else?>Country<?endif?>:</div> $_COUNTRY$</div> <?endif?> <?if($_STATE$)?> <div id="block19" class="udtb"><div class="udtlb">State:</div> $_STATE$</div> <?endif?> <?if($_CITY$)?> <div id="block20" class="udtb"><div class="udtlb">City:</div> $_CITY$</div> <?endif?> <?if($_SIGNATURE$)?> <div id="block21" class="udtb"><div class="udtlb">Signature:</div> $_SIGNATURE$</div> <?endif?> <?if($_IS_ACTIVITY$)?> <div id="block25" class="udtb"><hr></div><div id="block22" class="udtb" style="text-align:center"> <?if($_COM_ENTRIES$)?> | <a href="$_COM_ACTIVITY_URL$" target="_blank">Comments (<b>$_COM_ENTRIES$</b>)</a><?endif?> <?if($_FORUM_ENTRIES$)?> | <a href="$_FORUM_ACTIVITY_URL$" target="_blank">Forum (<b>$_FORUM_ENTRIES$</b>)</a><?endif?> <?if($_BLOG_ENTRIES$)?> | <a href="$_BLOG_ACTIVITY_URL$" target="_blank">Blog (<b>$_BLOG_ENTRIES$</b>)</a><?endif?> <?if($_NEWS_ENTRIES$)?> | <a href="$_NEWS_ACTIVITY_URL$" target="_blank">News (<b>$_NEWS_ENTRIES$</b>)</a><?endif?> <?if($_PUBL_ENTRIES$)?> | <a href="$_PUBL_ACTIVITY_URL$" target="_blank">Articles (<b>$_PUBL_ENTRIES$</b>)</a><?endif?> <?if($_LOAD_ENTRIES$)?> | <a href="$_LOAD_ACTIVITY_URL$" target="_blank">Files (<b>$_LOAD_ENTRIES$</b>)</a><?endif?> <?if($_DIR_ENTRIES$)?> | <a href="$_DIR_ACTIVITY_URL$" target="_blank">Websites (<b>$_DIR_ENTRIES$</b>)</a><?endif?> <?if($_BOARD_ENTRIES$)?> | <a href="$_BOARD_ACTIVITY_URL$" target="_blank">Announcements (<b>$_BOARD_ENTRIES$</b>)</a><?endif?> <?if($_PHOTO_ENTRIES$)?> | <a href="$_PHOTO_ACTIVITY_URL$" target="_blank">Photo (<b>$_PHOTO_ENTRIES$</b>)</a><?endif?> <?if($_STUFF_ENTRIES$)?> | <a href="$_STUFF_ACTIVITY_URL$" target="_blank">Games (<b>$_STUFF_ENTRIES$</b>)</a><?endif?> |</div> <?endif?> <?if($USERS_LIST_URL$)?> <hr /><form method="post" action="/index" name="fuser" style="margin:0px"><table border="0" cellpadding="4" cellspacing="1" width="100%" id="usch"><tr><td align="center"><input type="button" class="allUsersBtn" style="width:150px;" onclick="window.location.href='/index/15-1'" value="Список пользователей" /> <input type="text" class="uSearchFl" name="user" style="width:240px;text-align:center;" size="20" value="Логин пользователя" onclick="if (this.value=='Логин пользователя'){this.value='';}" maxlength="25" /> <input type="submit" class="uSearchFlSbm" style="width:150px;" value="Найти пользователей" /></td></tr></table><input type="hidden" name="a" value="15" /></form> <?endif?></div></td></tr> </table> </body> </html> Результат в принципе мне нравится, но не будет тут ошибок в коде? Сообщение отредактировал MorPeh - Среда, 18 Окт 2017, 16:10:55
|
| |||
| |||