Advertisement:

Author Topic: Thread replies "load more"  (Read 964 times)

Offline KBExit

  • Semi-Newbie
  • *
  • Posts: 13
Thread replies "load more"
« 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!

Offline Pipke

  • Full Member
  • ***
  • Posts: 514
    • #31970508 on GitHub
Re: Thread replies "load more"
« Reply #1 on: October 17, 2019, 01:09:23 PM »
there is this mod ACPS - Ajax Continuous Post Scrolling no button but on scrolling, maybe it's what your looking for
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline KBExit

  • Semi-Newbie
  • *
  • Posts: 13
Re: Thread replies "load more"
« Reply #2 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?

Offline Pipke

  • Full Member
  • ***
  • Posts: 514
    • #31970508 on GitHub
Re: Thread replies "load more"
« Reply #3 on: October 19, 2019, 02:04:43 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.
“If something is wrong, fix it if you can. But train yourself not to worry. Worry never fixes anything.”

My Mods for SMF:
Avatars Display Integration
Avatars on Board and/or MessageIndex
Recent Forum Topics on Boardindex
Relative Time Formats

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,534
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Thread replies "load more"
« Reply #4 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

SMF Tricks - Free & Premium Responsive Themes for SMF.

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,146
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: Thread replies "load more"
« Reply #5 on: October 19, 2019, 03:57:47 PM »
I think he wants infinite scroll script for posts

Offline Diego Andrés

  • Customizer
  • SMF Hero
  • *
  • Posts: 3,534
  • Gender: Male
    • DiegoAndresCortes on GitHub
    • @bihgetter on Twitter
    • SMF Tricks - Free & Premium Themes
Re: Thread replies "load more"
« Reply #6 on: October 19, 2019, 04:36:29 PM »
Yes but only because his other pages are broken as he said

SMF Tricks - Free & Premium Responsive Themes for SMF.