[OzzModz/Banxix] Bump Thread

[OzzModz/Banxix] Bump Thread 2.1.2 Patch Level 1

No permission to download
The problem with this add-on is that it updates the date of the last visible post in the thread.

But if in a thread the real last post is invisible (soft deleted or moderated), this add-on will change the date of the previous (visible) post, which may be the first post of the thread. Rebuilding post positions will make a previously invisible post first in the thread.

We’re actually unsure on how to solve this other than adding an extra column and a bunch of template modifications.
 
Ozzy47 updated [OzzModz/Banxix] Bump Thread with a new update entry:

[OzzModz/Banxix] Bump Thread for XenForo 2.2+ Update 2.1.2 Patch Level 1

2.1.2 Patch Level 1:
  • Fix: do not bump the date of the first thread post if there is an invisible post after it to avoid moving the post during rebuilding and, consequently, changing the TS (can be enabled in options at your own risk)
  • Fix: rebuild forum latest post information on thread bump (can be disabled in options)

Read the rest of this update entry...
 
The problem with this add-on is that it updates the date of the last visible post in the thread.

But if in a thread the real last post is invisible (soft deleted or moderated), this add-on will change the date of the previous (visible) post, which may be the first post of the thread. Rebuilding post positions will make a previously invisible post first in the thread.

We’re actually unsure on how to solve this other than adding an extra column and a bunch of template modifications.

A simple solution is not to bump the post date in such cases. Latest release does just that.
 
Hi @Ozzy47 this addon looks perfect for use in our classifieds.
Currently the forum is ordered by last post date like all the other forums.
I am considering changing our classifieds forums to being ordered by thread post date and providing this addon as the only way people can bump their own threads.
They would have to pay for a user upgrade to be able to bump.
Thus we would be monetising our classifieds while still keeping them fundamentally free of charge.

Is there any log of bumping? I.e. logging changes to the first post date? I think this might be important to track bumps.

I'm also thinking that an auto bump facility might be something else we can charge users for. It would not be straight forward, though, because it would need to be switched off if the thread is moved to a different forum - i.e. archived (using our archive addon) or deleted.

Thanks for the addon and your consideration on these suggestions.
 
Last edited:
  • ErrorException: Template error: [E_USER_WARNING] Method canDisableBump is not callable on the given object (SV\SearchImprovements\XF\Entity\ThreadCollab)
  • src/XF/Template/Templater.php:1189
  • Generated by: Unknown account
  • May 28, 2024 at 2:46 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/x/...', 1189)
#1 src/XF/Template/Templater.php(1189): trigger_error('Method canDisab...', 512)
#2 internal_data/code_cache/templates/l1/s5/public/thread_view.php(251): XF\Template\Templater->method(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 'canDisableBump', Array)
#3 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#4 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('thread_action_b...', Array, Array, Object(XF\Template\ExtensionSet))
#5 internal_data/code_cache/templates/l1/s5/public/thread_view.php(330): XF\Template\Templater->renderExtension('thread_action_b...', Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('thread_actions', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l1/s5/public/thread_view.php(800): XF\Template\Templater->renderExtension('thread_actions', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#11 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#12 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#13 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#14 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#15 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#18 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#19 src/XF.php(524): XF\App->run()
#20 index.php(20): XF::runApp('XF\\Pub\\App')
#21 {main}

Request state​

array(4) {
["url"] => string(46) "/threads/addon-new-golden-armors.269360/page-4"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


  • ErrorException: Template error: [E_USER_WARNING] Method canBump is not callable on the given object (SV\SearchImprovements\XF\Entity\ThreadCollab)
  • src/XF/Template/Templater.php:1189
  • Generated by: Unknown account
  • May 28, 2024 at 2:46 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/x/...', 1189)
#1 src/XF/Template/Templater.php(1189): trigger_error('Method canBump ...', 512)
#2 internal_data/code_cache/templates/l1/s5/public/bump_thread_button.php(7): XF\Template\Templater->method(Object(SV\SearchImprovements\XF\Entity\ThreadCollab), 'canBump', Array)
#3 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('bump_thread_but...', Array, true, NULL)
#5 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:bump_thr...', Array, true, NULL)
#6 src/XF/Template/Templater.php(1683): MaZ\AUN\XF\Template\Templater->renderTemplate('public:bump_thr...', Array)
#7 internal_data/code_cache/templates/l1/s5/public/thread_view.php(123): XF\Template\Templater->includeTemplate('public:bump_thr...', Array)
#8 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('thread_action_b...', Array, Array, Object(XF\Template\ExtensionSet))
#10 internal_data/code_cache/templates/l1/s5/public/thread_view.php(330): XF\Template\Templater->renderExtension('thread_action_b...', Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('thread_actions', Array, Array, Object(XF\Template\ExtensionSet))
#13 internal_data/code_cache/templates/l1/s5/public/thread_view.php(800): XF\Template\Templater->renderExtension('thread_actions', Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#16 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:thread_v...', Array, true, NULL)
#17 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:thread_v...', Array)
#18 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#19 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#20 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#23 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#24 src/XF.php(524): XF\App->run()
#25 index.php(20): XF::runApp('XF\\Pub\\App')
#26 {main}

Request state​

array(4) {
["url"] => string(46) "/threads/addon-new-golden-armors.269360/page-4"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 
Broken with RC3.

Code:
Fatal error: Declaration of Banxix\BumpThread\XF\Pub\Controller\Forum::applyForumFilters(XF\Entity\Forum $forum, XF\Finder\Thread $threadFinder, array $filters) must be compatible with XF\Pub\Controller\ForumController::applyForumFilters(XF\Entity\Forum $forum, XF\Finder\ThreadFinder $threadFinder, array $filters) in /home/geekberr/public_html/social/src/addons/Banxix/BumpThread/XF/Pub/Controller/Forum.php on line 44
 
Back
Top Bottom