XF 1.1 Prefixes alphabetically

Dakis

Well-known member
As I have many many prefixes, it becomes really ugly when they can't be sorted in alphabetical order. When my moderators or myself want to add a prefix to a thread, it's ridiculous searching through dozens of prefixes to find the one we need, as I don't seem to find any way of sorting them.

Am I missing something?
 
Thanks for the reply Brogan, but I was looking for if there's an automatic way to just sort them alphabetically - I have more than 350 of them and editing them one by one is something I'd like to avoid.
 
Brogan is correct. There's no interface to sort the prefixes differently other than the display order.

It would be possible to sort it differently via a code edit or add-on, however.

I can understand the awkwardness of your situation though. Seeing as all of your prefixes were imported using a custom script written by someone (;)) so it's not like you had the opportunity to enter the display_order properly.
 
Well I see the point of NOT having such an option, as you would imagine someone that enters the prefixes one by one can also control their display order, but for all imports from vbulletin like mine, I have to go edit them one by one.
 
The difficulty lies as well in that the prefix titles are phrased. So the actual thread_prefix table has no knowledge of the phrase titles. So sorting differently actually still isn't all that easy.
 
I'm not using you for testing or anything, I just installed it at my site and nothing blew up.

Only thing I'm unsure of is how it will deal with Greek letters. But I have used the SORT_LOCALE_STRING flag so hopefully it will take that into account.

(You may have to tell me if it's worked or not in that case :p)
 
It's behaving funny, most parts it looks ok but for some characters it just puts the prefixes anywhere. I really don't want you spending more time on this, it's no big deal :)
 
That's what my script has done.

It's taken all your thread prefixes, sorted them, and based on the new sorting it gives them a display order.

Is it only Greek characters that have odd behaviour?
 
But I meant one of my mods already put some display order numbers in some prefixes - would your mod change ALL of them or only those that had zero there?
 
Back
Top Bottom