Вот этот код вставляете в вид новостей в новости сайта:
Code
<style type="text/css" media="all">
@import url(highslide/highslide.css);
</style>
<script type="text/javascript" src="highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'highslide/graphics/';
</script>
<table style="border: 1px solid rgb(0, 0, 0); background: transparent url(http://pd-team.moy.su/Dizain/91700.gif) repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" width="100%" border="0" cellpadding="0" cellspacing="0" height="23">
<tbody><tr><td class="eTitle" style="font-size: 10px; padding-left: 10px;" width="100%" align="center"><b><font color="white"><a href="$ENTRY_URL$">$TITLE$ </a><?if($DATE$="Сегодня" or $DATE$="Вчера")?><img src="http://pd-team.moy.su/new_day.gif"><?endif?> </font></b></td>
</tr></tbody></table>
<table class="eBlock" width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="" align="center">
<table class="eBlock" width="100%" border="0" cellpadding="1" cellspacing="0"><tbody><tr><td style="">
<table style="" width="100%" border="0" cellpadding="1" cellspacing="1">
<tbody><tr><td colspan="2" style="" align="left">
<div style="float: right;">
<?if($USERNAME$)?> <img alt="" src="http://russian-town.3dn.ru/img/by.png" align="" border="0">Автор: <a title="Автор новости $USERNAME$" href="$PROFILE_URL$">$USERNAME$</a><?endif?> |<img alt="" src="http://russian-town.3dn.ru/img/categories.png" align="" border="0"> <?if($CATEGORY_NAME$)?>Категория: <a title="Категория : $CATEGORY_NAME$" href="$CATEGORY_URL$">$CATEGORY_NAME$</a><?else?>категории нет<?endif?> |<img alt="" src="http://russian-town.3dn.ru/img/date.png" align="" border="0">
Дата:$DATE$ <?if($MODER_PANEL$)?>$MODER_PANEL$<?endif?>
</div>
</td>
</tr>
<tr valign="top"><td style="" width="22%" align="left">
<DIV class=eMessage style="CLEAR: both; PADDING-BOTTOM: 5px; PADDING-TOP: 10px; TEXT-ALIGN: left"><?if($OTHER1$)?>
<center><a href="$OTHER1$" class="highslide" onclick="return hs.expand(this, {captionId: 'caption1'})"><img src="$OTHER1$" border=0 width=200 style="border:none;"></a></center><br><?endif?>
</td>
<td style="" align="right">
<div class="eMessage" style="text-align: left; clear: both;">
$MESSAGE$
</div></td></tr>
<tr><td colspan="2" style="" align="left">
<div style="float: right;"></div>
<a title="Нажми для просмотра $TITLE$ целиком" href="$ENTRY_URL$"><b> <img alt="" src="http://russian-town.3dn.ru/img/loads.gif" align="" border="0">Подробнее/Скачать</b></a> | <?if($RATING$)?>
<script language="JavaScript">
rating=$RATING$;
result='';
var n;
if(rating>=0.0) result='0'
if(rating>=1.0) result='1'
if(rating>=1.5) result='1.5'
if(rating>=2.0) result='2'
if(rating>=2.5) result='2.5'
if(rating>=3.0) result='3'
if(rating>=3.5) result='3.5'
if(rating>=4.0) result='4'
if(rating>=4.5) result='4.5'
if(rating>=5.0) result='5'
if(rating>=5.5) result='5.5'
if(rating>=6.0) result='6'
if(rating>=6.5) result='6.5'
if(rating>=7.0) result='7'
if(rating>=7.5) result='7.5'
if(rating>=8.0) result='8'
if(rating>=8.5) result='8.5'
if(rating>=9.0) result='9'
if(rating>=9.5) result='9.5'
if(rating>=10.0) result='10'
document.write(' <img style="border: 0px solid ;" src="http://russian-town.3dn.ru/rate/');
document.write(result);
document.write('.gif">');
</script>
<?endif?> |<img alt="" src="http://russian-town.3dn.ru/img/visits.png" align="" border="0"> Просмотров: [<b>$READS$</b>] | <img alt="" src="http://russian-town.3dn.ru/img/coments.png" align="" border="0"> <a title="Количество комментариев $TITLE$ ($COMMENTS_NUM$)" href="$COMMENTS_URL$"> Комментарии ($COMMENTS_NUM$)</a> | <script type="text/javascript">
function repchange(val,id){
repval=val;
ajaxtime=setInterval('checkajax'+id+'()',500);}
</script>
<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=='plus'){document.getElementById('a2').checked='true';
forms[f].reason.value='Благодарю за $ENTRY_TITLE$'
document.getElementById('submfrm981').click();
document.getElementById('sbt981').onclick=null;
clearInterval(ajaxtime);}}}}
</script>
Кнопка:
Code
<?if($USER_LOGGED_IN$)?><a title="Репутация $USER$'a автоматически повысится. Многократное нажатие 'Спасибо' запрещено и строго наказывается!" href="javascript://" onClick="openLayerB('Rd',0,'/index/23-$UID$','Change Reputation',380,200,1); return false;"><img src="http://pd-team.moy.su/Dizain/spasibo.png" border="0" align="absmiddle" onClick="repchange('plus','$ID$');" /></a><?endif?>
</td></tr>
</tbody></table>
</td></tr></tbody></table>
</td></tr></tbody></table>