Установка:
Зайдите в панель управления => Управление дизайном => Мини-чат
=> Вид материалов => Сотрите все и вставьте этот код:
Код
<div style="padding:0px 4px 0px 3px;">
<div style="float:right;font-size:9px;" title="$DATE$">$TIME$</div>
<?if($USERNAME$)?><a class="m" href="javascript://"
onclick="ffoc(document.forms.addform.message,2);document.forms.addform.message.value+='[b]$USERNAME$[/b],
'" title="Цитировать $USERNAME$">
<?if($USER_ID$=1)?><span
style="color:#108205;">$USERNAME$</span><?else?>[b]<span>$USERNAME$</span>[/b]<?endif?>
</a><?endif?>
<div class="cMessage" style="margin:0px 0px 5px 0px;border-bottom: #e5e5e5 1px solid;">$MESSAGE$
<div style="padding:1px"></div>
</div>
Зайдите в панель управления => Управление дизайном => Мини-чат
=> Вид материалов => Форма добавления сообщения => Сотрите все и
вставьте этот код:
Код
<STYLE type="text/css"><!--.postSubmit {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #0066ff;color: #ffffcc;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postSubmit:hover {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #c70404;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postReset {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #32c425;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postReset:hover {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #32c425;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postPreview {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #206ee3;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postPreview:hover {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #32c425;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postReset {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #206ee3;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.postReset:hover {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #32c425;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.smaile {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #1779BD;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}.smaile:hover {border: 0px;padding: 5px;text-align: center;font-size: 10px;margin: 0px;width: auto;background: #32c425;color: #ffffff;cursor: pointer;letter-spacing: 0px;font-family: verdana;}--></STYLE>
<INPUT type="button" href="" onclick="window.location.reload();return false;" title="Обновить" style="height: 20;;width:59;margin:0px" value="Обновить" class="postReset">
<INPUT type="button" class="postPreview" onclick="window.open('/mchat/0-1','mchatCtrl','scrollbars=1,width=550,height=550,left=0,top=0'); return false;" style="height: 20;width:25;margin:0px" value="@">
<INPUT type="button" href="javascript:void('smiles')" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('/index/35-0-2','csmiles','scrollbars=1,width=250,height=350,left=0,top=0'); return false;" onclick="ffoc(document.forms.addform.message,2);wasclk[2]=2;window.open('/index/35-0-2','csmiles','scrollbars=1,width=250,height=350,left=0,top=0'); return false;" title="Вставить смайл" style="height: 20;;width:49;margin:0px" value="Смайлы" class="smaile"><INPUT type="text" maxlength="60" name="uname" size="8" class="mchat" id="mchatNmF" value="" onfocus="ffoc(this,0)" onblur="fblur(this,0)" title="Имя" style="display: none;height: 24px; color: #777777; font-family: Verdana; border: 1px solid #aaaaaa; background-color: #ffffcc; background: url('http://coool.net.ru/images/1/main_top_gradient.png'); background-repeat: repeat-x; background-position: left top;">
$FLD_MESSAGE$<INPUT type="submit" style="height: 23; width:68; margin:0px" value="Отправить" class="postSubmit" id="mchatBtn" onclick="checkform(this.form);">
Готово!