3.2 & 3.3 Extensions Database 3.2 / 3.3Posting Buttons

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Posting Buttons

Post by dmzx »

Extension Name: Posting Buttons
Author: dmzx

Extension Description::

Posting Buttons extension that will add image posting buttons to posting template and all custom BBcodes in a dropdown box.

dmzx/Posting-Buttons


- Twig update
- Drop support 3.1.


Added Event

Screenshot:
Postingbuttons.png
Demo:
Dmzx-web.net

Extension Download:
Download-link
Posting Buttons v1.0.2
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release, and change the name of the folder to `postingbuttons`.
  3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
  4. Copy the `postingbuttons` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/dmzx/postingbuttons/composer.json
  5. Navigate in the ACP to `Customise -> Manage extensions`
  6. Look for `Posting Buttons` under the Disabled Extensions list, and click its `Enable` link.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Windows 8.1 Internet Explorer

Re: Posting Buttons

Post by Jaantje »

Dmzx, Thanx.
Grreeetttttzzzzz, Jaantje

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Posting Buttons

Post by dmzx »

If this mod is installed phpBB • [DEV] QuickReply change this file quickreply_editor_message_before.html in \ext\tatiana5\quickreply\styles\prosilver\template\event

It will give this result after cache purge ;)
after.png
File:
quickreply_editor_message_before.zip
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Android Android

Re: Posting Buttons

Post by Sniper_E »

:thumbup: me like!
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

iorG19
Translators
Translators
Posts: 60
Joined: 10 Dec 2014, 21:50
    Android Chrome

Re: Posting Buttons

Post by iorG19 »

dmzx this extensión is really awesome. Thank you very much! :thumbup:
Image Some [romanian] and [spanish] translations of extensions.

User avatar

Galixte de EzCom
Users
Users
Posts: 39
Joined: 04 Mar 2015, 17:26
    Windows 8.1 Opera

Re: Posting Buttons

Post by Galixte de EzCom »

dmzx wrote:If this mod is installed phpBB • [DEV] QuickReply change this file quickreply_editor_message_before.html in \ext\tatiana5\quickreply\styles\prosilver\template\event

It will give this result after cache purge ;)
after.png
File:
quickreply_editor_message_before.zip
Hi,

Thank you for having corrected !

I am French, and for a multilingual uses, in quickreply_editor_message_before.html file.

You have to search <option value="#" selected="selected">Custom BBCodes</option>.

And replace with <option value="#" selected="selected">{L_CUSTOM_BBCODES}</option>.
Communau EzCom
Image « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».

User avatar

Galixte de EzCom
Users
Users
Posts: 39
Joined: 04 Mar 2015, 17:26
    Windows 8.1 Chrome

Re: Posting Buttons

Post by Galixte de EzCom »

Hi,

for compatibility with QuickReply Reloaded extension, see this topic: phpBB • Posting Buttons extension & QuickReply Reloaded extension - Posting Buttons.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

I have quick reply installed :thumbup: and all is working together good now. Thanks! :eusa_dance:

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

I had to work at it to get other button extensions in this posting buttons extension. Worked that out.

Now I'm working on tables extension and I could not get everything in the right place again.
I added this top EVENT needed to get this extension to be compatible with other extensions.

event/posting_editor_buttons_before.html

Code: Select all

<!--
*
* @package Posting Buttons
* @author dmzx (www.dmzx-web.net)
* @copyright (c) 2014 by dmzx (www.dmzx-web.net)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* 
-->

<!-- EVENT posting_editor_posting_buttons_before -->
<div id="format-postingbuttons">
       <input type="button" class="postingbuttons" accesskey="b" name="addbbcode0" value="" onclick="bbstyle(0)" id="bold" title="{L_BBCODE_B_HELP}" />
       <input type="button" class="postingbuttons" accesskey="i" name="addbbcode2" value="" onclick="bbstyle(2)" id="italic" title="{L_BBCODE_I_HELP}" />
       <input type="button" class="postingbuttons" accesskey="u" name="addbbcode4" value="" onclick="bbstyle(4)" id="underline" title="{L_BBCODE_U_HELP}" />
   <!-- IF S_BBCODE_QUOTE -->
          <input type="button" class="postingbuttons" accesskey="q" name="addbbcode6" value="" onclick="bbstyle(6)" id="comment" title="{L_BBCODE_Q_HELP}" />
   <!-- ENDIF -->
       <input type="button" class="postingbuttons" accesskey="c" name="addbbcode8" value="" onclick="bbstyle(8)" id="page_white_code" title="{L_BBCODE_C_HELP}" />
       <input type="button" class="postingbuttons" accesskey="l" name="addbbcode10" value="" onclick="bbstyle(10)" id="text_list_bullets" title="{L_BBCODE_L_HELP}" />
       <input type="button" class="postingbuttons" accesskey="o" name="addbbcode12" value="" onclick="bbstyle(12)" id="text_list_numbers" title="{L_BBCODE_O_HELP}" />
       <input type="button" class="postingbuttons" accesskey="t" name="addlitsitem" value="" onclick="bbstyle(-1)" id="bullet_black" title="{L_BBCODE_LISTITEM_HELP}" />
   <!-- IF S_BBCODE_IMG -->
          <input type="button" class="postingbuttons" accesskey="p" name="addbbcode14" value="" onclick="bbstyle(14)" id="image" title="{L_BBCODE_P_HELP}" />
   <!-- ENDIF -->
   <!-- IF S_LINKS_ALLOWED -->
          <input type="button" class="postingbuttons" accesskey="w" name="addbbcode16" value="" onclick="bbstyle(16)" id="world_link" title="{L_BBCODE_W_HELP}" />
   <!-- ENDIF -->
   <!-- IF S_BBCODE_FLASH -->
          <input type="button" class="postingbuttons" accesskey="d" name="addbbcode18" value="" onclick="bbstyle(18)" id="page_white_flash" title="{L_BBCODE_D_HELP}" />
   <!-- ENDIF -->
        <input type="button" class="postingbuttons" name="bbpalette"  value="" onclick="change_palette();" id="color_wheel" title="{L_BBCODE_S_HELP}" />
      
   
   <select name="addbbcodes20" class="bbcode-size" onchange="bbfontstyle('[size=' + this.form.addbbcodes20.options[this.form.addbbcodes20.selectedIndex].value + ']', '[/size]');this.form.addbbcodes20.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>
   
   	<!-- EVENT posting_editor_posting_buttons_custom_tags_before -->
   
   	<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">{L_CUSTOM_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>
You really need this events in your template dm... think about it.
Last edited by Sniper_E on 19 Sep 2016, 08:05, edited 2 times in total.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

Let me explain what I'm fighting here.
Your posting buttons extension uses the event template posting_editor_buttons_before.html

My tables extension uses the same event template but yours loads first... I know you have ran across this complaint before.
By me even. It was putting my table guide under the bbcodes, not above it where I needed it to be.

It looked like this: Image


So in order for me or any other ext dev to place something above the bbcodes you need an EVENT it the top of your template.

<!-- EVENT posting_editor_posting_buttons_before -->

I placed that EVENT in the top of your template and was able to use a posting_editor_posting_buttons_before.html in my events.

Now It looks like this: Image

See, with that EVENT in your template we can place something above the bbcode buttons. The way you have it now I could not.

/*tap*\/*tap*\/*tap*\ is this thing on? :lol:

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Posting Buttons

Post by dmzx »

Sniper_E wrote: 19 Sep 2016, 06:09 /*tap*\/*tap*\/*tap*\ is this thing on? :lol:
Added :wink:

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

Thank you dm for the update... the <!-- EVENT posting_editor_posting_buttons_before --> worked out perfect!
Now we can add our text above the bbcode buttons if we use this ext. And I do, it's my choice of buttons.

But your ext here uses special button images not the standard buttons from prosilver.
I still had to edit your updated template to get my special button image in this ext.

<!-- EVENT posting_editor_posting_buttons_custom_tags_before --> was also needed for this to work.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6464
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Posting Buttons

Post by dmzx »

Sniper_E wrote: 21 Sep 2016, 21:11 Thank you dm for the update... the <!-- EVENT posting_editor_posting_buttons_before --> worked out perfect!
Now we can add our text above the bbcode buttons if we use this ext. And I do, it's my choice of buttons.

But your ext here uses special button images not the standard buttons from prosilver.
I still had to edit your updated template to get my special button image in this ext.

<!-- EVENT posting_editor_posting_buttons_custom_tags_before --> was also needed for this to work.
So you changed <!-- EVENT posting_editor_buttons_custom_tags_before -->
to
<!-- EVENT posting_editor_posting_buttons_custom_tags_before -->
?

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

Yes I did.
<!-- EVENT posting_editor_buttons_custom_tags_before --> pulls in the default prosilver button.
<!-- EVENT posting_editor_posting_buttons_custom_tags_before --> will pull in a custom button image for your ext.

You need your own <!-- ..._custom_tags_before --> event for special buttons like you have in this ext.
Not to compare but ABBC3 has his own <!-- ..._custom_tags_before --> and my ext button is setup for that also.

You don't need <!-- EVENT posting_editor_buttons_custom_tags_before --> at all in your ext. In my opinion.
Reference my Template as stated before: Posting Buttons

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Posting Buttons

Post by Sniper_E »

If you will dm... look these files over good when you get time.

I have posting buttons setup in the acp extensions for my tables ext now.
postingbuttons_event.zip
These events in your templates work perfect for us with a bbcode extension to add in your posting butons.

Check your acp buttons out... and my tables button added to your buttons.
tables_acp_postingbuttons.gif
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

Post Reply Previous topicNext topic