Обновлённый вид блока с аватаром (в форуме)
Идем в форум>вид материалов
Code
<TABLE style="width: 300px; border-collapse: collapse; border-top-width: medium; border-left-width: medium; border-right-width:
medium; border-bottom-width: medium; border-top-style: none; border-left-style: none; border-right-style: none;
border-bottom-style: none; border-top-color: #000000; border-left-color: #000000; border-right-color: #000000;
border-bottom-color: #000000" width="" align="left"><TBODY><TR><TD style="text-align: left; vertical-align:
middle; letter-spacing: 0px; word-spacing: 0px; border-top-color: #000000; border-left-color: #000000;
border-right-color: #000000; border-bottom-color: #000000; border-top-width: medium; border-left-width:
medium; border-right-width: medium; border-bottom-width: medium; border-top-style: none; border-left-style:
none; border-right-style: none; border-bottom-style: none"><DIV><SPAN style="font-size: 8pt">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/1_left.png" height="17"></td>
<td background="http://unlim.ucoz.net/Pictures/ava_border/up.png" height="17"></td>
<td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/1_right.png" height="17"></td></tr>
<tr><td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/left.png"></td>
<td>
<?if ($AVATAR_URL$)?><IMG title="$USERNAME$" class="userAvatar" border="0" src="$AVATAR_URL$"><?else ?>
<IMG title="Нет аватара" class="userAvatar" border="0" src="http://unlim.ucoz.net/Pictures/no_avatar.jpg"><?endif ?>
</td>
<td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/right.png"></td></tr>
<tr><td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/2_left.png" height="17"></td>
<td background="http://unlim.ucoz.net/Pictures/ava_border/down.png" height="17"></td>
<td width="17" background="http://unlim.ucoz.net/Pictures/ava_border/2_right.png" height="17"></td></tr>
</tbody></table>
$USER_DETAILS_ICON_BAR$
</div>
</SPAN></DIV></TD><TD style="text-align: left; letter-spacing: 0px; word-spacing: 0px; padding-left:
0px; border-top-color: #000000; border-left-color: #000000; border-right-color: #000000; border-bottom-color: #000000;
border-top-width: medium; border-left-width: medium; border-right-width: medium; border-bottom-width: medium;
border-top-style: none; border-left-style: none; border-right-style: none; border-bottom-style: none; vertical-align:
top"><DIV><SPAN style="font-size: 8pt">
<div align="center"><br>
<?if($GROUP_ICON$)?><div class="postRankIco">$GROUP_ICON$</div><?else?><div class="postRankIco">$USER_RANK_ICON$<?endif?>
<?if($USER_TITLE$)?><div class="postRankName"><b>$USER_TITLE$</b></div><?endif?>
<hr>
<div align="left">
<?if($READ_BAN_URL$)?>
<IMG src="http://unlim.ucoz.net/icons/tt.png" alt="null" align="middle" width="16" style="margin-right: 4px" border="0">
<a class="banPercent" title="Смотреть историю замечаний" href="$READ_BAN_URL$">$BAN_RATING$</a></div><?endif?>
<div align="left">
<?if($PUBL_POSTS$)?>
<IMG src="http://unlim.ucoz.net/icons/publ.png" alt="null" align="middle" width="16" style="margin-right: 8px" border="0"
title="Публекаций на murmansk.data.cod.ru">$PUBL_POSTS$<?endif?>
<div align="left">
<?if($AWARDS_READ_URL$)?>
<IMG src="http://unlim.ucoz.net/icons/orden.png" alt="null" align="middle" width="16" style="margin-right: 4px" border="0">
<a href="$AWARDS_READ_URL$" title="Список наград"><span class="repNums">$AWARDS$</span></a></div><?endif?>
<?if($POSTS$)?>
<IMG src="http://unlim.ucoz.net/icons/aim.png" alt="null" align="middle" width="16" style="margin-right: 4px" border="0">
$POSTS$<?endif?>
<br>
<IMG src="http://unlim.ucoz.net/icons/rep.png" alt="null" align="middle" width="16" style="margin-right: 8px" border="0"
title="Репутация">$REP_RATING$
<script type="text/javascript">
function checkajax$ID$(){
forms=document.getElementsByTagName('form');
for(f=0;f<forms.length;f++){
if(forms[f].id=='frm981'){
if(repval=='minus'){document.getElementById('a1').checked='true';
forms[f].reason.value='Минус за ответ в теме:'+window.location.href;
document.getElementById('submfrm981').click();
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}// by Vanofuture
else{document.getElementById('a2').checked='true';
forms[f].reason.value='Плюс за ответ в теме:'+window.location.href;
document.getElementById('submfrm981').click();
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}}}}
</script>
<?if($DO_REP_URL$)?><a href="$DO_REP_URL$"><img onclick="repchange('plus','$ID$');" align="absmiddle" title="Повысить" src="http://unlim.ucoz.net/icons/plus.png" border="0" /></a><?endif?> <a href="$READ_REP_URL$"></a> <?if($DO_REP_URL$)?><a href="$DO_REP_URL$"> <img onclick="repchange('minus','$ID$');" title="Понизить" align="absmiddle" src="http://unlim.ucoz.net/icons/minus.png" border="0" /></a><?endif?>
</div>
<div align="center"><hr>
$USER_RANK_ICON$<br>
<div align="center">
<?if($USER_STATUS$)?><div class="statusBlock">$USER_STATUS$</div><?endif?>
<?if($GROUP_ID$)?> <?else?><?endif?>
</div>
</SPAN></DIV></TD></TR></TBODY></TABLE>
Вставляем после:
Code
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="postTable">
<tr><td width="23%" class="postTdTop" align="center"><a class="postUser" href="javascript://" onClick="emoticon('[b]$USERNAME$[/b],');return false;">$USERNAME$</a></td><td class="postTdTop"><?if($AWARDS_DO_URL$ && $USER_LOGGED_IN$ && $CUR_USER_ID$!=$UID$)?><div style="float:right"><a href="javascript://" onclick="new _uWnd('AwD','Вручить награду',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-28-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'}); return false;"><img src="http://s20.ucoz.net/img/icon/thumbu.png" width="13" border="0" title="Хороший пост"></a> <a href="javascript://" onclick="new _uWnd('AwD','Вручить награду',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-47-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'}); return false;"><img src="http://s20.ucoz.net/img/icon/thumbd.png" width="13" border="0" title="Плохой пост"></a></div><?endif?>Дата: $WDAY$, $DATE$, $TIME$ | Сообщение # $NUMBER$</td></tr>
<tr><td class="postTdInfo" valign="top">
До кода:
Code
</td><td class="posttdMessage" valign="top">
<div class="eMessage img {max-width:10px;}
eMessage img {max-height:10px;}" style="text-align:left;clear:both;padding-top:2px;padding-bottom:2px;">$MESSAGE$</div>
<?if($ATTACHMENT$)?> <div align="left" class="eAttach">Прикрепления: $ATTACHMENT$</div><?endif?>
<?if($SIGNATURE$)?><br><hr size="1" width="150" align="left" class="signatureHr"><span class="signatureView">$SIGNATURE$</span><?endif?>
<?if($EDITEDBY$)?><br><br><div class="edited">Сообщение отредактировал $EDITEDBY$</div><?endif?></td></tr>
<tr><td class="postBottom" align="center"><?if($USER_IP$)?><div class="postip">[ <a class="postIpLink" href="http://www.ripe.net/perl/whois?$USER_IP$" target="_blank">$USER_IP$</a><?if($POST_COUNTRY_ID$)?> (<a href="javascript://" onclick='prompt("","$POST_COUNTRY$");return false;'>$POST_COUNTRY_ID$</a>)<?endif?> ]</div><?else?> <?endif?></td><td class="postBottom">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td></td><td align="right" style="padding-right:15px;">$ENTRY_MANAGE_ICON_BAR$</td><td width="2%" nowrap align="right">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr>
</table></td>
</tr></table>
by Warcraft
источник: неизвестен