[MC] Infinite Scroll

[MC] Infinite Scroll 1.2.0

No permission to download
Infinte scroll seems to conflict with the Centrifugo live update add-on, which is a primary feature we use. Got this error while trying to create a DM to test live update functionality.

Stack trace​



UPDATE xf_user SET conversations_unread = ? WHERE user_id = 1536
------------

#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL query err...', 1020, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(83): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1020, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(323): XF\Db\AbstractAdapter->query('UPDATE `xf_use...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1412): XF\Db\AbstractAdapter->update('xf_user', Array, 'user_id = 153...')
#5 src/XF/Entity/ConversationUser.php(62): XF\Mvc\Entity\Entity->fastUpdate('conversations_u...', 1)
#6 src/XF/Mvc/Entity/Entity.php(1330): XF\Entity\ConversationUser->_postSave()
#7 src/XF/Entity/ConversationRecipient.php(45): XF\Mvc\Entity\Entity->save()
#8 src/addons/MMO/LiveNotifications/XF/Entity/ConversationRecipient.php(12): XF\Entity\ConversationRecipient->_postSave()
#9 src/XF/Mvc/Entity/Entity.php(1330): MMO\LiveNotifications\XF\Entity\ConversationRecipient->_postSave()
#10 src/XF/Repository/ConversationRepository.php(289): XF\Mvc\Entity\Entity->save(true, false)
#11 src/XF/Service/Conversation/CreatorService.php(246): XF\Repository\ConversationRepository->insertRecipients(Object(XF\Entity\ConversationMaster), Array, Object(SV\AttachmentImprovements\XF\Entity\User))
#12 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Conversation\CreatorService->_save()
#13 src/XF/Pub/Controller/ConversationController.php(355): XF\Service\Conversation\CreatorService->save()
#14 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\ConversationController->actionAdd(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Conversation', 'Add', Object(XF\Mvc\RouteMatch), Object(MMO\LiveConversations\XF\Pub\Controller\ConversationController), NULL)
#16 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(MMO\LiveConversations\XF\Pub\Controller\ConversationController), NULL)
#17 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#18 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#19 src/XF.php(814): XF\App->run()
#20 index.php(23): XF::runApp('XF\\Pub\\App')
#21 {main}
 
Hi, when Enable infinite scrolling in threads is selected, please also make the quick reply form sticky in the bottom area.
It seems impossible to do a quick reply on thread view with infinite scrolling enabled.

The add-on actually has a trigger for the quick reply button if you're using this. https://xenforo.com/community/resources/cxf-sticky-create-button.8234/

That's what I was using on my personal site. I'm working on a native solution though, and will most likely be a floating editor.

Infinte scroll seems to conflict with the Centrifugo live update add-on, which is a primary feature we use. Got this error while trying to create a DM to test live update functionality.

I'll look into this.
 
Infinte scroll seems to conflict with the Centrifugo live update add-on, which is a primary feature we use. Got this error while trying to create a DM to test live update functionality.
That conflict has nothing to do this add-on. The trace is contained within MMO\LiveConversations and MMO\LiveNotifications.

You'll have to reach out to that developer.
 
That conflict has nothing to do this add-on. The trace is contained within MMO\LiveConversations and MMO\LiveNotifications.

You'll have to reach out to that developer.
Never had the issue prior to installing infinite scroll. And it resolved upon removal.
 
I'm still working on this FYI, just taking longer because my other projects have priority and Javascript is a pain my rear. :ROFLMAO: Trying to really nail it down so it's seamless as much as possible.

This is what I'm going for, a floating reply bar that will take you down to the editor when its clicked on. I was messing with using a floating editor, but there was too many variables between making it seamless between desktop and mobile, along with making 3rd party add-ons that affect the reply editor compatible.

brave_screenshot_localhost (70).webp
 
Matt C. updated [MC] Infinite Scroll with a new update entry:

1.1.0

We have released a new version with new features and improvements.
  • There is now a floating reply bar over every thread longer than 1 page that will take you to the editor when clicking on it. It has a scroll progress bar indicating scroll distance, the page number, and a play/pause button to control infinite scrolling.
  • There are now four options to control reply behavior:
    • Insert reply inline follows default behavior, adding the post to the loaded content...

Read the rest of this update entry...
 
How is the new update working out for everyone? I also would like to know which reply behavior people are using. The reply behaviors took the longest to fine tune.
 
seems to be broken with newest Xenforo 2.3.13 after upgrade from Xenforo 2.3.12

Several errors on the complete forum/site like this and only a white screen instead:
Code:
LogicException: Template public:PAGE_CONTAINER error: Cannot modify container while locked src/XF/Container.php:325
PHP:
Stack-Trace
#0 src/XF/Container.php(111): XF\Container->assertNotLocked()
#1 src/XF/Container.php(68): XF\Container->set('mc_branding', Array)
#2 src/XF/App.php(2923): XF\Container->offsetSet('mc_branding', Array)
#3 src/addons/MC/InfiniteScroll/Template/Callback/Copyright.php(35): XF\App->__set('mc_branding', Array)
#4 src/XF/Template/Templater.php(1911): MC\InfiniteScroll\Template\Callback\Copyright::getCopyrightText('', Array, Object(SV\StandardLib\XF\Template\Templater))
#5 internal_data/code_cache/templates/l3/s1/public/PAGE_CONTAINER.php(1441): XF\Template\Templater->callback('MC\\InfiniteScro...', 'getCopyrightTex...', '', Array)
#6 src/XF/Template/Templater.php(1821): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#7 src/XF/Pub/App.php(612): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#8 src/XF/App.php(2577): XF\Pub\App->renderPageHtml('











   
    ...', Array, Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#9 src/XF/Mvc/Dispatcher.php(416): XF\App->renderPage('











   
    ...', Object(XF\Mvc\Reply\View), Object(XF\Mvc\Renderer\Html))
#10 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2840): XF\Mvc\Dispatcher->run()
#12 src/XF.php(850): XF\App->run()
#13 index.php(23): XF::runApp('XF\\Pub\\App')
#14 {main}
Code:
array(4) {
  ["url"] => string(43) "/themen/antidroehnmaterial-motorhaube.1640/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I deactivated the infinite scroll addon and my site works again, without new errors.

Can you please take a look at this - your addon otherwise is prety cool and helpfull. :-)
 
Last edited:
Matt C. updated [MC] Infinite Scroll with a new update entry:

Five new areas: search, tags, profile posts, Media Gallery and Resource Manager

Infinite Scroll 1.2.0 adds infinite scrolling to search results, tag pages, member profile posts, Media Gallery and Resource Manager, each switched on separately. Lists also no longer skip or repeat items when new content arrives while a member is scrolling.

Release highlights
  • Five new areas, from tag pages to Media Gallery
  • A clear "Infinite scrolling is paused" state with a Resume button
  • The "Write a reply…" bar slides away before it can cover the...

Read the rest of this update entry...
 
hey hello,
just noticed the reply bar on this and tried it out....looks great on mobile but feels like its in the way on desktop or something....i pushed it down 10px and still dont like the full width bar, vs the addon sticky create button.

for me, ideally id like the full width reply bar on mobile, cuz its easier to "see" than bassmans button...or something..

then for desktop i like the progress bar/note and whatever ppl might use the pause button for, but id rather that all crunched on the right with page jump buttons...if that makes sense. what you think?

kind regards
 
hey hello,
just noticed the reply bar on this and tried it out....looks great on mobile but feels like its in the way on desktop or something....i pushed it down 10px and still dont like the full width bar, vs the addon sticky create button.

for me, ideally id like the full width reply bar on mobile, cuz its easier to "see" than bassmans button...or something..

then for desktop i like the progress bar/note and whatever ppl might use the pause button for, but id rather that all crunched on the right with page jump buttons...if that makes sense. what you think?

kind regards

I can add a style property to hide on desktop, in the mean time you can add this to EXTRA.less.

Less:
@media (min-width: (@xf-responsiveMedium + 1))
{
    .mc-is-replyJump
    {
        display: none;
    }
}

And I can explore some alternate design options.

then idk if this is a bug here but i noticed if i super scroll past the editor, before the scroll can apply....it breaks the page jump buttons

What do you mean by break?
 
Back
Top Bottom