BBCode Lightbox problem

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Post Reply
Korkel
Senior member
Senior member
Posts: 349
Joined: 26 May 2014, 06:48
Location: ~/home/Mark/Desktop

BBCode Lightbox problem

Post by Korkel »

Hello,

Again I got some problems with the BBCode Lightbox; the custom BBCodes aren't working. Did I forgot something in the code?

Below is my 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]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/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}',
        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/editor/text_bold.png');" onmouseover="helpline('b')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <input type="button" class="buttonz" accesskey="i" name="addbbcode2" value="" style="background: url('{ROOT_PATH}images/editor/text_italic.png');" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <input type="button" class="buttonz" accesskey="u" name="addbbcode4" value="" style="background: url('{ROOT_PATH}images/editor/text_underline.png');" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- IF S_BBCODE_QUOTE -->
        <input type="button" class="buttonz" accesskey="q" name="addbbcode6" value="" style="background: url('{ROOT_PATH}images/editor/comment.png');" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- ENDIF -->
    <input type="button" class="buttonz" accesskey="c" name="addbbcode8" value="" style="background: url('{ROOT_PATH}images/editor/page_white_code.png');" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <input type="button" class="buttonz" accesskey="l" name="addbbcode10" value="" style="background: url('{ROOT_PATH}images/editor/text_list_bullets.png');" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <input type="button" class="buttonz" accesskey="o" name="addbbcode12" value="" style="background: url('{ROOT_PATH}images/editor/text_list_numbers.png');" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <input type="button" class="buttonz" accesskey="t" name="addlitsitem" value="" style="background: url('{ROOT_PATH}images/editor/bullet_black.png');" onclick="bbstyle(-1)" onmouseover="helpline('li')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- IF S_BBCODE_IMG -->
        <input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('{ROOT_PATH}images/editor/image.png');" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- ENDIF -->
    <!-- IF S_LINKS_ALLOWED -->
        <input type="button" class="buttonz" accesskey="w" name="addbbcode16" value="" style="background: url('{ROOT_PATH}images/editor/world_link.png');" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- ENDIF -->
    <!-- IF S_BBCODE_FLASH -->
        <input type="button" class="buttonz" accesskey="d" name="addbbcode18" value="" style="background: url('{ROOT_PATH}images/editor/page_white_flash.png');" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
    <!-- ENDIF -->
    <input type="button" class="buttonz" name="bbpalette" id="bbpalette" value="" style="background: url('{ROOT_PATH}images/editor/color_wheel.png');" onclick="change_palette();" onmouseover="helpline('s')" onmouseout="helpline('Tip: opmaak kun je snel toepassen op de geselecteerde tekst.')" />
        <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>
    <!-- BEGIN custom_tags -->
        <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
    <!-- END custom_tags -->
</div>
<!-- ENDIF -->


P.S. Can I delete missing database extras (how do I call it?) with any tool?
STK was the option for that. ;D
steve
Master of posting
Master of posting
Posts: 1213
Joined: 12 Jul 2009, 19:14
Location: uk
Contact:

Re: BBCode Lightbox problem

Post by steve »

Sorry but you are an idiot ... Stop posting crap .. Logically think before you post.
Steve ©
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: BBCode Lightbox problem

Post by Sniper_E »

steve wrote:Sorry but you are an idiot.

Terr0r was an idiot too.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Korkel
Senior member
Senior member
Posts: 349
Joined: 26 May 2014, 06:48
Location: ~/home/Mark/Desktop

Re: BBCode Lightbox problem

Post by Korkel »

Because I don't know how to fix it I am a idiot? WTF?
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: BBCode Lightbox problem

Post by RMcGirr83 »

I can see nothing in the code you provided that has bbcode lightbox within it. We aren't here to do it for you, we are here to help you do it. Once again, help us help you.
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: BBCode Lightbox problem

Post by RMcGirr83 »

Also, if you are going to seek support on another site then you don't need support from this site. [url=http://www.phpbb3bbcodes.com/viewtopic.php?p=16367#p16367]Lightbox problem[/url]
Korkel
Senior member
Senior member
Posts: 349
Joined: 26 May 2014, 06:48
Location: ~/home/Mark/Desktop

Re: BBCode Lightbox problem

Post by Korkel »

RMcGirr83 wrote:Also, if you are going to seek support on another site then you don't need support from this site. [url=http://www.phpbb3bbcodes.com/viewtopic.php?p=16367#p16367]Lightbox problem[/url]

Will PM you soon.
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: BBCode Lightbox problem

Post by Sniper_E »

Korkel wrote:Will PM you soon.

Do not PM anyone unless they ask you too.

You just need to follow the directions that came with lightbox and follow the directions of creating the bbCode Lightbox and work it out yourself.
Figure it out before you ask. Just dig into whatever you're working on and do it. You started this post before you even tried anything.

Stop asking so many questions, until after... you tried, failed and went back over to see what you did wrong. Work it out first.
And Korkel, Stop trying to give support to our other members, you are not knowledgeable enough... we will take care of that!
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Korkel
Senior member
Senior member
Posts: 349
Joined: 26 May 2014, 06:48
Location: ~/home/Mark/Desktop

Re: BBCode Lightbox problem

Post by Korkel »

Asking a lock... If I want to PM I do that.
Post Reply