Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- // <![CDATA[
- var form_name = 'postform';
- var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
- var load_draft = false;
- var upload = false;
- // Define the bbCode tags
- var bbcode = new Array();
- var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[s]','[/s]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url=http://]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
- var imageTag = false;
- // Helpline messages
- var help_line = {
- b: '{LA_BBCODE_B_HELP}',
- i: '{LA_BBCODE_I_HELP}',
- u: '{LA_BBCODE_U_HELP}',
- q: '{LA_BBCODE_Q_HELP}',
- c: '{LA_BBCODE_C_HELP}',
- l: '{LA_BBCODE_L_HELP}',
- o: '{LA_BBCODE_O_HELP}',
- p: '{LA_BBCODE_P_HELP}',
- w: '{LA_BBCODE_W_HELP}',
- a: '{LA_BBCODE_A_HELP}',
- s: '{LA_BBCODE_S_HELP}',
- f: '{LA_BBCODE_F_HELP}',
- y: '{LA_BBCODE_Y_HELP}',
- d: '{LA_BBCODE_D_HELP}',
- st: 'Doorstreepte tekst: [s]Hier je tekst[/s]'
- <!-- BEGIN custom_tags -->
- ,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
- <!-- END custom_tags -->
- }
- var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
- var show_panel = 'options-panel';
- // ]]>
- </script>
- <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
- <!-- IF S_BBCODE_ALLOWED -->
- <div id="colour_palette" style="display: none;">
- <dl style="clear: left;">
- <dt><label>{L_FONT_COLOR}:</label></dt>
- <dd>
- <script type="text/javascript">
- // <![CDATA[
- function change_palette()
- {
- dE('colour_palette');
- e = document.getElementById('colour_palette');
- if (e.style.display == 'block')
- {
- document.getElementById('bbpalette').value = '';
- }
- else
- {
- document.getElementById('bbpalette').value = '';
- }
- }
- colorPalette('h', 15, 10);
- // ]]>
- </script>
- </dd>
- </dl>
- </div>
- <div id="format-buttons">
- <input type="button" class="bbcodebuttons" accesskey="b" name="addbbcode0" value="" style="background-image: url('./images/bbcodes/bold.png');" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="i" name="addbbcode2" value="" style="background-image: url('./images/bbcodes/italic.png');" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="u" name="addbbcode4" value="" style="background-image: url('./images/bbcodes/underline.png');" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="u" name="addbbcode6" value="" style="background-image: url('./images/bbcodes/strike.png');" onclick="bbstyle(6)" title="Doorstreepte tekst: [s]Hier jouw tekst[/s]" />
- <!-- IF S_BBCODE_QUOTE -->
- <input type="button" class="bbcodebuttons" accesskey="q" name="addbbcode8" value="" style="background-image: url('./images/bbcodes/quote.png');" onclick="bbstyle(8)" title="{L_BBCODE_Q_HELP}" />
- <!-- ENDIF -->
- <input type="button" class="bbcodebuttons" accesskey="c" name="addbbcode10" value="" style="background-image: url('./images/bbcodes/code.png');" onclick="bbstyle(10)" title="{L_BBCODE_C_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="l" name="addbbcode12" value="" style="background-image: url('./images/bbcodes/list_bullets.png');" onclick="bbstyle(12)" title="{L_BBCODE_L_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="o" name="addbbcode14" value="" style="background-image: url('./images/bbcodes/list_numbers.png');" onclick="bbstyle(14)" title="{L_BBCODE_O_HELP}" />
- <input type="button" class="bbcodebuttons" accesskey="y" name="addlistitem" value="" style="background-image: url('./images/bbcodes/bullet.png');" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
- <!-- IF S_BBCODE_IMG -->
- <input type="button" class="bbcodebuttons" accesskey="p" name="addbbcode16 value="" style="background-image: url('./images/bbcodes/image.png');" onclick="bbstyle(16)" title="{L_BBCODE_P_HELP}" />
- <!-- ENDIF -->
- <!-- IF S_LINKS_ALLOWED -->
- <input type="button" class="bbcodebuttons" accesskey="w" name="addbbcode18" value="" style="background-image: url('./images/bbcodes/link.png');" onclick="bbstyle(18)" title="{L_BBCODE_W_HELP}" />
- <!-- ENDIF -->
- <!-- IF S_BBCODE_FLASH -->
- <input type="button" class="button2" accesskey="d" name="addbbcode20" value="Flash" onclick="bbstyle(20)" title="{L_BBCODE_D_HELP}" />
- <!-- ENDIF -->
- <select name="addbbcode22" onchange="bbfontstyle('[size=' + this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value + ']', '[/size]');this.form.addbbcode22.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
- <option value="50">{L_FONT_TINY}</option>
- <option value="85">{L_FONT_SMALL}</option>
- <option value="100" selected="selected">{L_FONT_NORMAL}</option>
- <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
- <option value="150">{L_FONT_LARGE}</option>
- <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
- <option value="200">{L_FONT_HUGE}</option>
- <!-- ENDIF -->
- <!-- ENDIF -->
- </select>
- <input type="button" class="bbcodebuttons" name="bbpalette" id="bbpalette" value="" style="background-image: url('./images/bbcodes/color_wheel.png');" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
- <select name="addbbcode_custom" onchange="bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;">
- <option value="#" selected="selected">Extra BBCodes</option>
- <!-- BEGIN custom_tags -->
- <option value="{custom_tags.BBCODE_ID}" title="{custom_tags.BBCODE_HELPLINE}">{custom_tags.BBCODE_TAG}</option>
- <!-- END custom_tags -->
- </select>
- </div>
- <!-- ENDIF -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement