Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: KBExit on October 17, 2019, 10:24:33 AM

Title: Thread replies "load more"
Post by: KBExit on October 17, 2019, 10:24:33 AM
I was wondering if it was possible to load say about 15 posts and instead of dealing with pagination, have the "load more" button load the next 15 posts, and on and on.
I know I have to edit the display.template.php file, but I don't know how to go about doing this. Thank you!
Title: Re: Thread replies "load more"
Post by: Pipke on October 17, 2019, 01:09:23 PM
there is this mod ACPS - Ajax Continuous Post Scrolling (https://custom.simplemachines.org/mods/index.php?mod=3897) no button but on scrolling, maybe it's what your looking for
Title: Re: Thread replies "load more"
Post by: KBExit on October 19, 2019, 12:12:36 PM
Thats not exactly what I want either.
I did some editing to my SMF Display.template.php to make it look like a blog and the first message is different from the rest. I also modified it using the Sticky First Post to every page, but now I'm running into formatting issues with the second page.
I tried to combat this by going into the posts per page settings, but I cannot disable a limit, and even tried to put 99999 but it defaulted back to the original settings.
Is there a way to get rid of the post limit per page by any chance?
Title: Re: Thread replies "load more"
Post by: Pipke on October 19, 2019, 02:04:43 PM
Quote from: KBExit on October 19, 2019, 12:12:36 PM
Is there a way to get rid of the post limit per page by any chance?
yes ofcourse there is, with code anything can be done, is it wise hmm, guess not, why...well if a topic has lets say 1000 replies, then the server needs to load thoudsands of data at once from the db and will crash and your website will be useless.
Title: Re: Thread replies "load more"
Post by: Diego Andrés on October 19, 2019, 03:54:58 PM
Why not try to fix this formatting issue the 'Sticky First Post to every page' mod is giving you?
Have you asked in the support thread?

I tried searching for this mod but didn't find the exact title.
Only result is https://custom.simplemachines.org/mods/index.php?mod=4144
Title: Re: Thread replies "load more"
Post by: Mick. on October 19, 2019, 03:57:47 PM
I think he wants infinite scroll script for posts
Title: Re: Thread replies "load more"
Post by: Diego Andrés on October 19, 2019, 04:36:29 PM
Yes but only because his other pages are broken as he said