and do the css edit only if you get two posting button rows showing.
I must have an old copy of posting buttons.
[ Post made via Samsung Galaxy S5 Active ]

I don't have that file either.Sniper_E wrote: 23 Aug 2017, 15:30 Then copy that second file to ext_quickreply_transform_text_buttons_after.htm
That second file would be the posting_editor_buttons_before.htmlSniper_E wrote: 23 Aug 2017, 15:30 Then copy that second file to ext_quickreply_transform_text_buttons_after.htm
In your extension you would use a event name for your button code.miri4ever wrote: 14 Jun 2020, 14:301. How can I add own new Buttons from BBCodes / Extensions to this one ?
The font awesome icons are what is being used in the regular phpbb buttons.2. How can the Icons changed to Font Awesome Codes
Posting buttons are placed in the posting buttons on posting. mChat picks the buttons up from there.3. How to Display only in MChat but not inside the normal Posting Editor ?
Code: Select all
{% if MCHAT_PAGE %}
Code: Select all
{% endif %}
Code: Select all
{% EVENT dmzx_postingbuttons_posting_editor_buttons_prepend %}
Code: Select all
{% if S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="font_awesome" value=" " title="{{ lang('BBCODE_B_HELP') }}" /">
<a onclick="bbstyle(0)";><i class="icon fa-bold fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
{% if S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="font_awesome" value=" " title="{{ lang('BBCODE_I_HELP') }}" />
<a onclick="bbstyle(2)";><i class="icon fa-italic fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
{% if S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="font_awesome" value=" " title="{{ lang('BBCODE_U_HELP') }}" />
<a onclick="bbstyle(4)";><i class="icon fa-underline fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
Code: Select all
{% if U_USE_FONT_AWESOME_BBCODE && S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="font_awesome" value=" " title="{{ lang('FONT_AWESOME_HELP') }} {{ lang('FONT_AWESOME_ICONS') }}{{ lang('COLON') }} {{ FONTAWESOME_VALUE }} • {{ lang('FONT_AWESOME_POPUP') }}{{ lang('COLON') }} {{ FONTAWESOME_WIDTH }}{{ lang('FONTAWESOME_PX') }} × {{ FONTAWESOME_HEIGHT }}{{ lang('FONTAWESOME_PX') }}">
<a href="{{ U_FONTAWESOME }}" onclick="popup(this.href, {{ FONTAWESOME_WIDTH }}, {{ FONTAWESOME_HEIGHT }}, '_fontawesome'); return false;">
<i class="icon fa-flag fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
Code: Select all
{% if S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="bbpalette" value=" " title="{{ lang('BBCODE_S_HELP') }}" />
<a onclick="change_palette()";><i class="icon fa-tint fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
Code: Select all
{% if U_USE_TABLES_BBCODE && S_BBCODE_ALLOWED %}
<button type="button" class="button button-icon-only" name="font_awesome" value=" " title="{L_TABLE_SELECTIONS_SHOW}">
<a onclick="toggle_pb_table_selections();" title="{L_TABLE_SELECTIONS_SHOW}"><i class="icon fa-table fa-fw awesome_icon" aria-hidden="true"></i></a></button>
{% endif %}
Code: Select all
{% if S_BBCODE_ALLOWED %}
<select class="bbcode-size" name="abbc3_font" onchange="bbfontstyle('[font=' + this.form.abbc3_font.options[this.form.abbc3_font.selectedIndex].value + ']', '[/font]'); this.form.abbc3_font.selectedIndex = 0" title="{{ custom_tag.BBCODE_HELPLINE }}">
<option selected="selected" >{{ lang('ABBC3_FONT_BBCODE') }}</option>
<optgroup label="{{ lang('ABBC3_FONT_SAFE') }}">
<option style="font-family: Arial, sans-serif;" value="Arial">Arial</option>
<option style="font-family: Arial Black, sans-serif;" value="Arial Black">Arial Black</option>
<option style="font-family: Comic Sans MS, sans-serif;" value="Comic Sans MS">Comic Sans MS</option>
<option style="font-family: Courier New, sans-serif;" value="Courier New">Courier New</option>
<option style="font-family: Georgia, sans-serif;" value="Georgia">Georgia</option>
<option style="font-family: Impact, sans-serif;" value="Impact">Impact</option>
<option style="font-family: Times New Roman, sans-serif;" value="Times New Roman">Times New Roman</option>
<option style="font-family: Trebuchet MS, sans-serif;" value="Trebuchet MS">Trebuchet MS</option>
<option style="font-family: Verdana, sans-serif;" value="Verdana">Verdana</option>
</optgroup>
<optgroup label="{{ lang('ABBC3_FONT_FANCY') }}">
<option style="font-family: Bradley Hand ITC, sans-serif;" value="Bradley Hand ITC" >Bradley Hand ITC</option>
<option style="font-family: Century Gothic, sans-serif;" value="Century Gothic" >Century Gothic</option>
<option style="font-family: Curlz MT, sans-serif;" value="Curlz MT">Curlz MT</option>
<option style="font-family: cursive, sans-serif;" value="cursive">Cursive</option>
<option style="font-family: fantasy, sans-serif;" value="fantasy">Fantasy</option>
<option style="font-family: French Script MT, sans-serif;" value="French Script MT">French Script MT</option>
<option style="font-family: Garamond, sans-serif;" value="Garamond">Garamond</option>
<option style="font-family: Garamond Bold, sans-serif;" value="Garamond Bold">Garamond Bold</option>
<option style="font-family: Goudy Stout, sans-serif;" value="Goudy Stout">Goudy Stout</option>
<option style="font-family: Helvetica, sans-serif;" value="Helvetica">Helvetica</option>
<option style="font-family: monospace, sans-serif;" value="monospace">Monospace</option>
<option style="font-family: OCR A Extended, sans-serif;" value="OCR A Extended">OCR A Extended</option>
<option style="font-family: Script MT Bold, sans-serif;" value="Script MT Bold">Script MT Bold</option>
</optgroup>
<optgroup label="{{ lang('ABBC3_FONT_WIN') }}">
<option style="font-family: Lucida Console, sans-serif;" value="Lucida Console">Lucida Console</option>
<option style="font-family: Lucida Sans Unicode, sans-serif;" value="Lucida Sans Unicode">Lucida Sans Unicode</option>
<option style="font-family: Microsoft Sans Serif, sans-serif;" value="Microsoft Sans Serif">Microsoft Sans Serif</option>
<option style="font-family: MS Mincho, sans-serif;" value="MS Mincho">MS Mincho</option>
<option style="font-family: Palatino Linotype, sans-serif;" value="Palatino Linotype">Palatino Linotype</option>
<option style="font-family: Symbol, sans-serif;" value="Symbol">Symbol</option>
<option style="font-family: Tahoma, sans-serif;" value="Tahoma">Tahoma</option>
</optgroup>
</select>
{% endif %}