|
|
vBulletin 3.х Раздел о vBulletin и всем что касается этого скрипта |
|
Опции темы | Поиск в этой теме |
08.05.2013, 16:53 Вверх | #1 | |||
Пользователь
|
Inferno Shoutbox 2.5.2 add bbcode buttons
Подскажите плиз, как добавить в шаутбокс кнопку, при нажатии которой, будет вставляться bbcode в поле ввода текста, например, [img][/img]
заранее спасибо! |
|||
14.05.2013, 11:08 Вверх | #3 | |||
Пользователь
|
помогите пожалуйста с вставкой кода
вот код: <table width='100%' border='0' cellpadding='0' cellspacing='0'> <tr> <td width='100%'> <input type="text" name="vbshout_pro_shoutbox_editor" style="width: 93%" class="bginput" id="vbshout_pro_shoutbox_editor" /> </td> <td style='white-space:nowrap' width='1%'> <input type="button" value="Shout" class="button" onclick='InfernoShoutbox.shout();' /> <if condition="$vboptions['ishout_editor_tools'] & 32"><input type='button' class='button' value='Clear' onclick='InfernoShoutbox.clear();' /></if> ВОТ ТУТ НАДО ДОБАВИТЬ КНОПКУ <if condition="$vboptions['ishout_editor_tools'] & 64"><input type='button' class='button' value='Smilies' onclick='InfernoShoutbox.smilies();' /></if> <if condition="$_REQUEST['do'] != 'detach'"><input type="button" value="Options" class="button" onclick='InfernoShoutbox.goto_options();' /></if> <if condition="($vboptions['ishout_editor_tools'] & 128) && $_REQUEST['do'] != 'detach'"><input type='button' class='button' value='Detach' onclick='InfernoShoutbox.detach();' /></if> <if condition="$vboptions['ishout_editor_tools'] & 1"><input id='sb_mem_bold' type='button' class='button' style='font-weight:bold' value='B' onclick='InfernoShoutbox.assign_styleprop("fontWeight", this);' /></if> <if condition="$vboptions['ishout_editor_tools'] & 2"><input id='sb_mem_underline' type='button' class='button' style='text-decoration:underline' value='U' onclick='InfernoShoutbox.assign_styleprop("textDecoration", this);' /></if> <if condition="$vboptions['ishout_editor_tools'] & 4"><input id='sb_mem_italic' type='button' class='button' style='font-style:italic' value='I' onclick='InfernoShoutbox.assign_styleprop("fontStyle", this);' /></if> <if condition="$vboptions['ishout_editor_tools'] & 8"><select id='sb_color_mem' name='font_color' onchange='InfernoShoutbox.assign_styleprop("color", this);'>{$infernoshout->editor_selects['colours']}</select></if> <if condition="$vboptions['ishout_editor_tools'] & 16"><select id='sb_font_mem' name='font_selector' onchange='InfernoShoutbox.assign_styleprop("fontFamily", this);'>{$infernoshout->editor_selects['fonts']}</select></if> </td> </tr> </table> заранее спасибо |
|||