Выкладываю наш старый миничат, т.к. мною был установлен миничат от TRANE73.Модерация в ajax окне, а не на отдельной странице
Скрин:
http://s019.radikal.ru/i629/1203/31/3379c661241a.jpg
В вид материалов:
Code
<link type="text/css" rel="StyleSheet" href="http://uscripter.ru/_st/my.css" />
<link id="link_layer" type="text/css" rel="stylesheet" href="http://src.ucoz.net/src/layer3.css" />
<link id="link_panel" type="text/css" rel="stylesheet" href="http://src.ucoz.net/src/panel3.css" />
<script type="text/javascript" src="http://src.ucoz.net/src/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://src.ucoz.net/src/uwnd.js?2"></script>
<style type="text/css"> body {padding:0 !important;} </style>
<div style="margin-top:5px;">
<div class="xw-tr"><div class="xw-tc xw-tsps" style="border-left:0;"></div></div>
<div class="xw-mr" style="border-right:2px;"><div class="xw-mc topBlock" style="border-left:0;">
<div class="panelBar">
<div style="float:right"><a href="$PROFILE_URL$"><img src="http://www.iconsearch.ru/uploads/icons/crystalclear/16x16/edit_user.png"></a></div>
<b><font size="-2px"><a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='[i]$NAME$[/i], ';return false;">$NAME$</a></font></b>
<div style="clear:both"></div>
</div>
</div></div>
<div class="xw-mr">
<div style="border-top:0;padding-left:4px;border-left:0" class="xw-mc contentBg">
$MESSAGE$
<?if($CUSTOM1$)?><br>$STR_CUSTOM1$: $CUSTOM1$<?endif?>
<?if($CUSTOM2$)?><br>$STR_CUSTOM2$: $CUSTOM2$<?endif?>
</div> </div>
<div class="xw-br"><div class="xw-bc"><div class="xw-footer"></div></div></div>
</div>
</div>
В форму добавления сообщений:
Code
<br>
<div class="xw-tc xw-tsps"></div>
<div class="xw-mc topBlock" style="padding-left:0;border-left:0;">
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a><?else?>Доступ запрещен<?endif?></div><?else?>
<?if(!$USER_LOGGED_IN$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td colspan="2">$FLD_NAME$</td></tr>
<tr><td width="50%">$FLD_EMAIL$</td><td>$FLD_URL$</td></tr>
</table>
<?endif?>
<?if($FLD_CUSTOM1$ || $FLD_CUSTOM2$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_CUSTOM1$</td><td>$FLD_CUSTOM2$</td></tr>
</table>
<?endif?>
<?if($FLD_SECURE$)?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="50%">$FLD_SECURE$</td><td align="right">$IMG_SECURE$</td></tr>
</table>
<?endif?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tr><td width="95%" rowspan="2">$FLD_MESSAGE$</td>
<td align="center" valign="top"><div style="font-size:10px;">$LENGTH_COUNTER$</div></td>
</tr><tr><td align="center" valign="bottom">$SUBMIT$</td></tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td width="50%">
<div class="MmenuOver" style="margin-top:2px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="MmenuLeft"></td><td class="MmenuCenter">
<div style="padding:0 5px;" class="mmenuItem">
<strong><center><a href="$SMILES_URI$">Смайл</a></center></strong>
</div></td><td class="MmenuRight"></td>
</tr></table></div>
</td>
<td width="50%">
<div class="MmenuOver" style="margin-top:2px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="MmenuLeft"></td><td class="MmenuCenter">
<div style="padding:0 5px;" class="mmenuItem">
<strong><center><a href="javascript://" onclick="new _uWnd('bb','bb-коды',500,500,{autosize:0,align:1,},{url:'/index/17',xml:false});" >bb-код</a></center></strong>
</div></td><td class="MmenuRight"></td>
</tr></table></div>
</td>
</tr></table>
<?if$MSGCTRL_URI$?>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td width="50%">
<div class="MmenuOver" style="margin-top:2px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="MmenuLeft"></td><td class="MmenuCenter">
<div style="padding:0 5px;" class="mmenuItem">
<strong><center><a href="javascript://" onclick="new _uWnd('moder_chat','Модерация чата',300,500,{autosize:0,align:1,},{url:'/mchat/0-1/',xml:false});" class="chillTip" title="Модерация чата">Модерация</a></center></strong>
</div></td><td class="MmenuRight"></td>
</tr></table></div>
</td>
<td width="50%">
<div class="MmenuOver" style="margin-top:2px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="MmenuLeft"></td><td class="MmenuCenter">
<div style="padding:0 5px;" class="mmenuItem">
<strong><center><a href="$RELOAD_URI$">Обновить</a></center></strong>
</div></td><td class="MmenuRight"></td>
</tr></table></div>
</td></tr></table>
<?else?>
<div class="MmenuOver" style="margin-top:2px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>
<td class="MmenuLeft"></td><td class="MmenuCenter">
<div style="padding:0 5px;" class="mmenuItem">
<strong><center><a href="$RELOAD_URI$">Обновить</a></center></strong>
</div></td><td class="MmenuRight"></td>
</tr></table></div> <?endif?>
<?endif?>
</div>
<div class="xw-bc"><div class="xw-footer"></div></div>
<br>