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.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)">
prefix_id
is somewhat non-deterministic when inspecting a pile of threads after they have been saved.prefix_id
.prefix_id
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)!@Cyberkef make sure you've updated both MultiPrefix and Watched Threads filtering to the latest versions
<h2 class="articlePreview-title">
<a href="/forums/6/?prefix_id=36" class="labelLink" rel="nofollow"><span class="unlimitedLabel label label--1" dir="auto">Combat sports</span><span class="label-append"> </span><span class="unlimitedLabel label label--2" dir="auto">Kickboxing</span><span class="label-append"> </span><span class="unlimitedLabel label label--3" dir="auto">City of London</span><span class="label-append"> </span></a>
<a href="/threads/25/">IAKSHII KAKAHIII SE</a>
</h2>
- Improve "article forum" compatibility and multiple filters being clickable filters
- Fix clickable filtering prefixes where added to the watched thread list when watched threads filtering add-on is not enabled/installed
An exception occurred: [ErrorException] [E_WARNING] Cannot declare class SV\MultiPrefix\XF\Template\XFCP_Templater, because the name is already in use in src/XF/Extension.php on line 171
XF::handlePhpError()
class_alias() in src/XF/Extension.php at line 171
XF\Extension->extendClass() in src/XF/App.php at line 2868
XF\App->extendClass() in src/XF/App.php at line 1819
XF\App->setupTemplaterObject() in src/XF/App.php at line 1381
XF\App->XF\{closure}() in src/XF/Container.php at line 31
XF\Container->offsetGet() in src/XF/App.php at line 3244
XF\App->templater() in src/XF/Admin/App.php at line 99
XF\Admin\App->preRender() in src/XF/Mvc/Dispatcher.php at line 397
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 60
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
XF\App->run() in src/XF.php at line 524
XF::runApp() in admin.php at line 13
How did you upload the files?
When doing a update via the GUI, you must leave the existing files intact and merge the zip's files in overwriting files (but not folders!).
Doing an add-on rebuild should get the add-on & site back into a working state.
That already exists; look for the "Move thread prefixes location" style property with the XF admin quick search.Would be possible to have a setting that puts prefixes on their own row? For example top row pushing title below prefixes. If you are using many prefixes which this addon is for, title is pushed far right and depending on how many prefixes and/or title length it can look really weird.
It only works in forums, not in resources app. Sorry, should have been more specific. But yeah, only works in forums.That already exists; look for the "Move thread prefixes location" style property with the XF admin quick search.
There is likely a template modification that isn't applying correctly, I'll likely need to adjust it a bit for custom themes.Hey Xon, have you seen this before? Clicking thread title opens another prefix field. Doesn't really seem right. Tried with all other add-ons disabled but still doing it (capture is before I disabled add-ons). Version: 2.11.2
View attachment 271747
We use essential cookies to make this site work, and optional cookies to enhance your experience.