Resource icon

[Banxix] Bump Thread 1.0.5

No permission to download
not working on 2.2.1
Only template modifications don't work, but they're easy to fix.

Open template modification thread_view (Include template button)
Change the type of modification to "Regular expression"

Find:

HTML:
/<xf:if is="\$thread.canWatch\(\)">.*?<\/xf:button>.*?<\/xf:if>/s

Replace:

Code:
$0
<xf:if is="$xf.options.bump_thread_button_positions == 'top'">
    {{ include('bump_thread_button') }}
</xf:if>

Open template modification quick_reply_macros (Include template button qr)

Find:

HTML:
<xf:button type="submit" class="button--primary" icon="reply">
                {{ $submitText ?: phrase('post_reply') }}
            </xf:button>

Replace:

Code:
<xf:if is="$xf.options.bump_thread_button_positions == 'quickreply_left'">
    {{ include('bump_thread_button_qr') }}
</xf:if>
$0
<xf:if is="$xf.options.bump_thread_button_positions == 'quickreply_right'">
    {{ include('bump_thread_button_qr') }}
</xf:if>

Open template modification forum_filters (Add bumped threads filter in forum)
Change the type of modification to "Regular expression"

Find:

HTML:
/<xf:foreach loop="\$sortOptions" key="\$sortKey" value="\$null">.*?<\/xf:foreach>/Us

Replace:

HTML:
$0
<xf:option value="bumped_threads">{{ phrase('bump_thread_filter') }}</xf:option>

After that, everything works.
 
Last edited:
Unfortunately, it still conflicts with Xon's addons and will completely boink your site if you're using any of them. Looks like another MIA dev
 
@Banxix a couple of your add-ons conflict with my Standard Library by Xon add-on as they use a much older version of the SV/Utils repo. Moving to the shared add-on makes updating a heck of a lot saner (I also take pull requests)

The minimum php version matches XF2.2, so it is a relatively minor bug in php requirements.

What addon and what conflicts?

Since it conflicts with his standard library, which all his addons depend on, I assume all of them.
 
@Banxix a couple of your add-ons conflict with my Standard Library by Xon add-on as they use a much older version of the SV/Utils repo. Moving to the shared add-on makes updating a heck of a lot saner (I also take pull requests)

The minimum php version matches XF2.2, so it is a relatively minor bug in php requirements.

Wouldn't it be as simple as replacing his Banxix/BumpThread/Utils/Finder/SqlJoinTrait.php file contents with you new version SV/StandardLib/Finder/SqlJoinTrait.php?
 
Updated/Supported version of the addon is here,

It is a direct replacement, no need to uninstall this one.
 
How to make it possible to raise all threads with one button? All threads in 1 category.
 
Top Bottom