Multi Prefix

Multi Prefix [Paid] 2.11.1

No permission to buy ($30.00)

swiftyste

Active member
@Xon Yeah your thinking not this guy again 🤬 do you know the code for multi prefixes in filters? example:

<xf:if is="in_array($filters.prefix_id,[256,257,258])">

Thanks again.
 

Xon

Well-known member
The easiest solution is;
XML:
<xf:if is="in_array(256, $filters.prefix_id) || in_array(257, $filters.prefix_id) || in_array(258, $filters.prefix_id)">
 

swiftyste

Active member
The easiest solution is;
XML:
<xf:if is="in_array(256, $filters.prefix_id) || in_array(257, $filters.prefix_id) || in_array(258, $filters.prefix_id)">
If only xf wasn't as simple, thanks so much for your help with this! Does save me copying and pasting the same code 20 times it is what it is when you want different descriptions to some prefixes & doesn't use default for the rest.

That's definitely it for now thanks again!
 

Robert9

Well-known member
Maybe someone can explain me how the prefix and prefix_ids are saved?
In prefix_id we have one prefix_id, in prefix_ids we have them all.
So one prefix_id is in both fields, but which one?

What is the rule to save them? Is it done by the display_value? Or come in first, saved first? Or ?
 

Xon

Well-known member
The value which gets saved into prefix_id is somewhat non-deterministic when inspecting a pile of threads after they have been saved.

The prefix displays prefixes by prefix sort order, and tries to save in that sort order. Meaning the first prefix you see should be the one you expect as prefix_id.

However, if the thread's prefix sort order doesn't match the forum's prefix sort order' the forum's sort user is used for rendering. This makes the first prefix in the prefix list not match the value of prefix_id
 

Cyberkef

Member
Good afternoon @Xon

In v2.4.0 support was added for Watched Threads filtering, but today one of my users reported that this does not seem to work (don't know since when, currently running v2.10.1). The prefixes are clickable, but nothing happens when clicked.
 

Cyberkef

Member
@Cyberkef make sure you've updated both MultiPrefix and Watched Threads filtering to the latest versions
Ah my bad, I did not see from the description of v2.4.0 that it was a whole other add-on on itself (Watched Threads filtering is not installed on our forum)!

Maybe it would make sense that the (Multi) Prefixes remain unclickable on the vanilla watched thread overview (= as it is by default) if the Watched Threads filtering add-on is not installed (as it doesn't do anything anyway)? 🤔
 
Top