Code
<style>body {background: #313131;}</style>
<div style="padding:4px; background:#313131;padding:1px;margin:2px 0 2px 0;border:1px solid #cfcece;" id="ichatmsg168">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<div style="text-align:right;">
<a title="Написать письмо" onclick="window.open('/index/14-$USER_ID$-0-1','pmw','scrollbars=1,top=0,left=0,resizable=1,width=680,height=350');return false;" href="javascript://" ><img src="http://joomla.ucoz.com/ucoz/1/1/messag.png" align="right" border="0"></a>
</div>
<td width="38" style="padding:3px 0 2px 2px">
<img alt="$USERNAME$" src="$AVATAR_URL$" style="border:1px solid #EAEAEA; padding:2px; width:34px; height:34px;">
<img alt="$USERNAME$" src="http://x-zed.ru/net-avatara_100x100.gif" style="border:1px solid #EAEAEA; padding:2px; width:34px; height:34px;">
</td>
<td style="font-size:7pt; color:#666; padding-left:4px;">
<a style="text-decoration:none" title="Профиль" href="javascript://" rel="nofollow" onclick="return show_profile('$PROFILE_URL$');"><span style="color:#ffff00"><span class="$PROFILE_URL$"><b>$USERNAME$</b></span></a><br>
<span style="color:#ffffff"><span style="font-size:6.3pt">$DATE$ в $TIME$</span></span>
<br>
<span style="color:#cccccc; font-size:7pt;">
<a style="text-decoration:none" href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='$NAME$, ';return false;"><span style="color:#FFAE00">Ответить</a>
</span>
</td>
</tr>
</tbody>
</table>
<div class="linnov">
</div>
<div style="padding:0 3px 0 3px; text-align:left;">
$MESSAGE$
</div>
</div>
Code
$CHAT_BOX$<script type="text/javascript">
$('#mchatMsgF').keyup(function(){
var url = ["пида","пидо","казё","кака","чмо","лох","хуй","козе","пизд","уёб","член","сос","хуё","поеб","еба","уёби","нуб","козё","казё","нубяра","хер", "ебла","сук","пизду","гандо","урод","соси","навали","пиздю","ебать","идиот","придурок","сасать"];
var field = $(this).val();
for (i=0; i<url.length; i++){
if(field.toLowerCase().indexOf(url[i],'ig')!=-1)
if(field.search(document.location.host)==-1) {
_uWnd.alert('Мат в чате запрещён!','',{w:180,h:38,tm:5000});
$(this).val(field.replace(url[i],''));
}
}
});
</script>
<script type="text/javascript">
$('#mchatMsgF').keyup(function(){
var url = ["http://", "https://", "http", "://", ".at.ua", ".org", "http://www.", "www", ".ucoz", ".ru", ".su", ".com", ".net"];
var field = $(this).val();
for (i=0; i<url.length; i++){
if(field.toLowerCase().indexOf(url[i],'ig')!=-1)
if(field.search(document.location.host)==-1) {
_uWnd.alert('Ссылки в чате запрещены!','',{w:180,h:38,tm:5000});
$(this).val(field.replace(url[i],''));
}
}
});
</script>