BBCode DatabaseAll custom BBCodes in a dropdown box

BBCode's
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6292
Joined: Jan 13th, '14, 20:45
    unknown unknown

All custom BBCodes in a dropdown box

Post by dmzx »

Custom BBCodes in dropdown box.
Written by Simon


All custom BBCodes in a dropdown box.


Open styles/{YOURTHEMA}/template/posting_buttons.html
Find:

Code: Select all

<!-- 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 -->


Replace by:

Code: Select all

<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">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>





Save, upload and refresh template.
User avatar

iorG19
Translators
Translators
Status: Offline
User theme: Dark
Posts: 48
Joined: Dec 10th, '14, 20:50
    Android Chrome

Re: Alle custom BBCodes in een dropdown box

Post by iorG19 »

Readers don't know what mean :
Zoek
Vervang door

Can you replace with english ? I don't speak netherlands :-)

:beers:
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5023
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Alle custom BBCodes in een dropdown box

Post by martin »

Niether do i but tell chrome to translate all pages :lol:
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6292
Joined: Jan 13th, '14, 20:45
    Windows 8 Firefox

Re: Alle custom BBCodes in een dropdown box

Post by dmzx »

GEORGiOBBLOVER wrote:Readers don't know what mean :
Zoek
Vervang door

Can you replace with english ? I don't speak netherlands :-)

:beers:
Yes some translations have to be made on the forum. ;)
User avatar

kaspir
Users
Users
Status: Offline
User theme: Dark
Posts: 112
Joined: Aug 25th, '16, 10:50
    Windows 7 Firefox

Re: All custom BBCodes in a dropdown box

Post by kaspir »

Perfect, still works on 3.2 as I've noted here! :)

Just said goodbye to advanced bbcode box, this was the perfect alternative.
Image
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads. :P
User avatar

kaspir
Users
Users
Status: Offline
User theme: Dark
Posts: 112
Joined: Aug 25th, '16, 10:50
    Windows 7 Firefox

Re: All custom BBCodes in a dropdown box

Post by kaspir »

On second thought, I kept abbc3 and all its neat bbcodes, then just added this custom code to this file in /ext/vse/abbc3/styles/all/template to my liking if anyone wants likes, enjoy.

Now looks like this:
Image
abbc3_posting_buttons.rar
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5023
Joined: Apr 6th, '14, 14:12
    Windows 10 Chrome

Re: All custom BBCodes in a dropdown box

Post by martin »

:rolling: :rolling: try this
xiradorn_xbbcodesilkbtn_1_4_0.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

cisco007
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Nov 26th, '15, 21:01
    Windows 10 Firefox

Re: All custom BBCodes in a dropdown box

Post by cisco007 »

martin wrote: Jan 11th, '17, 12:31 :rolling: :rolling: try this
xiradorn_xbbcodesilkbtn_1_4_0.zip
before i download this martin, what is the difference on the OP and this? you icons?
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5023
Joined: Apr 6th, '14, 14:12
    Windows 10 Chrome

Re: All custom BBCodes in a dropdown box

Post by martin »

No edits to any files it's an ext also adds images as the fa fa icons look plain.
11.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
User avatar

cisco007
Users
Users
Status: Offline
User theme: Dark
Posts: 78
Joined: Nov 26th, '15, 21:01
    Windows 10 Firefox

Re: All custom BBCodes in a dropdown box

Post by cisco007 »

Ok it's the same that i've had on my forum for years now, awesome! :tumbsyes: :tumbsyes:
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5023
Joined: Apr 6th, '14, 14:12
    Windows 10 Chrome

Re: All custom BBCodes in a dropdown box

Post by martin »

You prob had the same as the rest of us edits :rolling: but np :tumbsyes:
User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1127
Joined: Oct 14th, '14, 17:01
    Android Chrome

Re: All custom BBCodes in a dropdown box

Post by Sniper_E »

I had this code in my site way before any of you did. :rolling:

[ Post made via Samsung Galaxy S5 Active ] Image
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

kaspir
Users
Users
Status: Offline
User theme: Dark
Posts: 112
Joined: Aug 25th, '16, 10:50
    Windows 7 Firefox

Re: All custom BBCodes in a dropdown box

Post by kaspir »

martin wrote: Jan 12th, '17, 00:03 No edits to any files it's an ext also adds images as the fa fa icons look plain.

11.png
:buigen:

I learn as I go!
User avatar

kaspir
Users
Users
Status: Offline
User theme: Dark
Posts: 112
Joined: Aug 25th, '16, 10:50
    Windows 7 Firefox

Re: All custom BBCodes in a dropdown box

Post by kaspir »

martin wrote: Jan 12th, '17, 00:03 No edits to any files it's an ext also adds images as the fa fa icons look plain.

11.png
Getting a problem with MOD_X commands, they just show "MODX_FIND" or MODX_DELETE" as the helpline within post drop-down. They are not pretty like here. I do not see them in ACP, so can't edit there. They also don't parse, but then again neither is my username bbcodes either.

I might have a problem with most of my bbcodes, ever since the 3.2 update many of the helplines have vanished or defaulted to w/e the language variable is I guess. I'm pretty lost on this, any help would be appreciated as many of my bbcodes are broken and it probably has nothing to do with the extension you gave me martin. I'm also posting on phpbb I guess.
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6292
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: All custom BBCodes in a dropdown box

Post by dmzx »

kaspir wrote: Jan 16th, '17, 08:36 I might have a problem with most of my bbcodes, ever since the 3.2 update many of the helplines have vanished or defaulted to w/e the language variable is I guess. I'm pretty lost on this, any help would be appreciated as many of my bbcodes are broken and it probably has nothing to do with the extension you gave me martin. I'm also posting on phpbb I guess.
To this problem the bbCodes are parsed different in 3.2 and you have to update them in your database. (otherwise they will not display correct)