Форма Добавления Сообщений Заменить на всё!

<script type="text/javascript" src="http://criminall.ucoz.com/alltranslit.js"></script>

<script language="JavaScript" type="text/javascript">   
function chklen()   
{   
max_limit=40000;   
str = document.addform.message.value;   
len = str.length;   

if (len > max_limit)   
{   
str = str.substring(0,max_limit);   
len = str.length;   
document.addform.message.value = str;   
}   

document.addform.fcounter.value = (max_limit - document.addform.message.value.length);   

while ( document.addform.fcounter.value<0)   
{   
document.addform.message.value = str.substring(0,len-1 );   
str = document.addform.message.value;   
len = str.length;   
document.addform.fcounter.value = (max_limit - document.addform.message.value.length);   
}   
}   
</script>

<div class="gDivLeft"><div class="gDivRight">
<table border="0" width="100%" cellspacing="1" cellpadding="0" class="gTable" id="frM53">
<tr id="frM54"><td colspan="2" class="gTableTop" id="frM55"><div style="float:right" class="gTopCornerRight"></div><a name="post">$FORM_TITLE$</a></td></tr>
<?if($ERROR$)?>
<tr id="frM1"><td colspan="2" align="center" class="gTableError" id="frM2">$ERROR$</td></tr>
<?endif?>
<?if($_USER$)?>
<tr id="frM3"><td class="gTableLeft" id="frM4">Имя:</td><td class="gTableRight" id="frM5">$_USER$</td></tr>
<?endif?>
<?if($_THREAD_NAME$)?>
<tr id="frM25"><td class="gTableLeft" id="frM26">Название темы:</td><td class="gTableRight" id="frM27">$_THREAD_NAME$</td></tr>
<tr id="frM28"><td class="gTableLeft" id="frM29">Описание темы:</td><td class="gTableRight" id="frM30">$_THREAD_DESCR$</td></tr>
<?endif?>
<?if($_POLL_QUESTION$)?>
<tr id="frM31"><td class="gTableRight" colspan="2" id="frM32"> </td></tr><tr id="frM33"><td class="gTableLeft" id="frM34">Вопрос голосования:</td><td class="gTableRight" id="frM35">$_POLL_QUESTION$</td></tr><tr id="frM36"><td class="gTableLeft" id="frM37">Пункты опроса:<div class="pollHelp">Введите по одному ответу на строку. Максимум <b>10</b> ответов.</div></td><td class="gTableRight" id="frM38">$_POLL_ANSWERS$</td></tr><tr id="frM40"><td class="gTableLeft" id="frM41">Опции опроса:</td><td class="gTableRight" id="frM42">$_POLL_ONLY_OPT$ <label for="pollonly">Только опрос (писать ответы в теме будет нельзя)</label><br />$_POLL_MULTI_OPT$ <label for="pollmulty">Включить возможность выбора нескольких вариантов ответов</label><br />$_POLL_PERIOD_OPT$ Период голосования (0 - без ограничений)</td></tr><tr id="frM43"><td class="gTableRight" colspan="2" id="frM44"> </td></tr>
<?endif?>
<tr id="frM56" align="center"><td width="25%" class="gTableLeft" id="frM57" valign="top">Текст сообщения:<div class="smilesPart">$SMILES$</div></td><td class="gTableRight" id="frM58">$BBCODES$  

<input accesskey="y" value="p.s." onclick="simpletag('p.s.','','','message',''); return false;" class="codeButtons" title="p.s." name="p.s." type="button">

<input type="button" value="info" onclick="simpletag('info','','','message',''); return false;" class="codeButtons" title="Информация" name="info" />

<input type="button" value="Штампы" onclick="showstamp()" class="codeButtons" title="Вставить Штамп" name="Штампы" />

<input type="button" value="mp3" onclick="simpletag('mp3','','','message',''); return false;" class="codeButtons" title="Вставить mp3" name="mp3" />

<input type="button" value="onlinekino" onclick="simpletag('onlinekino','','','message',''); return false;" class="codeButtons" title="Вставить видео" name="onlinekino" />

<input type="button" value="blink" onclick="simpletag('blink','','','message',''); return false;" class="codeButtons" title="Вставить бегущий текст" name="blink" />

<input type="button" value="warning" onclick="simpletag('warning','','','message',''); return false;" class="codeButtons" title="admin text" name="warning" />

<input type="button" value="marquee" onclick="simpletag('marquee','','','message',''); return false;" class="codeButtons" title="Бегущая строка" name="marquee" />

<input title="Offtop" value="off" onclick="simpletag('off','','','message','')" class="codeButtons" name="off" style="width: 40px;" type="button">

<input accesskey="s" value="spoiler" onclick="simpletag('spoiler','','','message',''); return false;" class="codeButtons" title="Включить содержимое в спойлер" name="spoiler" type="button">

<?if($BBCODES$)?>
<div style="padding-bottom: 2px;">
<span class="bbc1" id="bc20"><input type="button" value="o" style="text-decoration: overline;" onclick="simpletag('o','','','message',''); return false;" class="codeButtons" title="Черта вверху текста" name="o" /></span><span class="bbc1" id="bc21"><input type="button" value="j" onclick="simpletag('j','','','message',''); return false;" class="codeButtons" title="Текст по ширине страницы" name="j" /></span><span class="bbc1" id="bc22"><input type="button" value="sub" onclick="simpletag('sub','','','message',''); return false;" class="codeButtons" title="Нижний индекс" name="sub" /></span><span class="bbc1" id="bc23"><input type="button" value="sup" onclick="simpletag('sup','','','message',''); return false;" class="codeButtons" title="Верхний индекс" name="sup" /></span><span class="bbc1" id="bc24"><input type="button" value="Video" title="Добавить ссылку на видео файл" onclick="tag_video()" class="codeButtons" name="video"></span><span class="bbc1" id="bc25"><input type="button" value="Audio" title="Добавить ссылку на аудио файл" onclick="tag_audio()" class="codeButtons" name="audio"></span><span class="bbc1" id="bc26"><input type="button" value="hr" onclick="emoticon('[hr]');return false;" class="codeButtons" title="Линия" name="hr" /></span><span class="bbc1" id="bc27"><input type="button" value="s" style="text-decoration: line-through;" onclick="simpletag('s','','','message',''); return false;" class="codeButtons" title="Зачеркнутый текст" name="s" /></span><span class="bbc1" id="bc28"><input type="button" value="©" onclick="emoticon('(c)');return false;" class="codeButtons" title="Знак авторского права!" name="(c)" /></span><span class="bbc1" id="bc29"><input type="button" value="™" onclick="emoticon('(tm)');return false;" class="codeButtons" title="Торговая марка" name="(tm)" /></span><span class="bbc1" id="bc30"><input type="button" value="®" onclick="emoticon('(r)');return false;" class="codeButtons" title="Зарегистрирован" name="(r)" /></span><span class="bbc1" id="bc31"><input type="button" value="*" onclick="emoticon('[*]');return false;" class="codeButtons" title="Пункт" name="*" /></span><span class="bbc1" id="bc32"><input type="reset" value="¤ Очистить ¤" class="codeButtons" /></span>
</div>
<?endif?> $_MESSAGE$</td></tr>

<?if($BBCODES$)?>
<script language="JavaScript">

var text_enter_audio = "http://any_site.com/music.mp3 ";
var text_enter_video = "http://any_site.com/music.mp3 ";

function tag_audio()
{
var FoundErrors = '';
var enterAudio = prompt(text_enter_audio, "http://any_site.com/music.mp3");
if (!enterAudio || enterAudio=='http://any_site.com/music.mp3') {
FoundErrors = 1;
}
if (FoundErrors) {
return;
}
doInsert("[audio]"+enterAudio+"[/audio]", "", false);
}

function tag_video()
{
var FoundErrors = '';
var enterVideo = prompt(text_enter_video, "http://youtube.com/watch?v=DbzFNj8HVmc");
if (!enterVideo || enterVideo=='http://youtube.com/watch?v=DbzFNj8HVmc') {
FoundErrors = 1;
}
if (FoundErrors) {
return;
}
doInsert("[video]"+enterVideo+"[/video]", "", false);
}
</script>
<?endif?>

<?if($MESSAGE_OPTIONS_FLAG$)?>
<tr id="frM14"><td class="gTableLeft" id="frM15">Опции сообщения:</td><td class="gTableRight" id="frM16">

<center><a href="javascript:t.go(0)" title="Перевести в кириллицу">Кириллица</a> - <a href="javascript:t.go(1)" title="Перевести в латиницу">Латиница</a> | <a href="javascript:t.Tags()" id="translitTags" title="Отключить обнаружение HTML и BB тегов">Пропустить тэги</a> </center>

<?if($_HTML_OPT$)?>
$_HTML_OPT$ <label for="ahtml">Включить HTML теги</label><br />$_MAKE_BR_OPT$ <label for="frmt">Заменять переводы строк тегом <b><BR></b></label><br>
<?endif?>
<?if($_EDITED_OPT$)?>
$_EDITED_OPT$ <label for="edited">Добавить надпись "Отредактировано..." в это сообщение?</label><br />
<?endif?>
<?if($_SMILES_OPT$)?>
$_SMILES_OPT$ <label for="smon">Включить смайлы</label><br />
<?endif?>
<?if($_SIGNATURE_OPT$)?>
$_SIGNATURE_OPT$ <label for="sgon">Включить подпись</label><br />
<?endif?>
<?if($_SUBSCRIBE_OPT$)?>
$_SUBSCRIBE_OPT$ <label for="sbon">Включить уведомление на e-mail при ответах</label><br />
<?endif?>
</td></tr>
<?endif?>
<?if($MODER_OPTIONS_FLAG$)?>
<tr id="frM6"><td class="gTableLeft" id="frM7">Опции темы:</td><td class="gTableRight" id="frM8">
<?if($_FIRSTONTOP_OPT$)?>
$_FIRSTONTOP_OPT$ <label for="firstontop">Первое сообщение темы сделать шапкой (показывать на всех страницах)</label><br />
<?endif?>
<?if($_ONTOP_OPT$)?>
$_ONTOP_OPT$ <label for="isontop">Тема всегда сверху</label><br />
<?endif?>
<?if($_CLOSED_OPT$)?>
$_CLOSED_OPT$ <label for="isclosed">Закрытая тема</label>
<?endif?>
</td></tr>
<?endif?>
<?if($_FILES_UPLOADER$)?>
<tr id="frM50"><td class="gTableLeft" id="frM51">Прикрепить файл: <span style="font:7pt;">(не более <b>$FILE_MAX_SIZE$</b>Kb)</span></td><td class="gTableRight" id="frM52">$_FILES_UPLOADER$</td></tr>
<?endif?>
<?if($_SECURITY_CODE$)?>
<tr id="frM45"><td class="gTableLeft" id="frM46">Код безопасности:</td><td class="gTableRight" id="frM47">$_SECURITY_CODE$</td></tr>
<?endif?>
<tr id="frM59"><td class="gTableRight" colspan="2" align="center" id="frM60"><input style="width:110px;" id="frF15" class="postPreview" type="button" value="Просмотреть" onclick="prepost();" /> <input type="submit" id="frF16" name="sbm" style="width:150px;font-weight:bold;" class="postSubmit" value="$SUBMIT_SIGN$" /> <input style="width:110px;" id="frF17" class="postReset" type="reset" value="Отменить" /></td></tr>
</table>
</div></div><div class="gDivBottomLeft"></div><div class="gDivBottomCenter"></div><div class="gDivBottomRight"></div>

Это ставим в Общий Фид форума после $BODY$

<script type="text/javascript" language="javascript">  
e=document.getElementsByTagName("TD");  
for(k=15; k<e.length;k++) {  
if(e[k].className=='posttdMessage') {  
s=e[k].innerHTML;  
while (s.indexOf('[p.s.]') != -1){  
s=s.replace('[p.s.]','<fieldset><legend><font style="font-size: 10px; font-family: Verdana; color: red;"> P.S.</font></legend><font style="font-size: 11px; font-family: Verdana; color: red;">'); s=s.replace('[/p.s.]','</font></fieldset>');  
e[k].innerHTML=s;  
}  
} }  
</script>

<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=0;k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[info]') != -1) {
s=s.replace('[info]','<td class="posttdMessage" valign="top"><table valign="top" width="100%" border="0" cellspacing="3"><tbody><tr><td width="100" bgcolor="#aee494"><img src="http://criminall.ucoz.com/123/informationicon.jpg" border="0"></td><td valign="middle" align="left" bgcolor="#aee494"> <blockquote class="admintext"><div align="justify">');
s=s.replace('[/info]','<div></div></div></blockquote></td></tr></tbody></table>');
e[k].innerHTML=s;
}}}
</script>

<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=0;k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[mp3]') != -1) {
s=s.replace('[mp3]','<object type="application/x-shockwave-flash" data="http://flv-mp3.com/i/pic/ump3player_500x70.swf" height="40" width="220"><param name="wmode" VALUE="transparent" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="movie" value="http://flv-mp3.com/i/pic/ump3player_500x70.swf" /><param name="FlashVars" value="way=');
s=s.replace('[/mp3]','&swf=http://flv-mp3.com/i/pic/ump3player_500x70.swf&w=470&h=70&time_seconds=0&autoplay=0&q=&skin=white&volume=70&comment=" />  </object>');
e[k].innerHTML=s;
}}}
</script>

<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=0;k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[onlinekino]') != -1) {
s=s.replace('[onlinekino]','<center><embed src="http://criminall.ucoz.com/pleer/player.swf" type="application/x-shockwave-flash" allowfullscreen="true" flashvars="&file=');
s=s.replace('[/onlinekino]','&height=413&width=550&location=http://criminall.ucoz.com/pleer/player.swf&logo=ℑ=" width="550" height="413">  </center>');
e[k].innerHTML=s;
}}}
</script>

<script type="text/javascript" language="javascript">
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[blink]') != -1){
s=s.replace('[blink]','<blink>'); s=s.replace('[/blink]','</blink>');
e[k].innerHTML=s;
}
} }
</script>

<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=0;k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[warning]') != -1) {
s=s.replace('[warning]','<fieldset class="fieldset"><legend><font color="#0000cd"><b>Внимание:</b></font></legend><img title="Внимание!" src="http://criminall.ucoz.com/123/admin.jpg" border="0"><font color="Red"><b> ');
s=s.replace('[/warning]','</b></font></fieldset>');
e[k].innerHTML=s;
}}}
</script>

<script type="text/javascript" language="JavaScript">
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[marquee]') != -1){
s=s.replace('[marquee]','<marquee>'); s=s.replace('[/marquee]','</marquee>');
e[k].innerHTML=s;
}
} }
</script>

<script type="text/javascript" language="javascript"><!--
function Sim_Sim_Otkroysya()
{
var obj=document.getElementById('Sim_Sim');
if(obj.style.display=='none')
obj.style.display='block';
else
obj.style.display='none';
}
// --></script>

<script type="text/javascript" language="javascript"><!--
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++){
if(e[k].className=='posttdMessage'){
s=e[k].innerHTML;
while (s.indexOf('[off]') != -1){s=s.replace('[off]','<div><a href="javascript: Sim_Sim_Otkroysya()"><img src="http://outoflaw.at.ua/offtop.gif" /></a></div><div name="Sim_Sim" id="Sim_Sim" style="display: none">'); s=s.replace('[/off]','</div>'); e[k].innerHTML=s;}
}}
// --></script>  

<script type=text/javascript>  
if(document.getElementById('bc6')) {  
document.getElementById("bc6").innerHTML='<select name=\"fcolor\" class=\'codeButtons\' onchange=\"alterfont(this.options[this.selectedIndex].value, \'color\',\'message\',\'\');this.selectedIndex=0;\"><option value=\'0\'>« ЦВЕТ »</option><option value=\'red\' style=\'background:white;color:red\'>Красный</option><option value=\'blue\' style=\'background:white;color:blue\'>Синий</option><option value=\'green\' style=\'background:white;color:green\'>Зелёный</option><option value=\'purple\' style=\'background:white;color:purple\'>Пурпурный</option><option value=\'gray\' style=\'background:white;color:gray\'>Серый</option><option value=\'#FF00FF\' style=\'background:white;color:#FF00FF\'>Розовый</option><option value=\'#00FFFF\' style=\'background:white;color:#00FFFF\'>Голубой</option><option value=\'#FFFF00\' style=\'background:white;color:#FFFF00\'>Жёлтый</option><option value=\'#885522\' style=\'background:white;color:#885522\'>Коричневый</option><option value=\'#00FF00\' style=\'background:white;color:#00FF00\'>Ярко-зелёный</option><option value=\'orange\' style=\'background:white;color:orange\'>Оранжевый</option><option value=\'white\' style=\'background:white;color:white\'>Белый</option><option value=\'black\' style=\'background:white;color:black\'>Чёрный</option></select>'  

}  
</script>

<script type="text/javascript">
e=document.getElementsByTagName("TD");
for(k=15; k<e.length;k++) {
if(e[k].className=='posttdMessage') {
s=e[k].innerHTML;
while (s.indexOf('[spoiler]') != -1){
s=s.replace('[spoiler]','<fieldset><legend><font style="font-size: 10px; font-family: Verdana; color:red;">Спойлер</font></legend><div style="margin: 3px; margin-top:1px;"><div class="smallfont" style="margin-bottom:1px"><a href="#" onclick="return spoiler_js(this);"><span style="color:blue;"><b>Показать спойлер</b></span><span style="display:none;color:blue;"><b>Скрыть спойлер</b></span></a></div><div style="margin: 0px; padding:3px; display: none;">'); s=s.replace('[/spoiler]','</div></div></fieldset>');
e[k].innerHTML=s;
}
} }
</script>

<script type="text/javascript">
function spoiler_js(obj) {
var obj_content = obj.parentNode.parentNode.getElementsByTagName('div')[1];
var obj_text_show = obj.getElementsByTagName('span')[1];
var obj_text_hide = obj.getElementsByTagName('span')[0];

if (obj_content.style.display != '') {
obj_content.style.display = '';
obj_text_show.style.display = '';
obj_text_hide.style.display = 'none';
} else {
obj_content.style.display = 'none';
obj_text_show.style.display = 'none';
obj_text_hide.style.display = '';
}
return false;
}
</script>