Lightbox problem

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Lightbox problem

Post by Korkel »

Hello,

My Lightbox BBCode buttons are working fine, but the custom BBCodes aren't... here is the posting_buttons.html

Code: Select all

<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]','[quote]','[/quote]','[code]','
','
    ','
','
    ','
','[img]','[/img]','','','[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}',
        li: '{LA_BBCODE_LISTITEM_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}'
        <!-- 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');
            }

            colorPalette('h', 15, 10);
        // ]]>
        </script>
        </dd>
    </dl>
</div>

<div id="format-buttons">
<input type="text" readonly="readonly" name="helpbox" style="width:80%" class="<!-- IF S_IN_UCP -->helpline2<!-- ELSE -->helpline<!-- ENDIF -->" value="{L_STYLES_TIP}" /><br />
   <input type="button" class="buttonz" accesskey="b" name="addbbcode0" value="" onclick="bbstyle(0)" style="background: url('{ROOT_PATH}images/bbcodes/bold.png');" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
<input type="button" class="buttonz" accesskey="i" name="addbbcode2" value="" style="background: url('{ROOT_PATH}images/bbcodes/italic.png');" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
<input type="button" class="buttonz" accesskey="u" name="addbbcode4" value="" style="background: url('{ROOT_PATH}images/bbcodes/underline.png');" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
    <!-- IF S_BBCODE_QUOTE -->
<input type="button" class="buttonz" accesskey="q" name="addbbcode6" value="" style="background: url('{ROOT_PATH}images/bbcodes/comment.png');" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
    <!-- ENDIF -->
<input type="button" class="buttonz" accesskey="c" name="addbbcode8" value="" style="background: url('{ROOT_PATH}images/bbcodes/code.png');" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
<input type="button" class="buttonz" accesskey="l" name="addbbcode10" value="" style="background: url('{ROOT_PATH}images/bbcodes/list_bullets.png');" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
<input type="button" class="buttonz" accesskey="o" name="addbbcode12" value="" style="background: url('{ROOT_PATH}images/bbcodes/list_numbers.png');" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
<input type="button" class="buttonz" accesskey="t" name="addlitsitem" value="" style="background: url('{ROOT_PATH}images/bbcodes/bullet.png');" onclick="bbstyle(-1)" onmouseover="helpline('li')" onmouseout="helpline('tip')" />
    <!-- IF S_BBCODE_IMG -->
        <input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('{ROOT_PATH}images/bbcodes/image.png');" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
    <!-- ENDIF -->
    <!-- IF S_LINKS_ALLOWED -->
<input type="button" class="buttonz" accesskey="w" name="addbbcode16" value="" style="background: url('{ROOT_PATH}images/bbcodes/link.png');" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
    <!-- ENDIF -->
    <!-- IF S_BBCODE_FLASH -->
<input type="button" class="buttonz" accesskey="d" name="addbbcode18" value="" style="background: url('{ROOT_PATH}images/bbcodes/flash.png');" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
    <!-- ENDIF -->
<input type="button" class="buttonz" name="bbpalette" id="bbpalette" value="" style="background: url('{ROOT_PATH}images/bbcodes/color_wheel.png');" onclick="change_palette();" onmouseover="helpline('s')" onmouseout="helpline('tip')" />
    <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.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>
    <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 -->[/code]

Lightbox problem

Post by RMcGirr83 »

The demo on here viewtopic.php?f=4&t=332 doesn't work.