Красивейший чат + правила чата
Приступим к установки:
1)Создаём блок и кидаем туда данный код:
Код
<div align="center"><div style="padding:5px;background:url('http://fifagamers.do.am/') repeat-x #494949; border: #2d2d2d 1px solid; color:#333333;">
<center><a href="javascript://" onclick="new _uWnd('Banner','Правила чата',510,250,{align:'justify',min:0,max:0,modal:1,waitimages:1,autosizeonimages:1},{url:'http://fifagamers.do.am/'};); "><img src="http://fifagamers.do.am/" alt="" border="0"></a></center></div>
<hr>
$CHAT_BOX$
2)Этот код в вид материалов чата:
Код
<div class="cBlock$PARITY$" style="padding:0 4px 5px 2px;margin-bottom:3px;">
<div style="text-align:left;">
<?if($USERNAME$)?><a href="$PROFILE_URL$" title="$USERNAME$" rel="nofollow"><img alt="" src="http://fifagamers.do.am/" width="13" border="0" style="vertical-align:-2px"/></a> <?endif?>
<a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='[i]$NAME$, ';return false;"><b><?if($USER_ID$='1')?><font color=e28b00><b>$NAME$</b></font><?else?><b>$NAME$</b><?endif?></b> </a>
<?if($EMAIL$)?> <a href="$EMAIL_JS$" title="$STR_EMAIL$">E</a><?endif?>
<?if($SITE$)?> <a rel="nofollow" href="$SITE$" target="_blank" title="$STR_URL$">W</a><?endif?>
</div>
<div class="cMessage" style="text-align:left;">$MESSAGE$</div>
<?if($CUSTOM1$)?><br>$STR_CUSTOM1$: $CUSTOM1$<?endif?>
<?if($CUSTOM2$)?><br>$STR_CUSTOM2$: $CUSTOM2$<?endif?>
</div>
3)Это в форму добавления сообщений
Код
<?if(!$CAN_ADD$)?><div align="center"><?if($LOGIN_LINK$)?><a href="$LOGIN_LINK$">Для добавления необходима авторизация</a><?else?>Доступ закрыт<?endif?></div><?else?>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<td width="70%" align="right">
<div align="center"><a href="$RELOAD_URI$" title="Обновить"><img alt="" border="0" align="absmiddle" src="http://fifagamers.do.am/" width="13" height="15"></a>
<?if($SMILES_URI$)?>
<a href="$SMILES_URI$" title="Вставить смайл"><img alt="" border="0" align="absmiddle" src="http://fifagamers.do.am/" width="13" height="15"></a>
<?endif?>
<?if($BBCODES_URI$)?>
<a href="$BBCODES_URI$" title="BB-Коды"><img alt="" border="0" align="absmiddle" src="http://fifagamers.do.am/" width="13" height="15"></a>
<?endif?>
<?if($MSGCTRL_URI$)?>
<a href="$MSGCTRL_URI$" title="Управление сообщениями"><img alt="" border="0" align="absmiddle" src="http://fifagamers.do.am/" width="15" height="15"></a></div><?endif?>
</td></tr></table>
<?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>
<?endif?>
<span
style="padding-right: 1px;" id="bc9"><input title="Вставить картинку"
value="img" onclick="tag_image1('mchatMsgF','')"
class="codeButtons" style="width: 25px;" id="img"
type="button"></span>
<span style="padding-right:
1px;" id="bc18"><input title="Code"
value="code" onclick="simpletag1('code','','','mchatMsgF','')"
class="codeButtons" style="width: 30px;" id="code"
type="button"></span>
<span style="padding-right:
1px;" id="bc7"><input title="Вставить ссылку" value="http://" onclick="tag_url1('mchatMsgF','')" class="codeButtons"
style="direction: ltr; width: 45px;" id="url"
type="button"></span>
<script src="http://fifagamers.do.am/" type="text/javascript"></script> <span style="padding-right:
1px;" id="bc1"><input title="Bold" value="b" onclick="simpletag1('b','','','mchatMsgF','')" class="codeButtons"
id="b" style="width: 20px; font-weight: bold;"
type="button"></span>
<span style="padding-right:
1px;" id="bc2"><input title="Italic" value="i" onclick="simpletag1('i','','','mchatMsgF','')" class="codeButtons"
id="i" style="width: 20px; font-style: italic;"
type="button"></span>
<span style="padding-right:
1px;" id="bc3"><input title="Underline" value="u" onclick="simpletag1('u','','','mchatMsgF','')" class="codeButtons"
id="u" style="width: 15px; text-decoration: underline;"
type="button"></span>
4)Радуемся красивому чату)))