Установка bbcode[/quote]
Открыть файл engine/modules/bbcodes.php
Найти 2 раза
$code = <<<HTML - самый первый
после вставляем до HTML;
<div class="bb-pane2" onmouseenter="get_sel(eval('fombj.'+ selField));">
<b id="b_b" class="bb-btn2" onclick="simpletag('b')" title="{$lang['bb_t_b']}">{$lang['bb_t_b']}</b>
<b id="b_i" class="bb-btn2" onclick="simpletag('i')" title="{$lang['bb_t_i']}">{$lang['bb_t_i']}</b>
<b id="b_u" class="bb-btn2" onclick="simpletag('u')" title="{$lang['bb_t_u']}">{$lang['bb_t_u']}</b>
<b id="b_s" class="bb-btn2" onclick="simpletag('s')" title="{$lang['bb_t_s']}">{$lang['bb_t_s']}</b>
<span class="bb-sep2">|</span>
<b id="b_img" class="bb-btn2" onclick="tag_image()" title="{$lang['bb_b_img']}">{$lang['bb_b_img']}</b>
{$image_upload}
<span class="bb-sep2">|</span>
<b id="b_emo" class="bb-btn2" onclick="ins_emo(this)" title="{$lang['bb_t_emo']}">{$lang['bb_t_emo']}</b>
<span class="bb-sep2">|</span>
<b id="b_url" class="bb-btn2" onclick="tag_url()" title="{$lang['bb_t_url']}">{$lang['bb_t_url']}</b>
<b id="b_leech" class="bb-btn2" onclick="tag_leech()" title="{$lang['bb_t_leech']}">{$lang['bb_t_leech']}</b>
<b id="b_mail" class="bb-btn2" onclick="tag_email()" title="{$lang['bb_t_m']}">{$lang['bb_t_m']}</b>
<span class="bb-sep2">|</span>
<b id="b_video" class="bb-btn2" onclick="tag_video()" title="{$lang['bb_t_video']}">{$lang['bb_t_video']}</b>
<b id="b_audio" class="bb-btn2" onclick="tag_audio()" title="{$lang['bb_t_audio']}">{$lang['bb_t_audio']}</b>
<span class="bb-sep2">|</span>
<b id="b_hide" class="bb-btn2" onclick="simpletag('hide')" title="{$lang['bb_t_hide']}">{$lang['bb_t_hide']}</b>
<b id="b_quote" class="bb-btn2" onclick="simpletag('quote')" title="{$lang['bb_t_quote']}">{$lang['bb_t_quote']}</b>
<b id="b_code" class="bb-btn2" onclick="simpletag('code')" title="{$lang['bb_t_code']}">{$lang['bb_t_code']}</b>
<span class="bb-sep2">|</span>
<b id="b_br" class="bb-btn2" onclick="pagebreak()" title="{$lang['bb_t_br']}">{$lang['bb_t_br']}</b>
<b id="b_pl" class="bb-btn2" onclick="pagelink()" title="{$lang['bb_t_p']}">{$lang['bb_t_p']}</b>
<div class="clr"></div>
<b id="b_font" class="bb-sel"><select name="bbfont" onchange="insert_font(this.options[this.selectedIndex].value, 'font'); this.selectedIndex=0;"><option value='0'>{$lang['bb_t_font']}</option><option value='Arial'>Arial</option><option value='Arial Black'>Arial Black</option><option value='Century Gothic'>Century Gothic</option><option value='Courier New'>Courier New</option><option value='Georgia'>Georgia</option><option value='Impact'>Impact</option><option value='System'>System</option><option value='Tahoma'>Tahoma</option><option value='Times New Roman'>Times New Roman</option><option value='Verdana'>Verdana</option></select></b>
<b id="b_size" class="bb-sel"><select name="bbsize" onchange="insert_font(this.options[this.selectedIndex].value, 'size'); this.selectedIndex=0;"><option value='0'>{$lang['bb_t_size']}</option><option value='1'>1</option><option value='2'>2</option><option value='3'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option></select></b>
<span class="bb-sep2">|</span>
<b id="b_left" class="bb-btn2" onclick="simpletag('left')" title="{$lang['bb_t_l']}">{$lang['bb_t_l']}</b>
<b id="b_center" class="bb-btn2" onclick="simpletag('center')" title="{$lang['bb_t_c']}">{$lang['bb_t_c']}</b>
<b id="b_right" class="bb-btn2" onclick="simpletag('right')" title="{$lang['bb_t_r']}">{$lang['bb_t_r']}</b>
<span class="bb-sep2">|</span>
<b id="b_color" class="bb-btn2" onclick="ins_color(this)" title="{$lang['bb_t_color']}">{$lang['bb_t_color']}</b>
<b id="b_spoiler" class="bb-btn2" onclick="simpletag('spoiler')" title="{$lang['bb_t_spoiler']}">{$lang['bb_t_spoiler']}</b>
<span class="bb-sep2">|</span>
<b id="b_fla" class="bb-btn2" onclick="tag_flash()" title="{$lang['bb_t_flash']}">{$lang['bb_t_flash']}</b>
<b id="b_yt" class="bb-btn2" onclick="tag_youtube()" title="{$lang['bb_t_youtube']}">{$lang['bb_t_youtube']}</b>
<b id="b_tf" class="bb-btn2" onclick="tag_typograf(); return false;" title="{$lang['bb_t_t']}">{$lang['bb_t_t']}</b>
<span class="bb-sep2">|</span>
<b id="b_list" class="bb-btn2" onclick="tag_list('list')" title="{$lang['bb_t_list1']}">{$lang['bb_t_list1']}</b>
<b id="b_ol" class="bb-btn2" onclick="tag_list('ol')" title="{$lang['bb_t_list2']}">{$lang['bb_t_list2']}</b>
<span class="bb-sep2">|</span>
</div>
<div id="dle_emos" style="display: none;" title="{$lang['bb_t_emo']}"><div style="width:100%;height:100%;overflow: auto;">{$output}</div></div>
$code = <<<HTML - второй раз
после вставляем до HTML;[/quote]
<div class="bb-editor">
<div class="bb-pane" onmouseenter="get_sel(eval('fombj.'+ selField));">
<div class="lcol">
<span id="b_b" class="bb-btn" onclick="simpletag('b')" title="{$lang['bb_t_b']}"><b>{$lang['bb_t_b']}</b></span>
<span id="b_i" class="bb-btn" onclick="simpletag('i')" title="{$lang['bb_t_i']}"><b>{$lang['bb_t_i']}</b></span>
<span id="b_u" class="bb-btn" onclick="simpletag('u')" title="{$lang['bb_t_u']}"><b>{$lang['bb_t_u']}</b></span>
<span id="b_color" class="bb-btn" onclick="ins_color(this)" title="{$lang['bb_t_color']}"><b>{$lang['bb_t_color']}</b></span>
<span id="b_hide" class="bb-btn" onclick="simpletag('hide')" title="{$lang['bb_t_hide']}"><b>{$lang['bb_t_hide']}</b></span>
<span id="b_left" class="bb-btn" onclick="simpletag('left')" title="{$lang['bb_t_l']}"><b>{$lang['bb_t_l']}</b></span>
<span id="b_center" class="bb-btn" onclick="simpletag('center')" title="{$lang['bb_t_c']}"><b>{$lang['bb_t_c']}</b></span>
<span id="b_right" class="bb-btn" onclick="simpletag('right')" title="{$lang['bb_t_r']}"><b>{$lang['bb_t_r']}</b></span>
</div>
<div class="rcol">
<span id="b_emo" class="bb-btn" onclick="ins_emo(this)" title="{$lang['bb_t_emo']}">{$lang['bb_t_emo']}</div></span>
</div>
<div id="dle_emos" style="display: none;" title="{$lang['bb_t_emo']}"><div style="width:100%;height:100%;overflow: auto;">{$output}</div></div>
<div class="bb_area">
<textarea name="comments" id="comments" cols="70" rows="10" onfocus="setNewField(this.name, document.getElementById( 'dle-comments-form' ))">{text}</textarea>
</div>
</div>