Page 1 of 1

A better way to reorder bbcodes

Posted: Fri Jun 14, 2019 8:00 am
by BroIgnatius
Folks:

I have a lot of bbcode I need to re-order. To do the up or down arrow will take a enormous amount of time.

Other forum software bbcodes can be reordered by placing a number beside it. This is like Netflix members numbering or re-numbering their list of dvd's they want to rent.

This method is much faster and cleaner.

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 2:33 am
by kinerity
What "up or down arrow"?

BBCodes.png

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 3:26 am
by dingus33
yeah, is there actually a way to reorder the bbcode buttons??

i've been doing it with jQuery which works but isn't ideal.

for example, to move the quote button just after the italic button:

Code: Select all

$('button.bbcode-i').after($('button.bbcode-quote'));
(you can try it in your browser's console)

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 4:29 am
by Lumpy Burgertushie
all you have to do is edit the posting_buttons.html file to reorder them.

robert

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 7:04 am
by canonknipser
Robert, that only works for the default ones, not the custom bbcodes.

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 9:44 am
by fagbutlil
;) auto alphabetically sorted on page load by js :lol:

Image

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 9:24 pm
by BroIgnatius
Image

In the version I am using, which is the latest, there are arrows, see above, to re-order the bbcodes. This also has a grab and drop feature with the mouse that I forgot about. That feature is lightyears better than using the arrows. But, the re-ordering by changing the number of the order I think is better when there is a need to re-order the entire list. I guess the grab and drop feature will work good enough.

Re: A better way to reorder bbcodes

Posted: Sun Jun 16, 2019 9:27 pm
by BroIgnatius
Editing the posting_buttons.html file I think I will do also as there are some changes I would like to make to the core bbcodes.

Thanks for reminding me about that.

Re: A better way to reorder bbcodes

Posted: Mon Jun 17, 2019 8:53 am
by dingus33
BroIgnatius wrote:
Sun Jun 16, 2019 9:24 pm
Image

In the version I am using, which is the latest, there are arrows, see above, to re-order the bbcodes. This also has a grab and drop feature with the mouse that I forgot about. That feature is lightyears better than using the arrows. But, the re-ordering by changing the number of the order I think is better when there is a need to re-order the entire list. I guess the grab and drop feature will work good enough.
i'm using phpBB 3.2.7 (latest version at this time), and i definitely don't see arrows in ACP > Posting > BBCodes

Re: A better way to reorder bbcodes

Posted: Mon Jun 17, 2019 9:06 am
by david63
If I am not mistaken the option to order custom bbcodes is part of the Advanced BBCode Box extension - but this only applies to custon codes, the default codes are not affected.

Re: A better way to reorder bbcodes

Posted: Mon Jun 17, 2019 3:26 pm
by Lumpy Burgertushie
that must be it. I do not have any ordering arrows either. also, note that the default bbcodes are not listed in the bbcode section of the acp either.

the only way to edit them is via the html files.


robert