XF 2.3 Thread Prefix's

QuackieMackie

Active member
How do I create a thread prefix group, and thread prefixs on addon instillation?
Is there a method I'm missing somewhere that simplifies this? Or should I just add new rows into the database?



For now I've settled for just using the title to display the prefixes in this format [fakePrefix] Title which works but isn't ideal. :)
 
Last edited:
Solution
After going a search for myself, I couldn't find anything that would easily let me use Thread Prefixes how I desire without a lot of work on my end.
So I've decided to just stick with the title method for now as it achieves what I need. Not perfectly but it works.
After going a search for myself, I couldn't find anything that would easily let me use Thread Prefixes how I desire without a lot of work on my end.
So I've decided to just stick with the title method for now as it achieves what I need. Not perfectly but it works.
 
Solution
How do I create a thread prefix group, and thread prefixs on addon instillation?
Is there a method I'm missing somewhere that simplifies this? Or should I just add new rows into the database?



For now I've settled for just using the title to display the prefixes in this format [fakePrefix] Title which works but isn't ideal. :)
I'm not I understand what you're asking. Prefix groups are easy to create a ACP.

The groups are the highlighted lines.Screen Shot 2025-08-25 at 12.23.26 PM.webp
 
I'm not I understand what you're asking. Prefix groups are easy to create a ACP.

The groups are the highlighted lines.View attachment 326186
I'm not asking how to create prefix groups and prefixes in the admin control panel, that is easy. I am asking how I can have my addon create specific prefixes and prefix groups to use in that addon.

As I have a specific use case that would benefit from it.
1756159207464.webp

I am currently working on this:

Specifically a way of linking thread creation with marker creation / editing / deleting and I wanted a way of displaying the status of the marker on the thread. I have resorted to using the title as I cannot see an easy way of using prefixes the way I wanted.

As I've seen in the database, the prefixes are stored using ids, and are rendered I believe using those ids. So for example for thread prefix id 6 it would fetch the phrase thread_prefix.6 and display that phrase.

The only way I can see it working for me is if I set up my own query inserting a new prefix and prefix group manually into the database, but this would come with it's own challanges, I would be required to also insert a phrase somehow that works with the prefix id. Which is more work than I care to do on this specific detail as of yet. Maybe in the future I'll look into it but for now my bootleg [FakePlaceholder] MarkerTitle method works.
 
Back
Top Bottom