- Fix missing whitespace between thread title and prefix on thread view when "Move thread prefixes location" style property is set to "Right-aligned suffix" w
- Fix javascript error when changing prefixes when editing the first post of a thread on XF2.3+


================================================================================
1. TEMPLATE: sv_multiprefix_prefix_input
================================================================================
Admin CP:
Appearance -> Styles -> [your style] -> Templates
Search for:
sv_multiprefix_prefix_input
[A] PUT THREAD TITLE BEFORE PREFIXES
------------------------------------
FIND:
<xf:if is="{$excludeRow} !== 'prefix'">
<div class="prefixContainer">
{$selectbox|raw}
</div>
</xf:if>
<xf:if is="{$excludeRow} !== 'title'">
<div class="inputGroup">
{$textbox|raw}
</div>
</xf:if>
REPLACE WITH:
<xf:if is="{$excludeRow} !== 'title'">
<div class="inputGroup">
{$textbox|raw}
</div>
</xf:if>
<xf:if is="{$excludeRow} !== 'prefix'">
<div class="prefixContainer">
{$selectbox|raw}
</div>
</xf:if>
Purpose:
Makes the full Post Thread form show the title input before the searchable
prefix selector.
[B] REMOVE THE PRE-SELECTED "(No prefix)" TOKEN
-----------------------------------------------
FIND:
arg-includeNone="{$includeNone}"
REPLACE WITH:
arg-includeNone="{{ false }}"
Purpose:
Leaves the prefix selector empty when no prefix is selected instead of
displaying a selected-looking "(No prefix)" token.
Note:
Verified that forums allowing zero prefixes can still create/edit threads with
all prefixes removed.
[C] PREVENT DUPLICATED PREFIX-HELP TEXT
---------------------------------------
FIND:
<xf:if is="$helpHref">
REPLACE WITH:
<xf:if is="$helpHref && {$excludeRow} !== 'prefix'">
Purpose:
Prevents prefix-help text from being rendered again on the title-only half
of Multi Prefix "full-row" forms such as Edit Thread.
[D] LET HELP TEXT DISAPPEAR WHEN A PREFIX IS REMOVED
----------------------------------------------------
FIND:
<div class="formRow-explain formRow-prefixHelp">
REPLACE WITH:
<div class="formRow-explain formRow-prefixHelp prefix-id--{$selectedPrefixId}">
Purpose:
Gives initially rendered help text the same prefix-specific class expected
by Xon's JavaScript, allowing the correct description to disappear when a
selected prefix is removed.
================================================================================
2. TEMPLATE: sv_multiprefix_prefix_macros
================================================================================
Admin CP:
Appearance -> Styles -> [your style] -> Templates
Search for:
sv_multiprefix_prefix_macros
PLACEHOLDER CHANGE
------------------
FIND THIS EXACT LINE:
placeholder="{{ ($max_tokens <= 0 || $max_tokens > 1) ? phrase('prefixes...')|for_attr : phrase('prefix...')|for_attr }}"
REPLACE IT WITH:
placeholder="{{ ($min_tokens > 0 ? phrase('prefixes...') : phrase('xq_optional_prefixes'))|for_attr }}"
Result:
- Minimum prefixes = 0 -> Optional prefixes...
- Minimum prefixes = 1+ -> Prefixes...
Purpose:
Makes it clear that selecting a prefix is optional when the forum allows
zero prefixes.
================================================================================
3. ADD THE CUSTOM PHRASE
================================================================================
Admin CP:
Appearance -> Phrases -> Add phrase
Phrase title:
xq_optional_prefixes
Phrase text:
Optional prefixes...
Save the phrase.
Purpose:
Keeps the visible wording in XenForo's phrase system instead of hard-coding
it directly into the template.
- Compatibility fix for DBTech/eCommerce v5.0.0
- Fix
Single prefix filtering (all)option would disable users adding multiple prefixes for forums which required multiple prefixes- Harden max prefix count being greater than min prefix count was not handled the same on all 3 levels it is checked at (front-end enforcement, backend enforcement, edit forum node behavior)
- Fix prefix help blob could be rendered twice on the edit thread form and also fail to be removed...
placeholder="{{
($max_tokens > 1
? ($min_tokens > 0 ? phrase('prefixes...') : phrase('prefix...'))
: ($min_tokens > 0 ? phrase('svMultiPrefix_optional_prefixes...') : phrase('svMultiPrefix_optional_prefix...'))
)|for_attr
}}"
placeholder="{{ ($min_tokens > 0 ? phrase('prefixes...') : phrase('svMultiPrefix_optional_prefixes'))|for_attr }}"
svMultiPrefix_optional_prefixes = Optional prefixes...
placeholder="{{
($max_tokens > 1
? ($min_tokens > 0 ? phrase('prefixes...') : phrase('svMultiPrefix_optional_prefixes...'))
: ($min_tokens > 0 ? phrase('prefix...') : phrase('svMultiPrefix_optional_prefix...'))
)|for_attr
}}"
- Fix placeholder for prefix selection widget had wrong label for prefix vs prefixes & optional variants
We use essential cookies to make this site work, and optional cookies to enhance your experience.