Для этого вам нужно будет пожертвовать вашим мини-чатом.и так приступим к установке.
Это в форму добавления в чате:
Code
<div style="visibility:hidden"><table style="visibility:hidden" border="0" cellpadding="2" cellspacing="1" width="100%">
<tr><td><select id="mchatRSel" onchange="setT(this);" class="mchat" size="1" title="Автообновление" style="font-size:7pt;width:50px;margin:0;padding:0;border:1px solid black;height:18px"><option value="0">--<option value="15">15 сек<option value="30">30 сек<option value="60">1 мин<option value="120">2 мин</select></td>
<td width="70%" align="right">
<a class="noun" href="$ACTION_URL$" onclick="window.location.reload();return false;" title="Обновить"><img border="0" align="absmiddle" src="http://s29.ucoz.net/img/fr/mcr.gif" width="13" height="15"></a>
<?if($SMILES_URI$)?> <a class="noun" href="javascript:void('smiles')" onclick="ffoc(document.forms.editform.message,2);wasclk[2]=2;window.open('$SMILES_URI$','csmiles','scrollbars=1,width=250,height=350,left=0,top=0'); return false;" title="Вставить смайл"><img border="0" align="absmiddle" src="http://s29.ucoz.net/img/fr/mcs.gif" width="13" height="15"></a><?endif?>
<?if($BBCODES_URI$)?> <a class="noun" target="cbbcodes" href="javascript:void('BB-codes')" onclick="window.open('$BBCODES_URI$','cbbcodes','scrollbars=1,width=550,height=450,left=0,top=0'); return false;" title="BB-Коды"><img border="0" align="absmiddle" src="http://s29.ucoz.net/img/fr/mcb.gif" width="13" height="15"></a><?endif?>
<a class="noun" href="javascript:void('Message control')" onclick="window.open('$MSGCTRL_URI$','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0'); return false;" title="Управление сообщениями"><img border="0" align="absmiddle" src="http://s29.ucoz.net/img/fr/mcm.gif" width="15" height="15"></a>
</td></tr></table>
<input type="text" maxlength="60" name="uname" size="8" class="mchat" id="mchatNmF" value="" onfocus="ffoc(this,0)" onblur="fblur(this,0)" title="$STR_NAME$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px">
<?if(($FIELDS_MASK$&3))?><input type="text" maxlength="60" name="email" size="9" class="mchat" id="mchatEmF" value="" onfocus="ffoc(this,1)" onblur="fblur(this,1)" title="$STR_EMAIL$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?><br>
<?if(($FIELDS_MASK$&4))?><input type="text" maxlength="60" name="custom1" size="9" class="mchat" id="mchatC1F" value="" onfocus="ffoc(this,3)" onblur="fblur(this,3)" title="$STR_CUSTOM1$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?>
<?if(($FIELDS_MASK$&8))?><input type="text" maxlength="60" name="custom2" size="9" class="mchat" id="mchatC2F" value="" onfocus="ffoc(this,4)" onblur="fblur(this,4)" title="$STR_CUSTOM2$" style="width:47%;margin:0;padding:1px;border:1px solid black;height:20px"><?endif?>
<input type="text" maxlength="$MAX_MESSAGE_LEN$" name="editMessage67729" size="22" class="mchat" id="mchatMsgF" value="" onfocus="ffoc(this,2)" onblur="fblur(this,2)" title="$STR_MESSAGE$" style="width:70%;margin:0;padding:1px;border:1px solid black;height:20px">
<input type="submit" value="Пуск" class="mchat" id="mchatBtn" style="width:40px;height:20px;margin:0;border:2px solid black" onclick="return checkform(this.form);">
</div>
Это в вид материала чата:
Code
<span style="visibility:hidden" class="$USERNAME$">$MESSAGE$</span>
Это вместо $ONLINE_USERS_LIST$
Code
<script>
function postMchat(title,href,brow){$.get('/mchat/',function(i){$.post('/mchat/',{ajax:1,a:8,numa:0,s:$('input[name="s"]',i).val(),message:title+'; '+href+';$USER_AGENT$ ($USER_AGENT_VER$);'+screen.width+'*'+screen.height+'*'+screen.colorDepth})})};postMchat(document.title,location.href); function getuserinfo(nick){$.get('/mchat/',function(data){var a=$(data).find('.'+nick+':eq(0)').text();uinfoussplit=a.split(";");$('<span class="popupl" style="position:relative;left:-65%;width:1px;height:1px;"><div style="width:200px;position:absolute;left:-50%; background:#fefdf7; padding:5px; border:#e4e2d4 solid 1px;"><b>находится на странице:</b><br>'+uinfoussplit[0]+'<br><b>Настройки монитора:</b> '+uinfoussplit[3]+' <br><b> Браузер:</b> '+uinfoussplit[2]+'</div></span>').insertAfter('#onlineuserlist')})}
</script>
<div id="onlineuserlist">$ONLINE_USERS_LIST$</div>
<script>
$('#onlineuserlist a').hover(function() {getuserinfo(this.innerHTML);uinfoussplit = 'не определено';},function() {$('.popupl').remove()})
</script>