Advertisement
JustxMeg

Untitled

Jun 14th, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.96 KB | None | 0 0
  1.  
  2. <script type="text/javascript">
  3. // <![CDATA[
  4.     var form_name = 'postform';
  5.     var text_name = <!-- IF $SIG_EDIT -->'signature'<!-- ELSE -->'message'<!-- ENDIF -->;
  6.     var load_draft = false;
  7.     var upload = false;
  8.  
  9.     // Define the bbCode tags
  10.     var bbcode = new Array();
  11.     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 -->);
  12.     var imageTag = false;
  13.  
  14.     // Helpline messages
  15.     var help_line = {
  16.         b: '{LA_BBCODE_B_HELP}',
  17.         i: '{LA_BBCODE_I_HELP}',
  18.         u: '{LA_BBCODE_U_HELP}',
  19.         q: '{LA_BBCODE_Q_HELP}',
  20.         c: '{LA_BBCODE_C_HELP}',
  21.         l: '{LA_BBCODE_L_HELP}',
  22.         o: '{LA_BBCODE_O_HELP}',
  23.         p: '{LA_BBCODE_P_HELP}',
  24.         w: '{LA_BBCODE_W_HELP}',
  25.         a: '{LA_BBCODE_A_HELP}',
  26.         s: '{LA_BBCODE_S_HELP}',
  27.         f: '{LA_BBCODE_F_HELP}',
  28.         y: '{LA_BBCODE_Y_HELP}',
  29.         d: '{LA_BBCODE_D_HELP}',
  30.         st: 'Doorstreepte tekst: [s]Hier je tekst[/s]'
  31.         <!-- BEGIN custom_tags -->
  32.             ,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
  33.         <!-- END custom_tags -->
  34.     }
  35.  
  36.     var panels = new Array('options-panel', 'attach-panel', 'poll-panel');
  37.     var show_panel = 'options-panel';
  38.  
  39.  
  40. // ]]>
  41. </script>
  42. <script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
  43.  
  44. <!-- IF S_BBCODE_ALLOWED -->
  45. <div id="colour_palette" style="display: none;">
  46.     <dl style="clear: left;">
  47.         <dt><label>{L_FONT_COLOR}:</label></dt>
  48.         <dd>
  49.         <script type="text/javascript">
  50.         // <![CDATA[
  51.             function change_palette()
  52.             {
  53.                 dE('colour_palette');
  54.                 e = document.getElementById('colour_palette');
  55.                
  56.                 if (e.style.display == 'block')
  57.                 {
  58.                     document.getElementById('bbpalette').value = '';
  59.                 }
  60.                 else
  61.                 {
  62.                     document.getElementById('bbpalette').value = '';
  63.                 }
  64.             }
  65.  
  66.             colorPalette('h', 15, 10);
  67.         // ]]>
  68.         </script>
  69.         </dd>
  70.     </dl>
  71. </div>
  72.  
  73. <div id="format-buttons">
  74.    <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}" />
  75.    <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}" />
  76.    <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}" />    
  77.    <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]" />    
  78.    <!-- IF S_BBCODE_QUOTE -->
  79.       <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}" />
  80.    <!-- ENDIF -->
  81.    <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}" />
  82.    <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}" />
  83.    <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}" />
  84.    <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}" />
  85.    <!-- IF S_BBCODE_IMG -->
  86.       <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}" />
  87.    <!-- ENDIF -->
  88.    <!-- IF S_LINKS_ALLOWED -->
  89.       <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}" />
  90.    <!-- ENDIF -->
  91.    <!-- IF S_BBCODE_FLASH -->
  92.       <input type="button" class="button2" accesskey="d" name="addbbcode20" value="Flash" onclick="bbstyle(20)" title="{L_BBCODE_D_HELP}" />
  93.    <!-- ENDIF -->
  94.    <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}">
  95.       <option value="50">{L_FONT_TINY}</option>
  96.       <option value="85">{L_FONT_SMALL}</option>
  97.       <option value="100" selected="selected">{L_FONT_NORMAL}</option>
  98.       <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
  99.          <option value="150">{L_FONT_LARGE}</option>
  100.          <!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
  101.             <option value="200">{L_FONT_HUGE}</option>
  102.          <!-- ENDIF -->
  103.       <!-- ENDIF -->
  104.    </select>
  105.    <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}" />
  106.  
  107.     <select name="addbbcode_custom" onchange="bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;">
  108.           <option value="#" selected="selected">Extra BBCodes</option>
  109.           <!-- BEGIN custom_tags -->
  110.           <option value="{custom_tags.BBCODE_ID}" title="{custom_tags.BBCODE_HELPLINE}">{custom_tags.BBCODE_TAG}</option>
  111.           <!-- END custom_tags -->  
  112.          </select>
  113. </div>
  114. <!-- ENDIF -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement