Infinite Scrolling Option?
I noted that Suki Breeze mod is now implementing this as an option. I wonder if this infinite scroll can be made as an option next to ordinary multiple pages button that we have? That is in message index, display, pm and all that can have multiple pages. Won't be nice or is it just a bloat which can be dealt with as a mod?
Re: Infinite Scrolling Option?
Reply #2 –
I packed emanuale's tips for this at SMF somewhere end of July this year and am wondering if this can be implemented here as a fully hook addon.
Re: Infinite Scrolling Option?
Reply #5 –
I was about to come to this yesterday but were very sleepy. Thank you. I will try this soonest.
Re: Infinite Scrolling Option?
Reply #6 –
Awesome! This is working great. Will be playing with it more.
The only problem that may arise is that the load moar button is still displayed and clickable though there is no more post. If we are from page 1, when click further, it will start to call and display page two again (after the last post has been shown).
Re: Infinite Scrolling Option?
Reply #7 –
Oh, right... I think I put the code, but I forgot to use it... xD
Re: Infinite Scrolling Option?
Reply #10 –
I noted the code catches the page numbers href, but it also catches next page href, so the next page will be repeated at the end. My solution will be to hide next page for it to work properly. I can add the code in, but is it the best way to do it?
Re: Infinite Scrolling Option?
Reply #11 –
The Best WayTM would probably be to output some kind of css and properly track the exact page. Rely on the next url is not really a great solution, more an hack.
Though, at the moment I wouldn't know how to do it properly... I have to look at the code for a bit.
Re: Infinite Scrolling Option?
Reply #13 –
I will push it later on after fixing the load moar as I need to do some other things for now. For the time being, the installable package is in post #8 without the fix in it.