Advertisement:

Author Topic: modifying RECENT posts  (Read 2248 times)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: modifying RECENT posts
« Reply #20 on: December 10, 2018, 09:34:09 AM »
Actually it is processing all the posts, because it has to verify what exists then tie it to board to verify access.

Once it gets to 10 it can stop, but trust me, this is what it does under the hood. The time increase isn’t linear.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,211
  • Gender: Male
    • Kindred-999 on GitHub
Re: modifying RECENT posts
« Reply #21 on: December 10, 2018, 11:51:49 AM »
I am not incorrect...   as Arantor explains.

What you have done is NOT recommended.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Dave En Velo

  • Semi-Newbie
  • *
  • Posts: 23
Re: modifying RECENT posts
« Reply #22 on: December 18, 2018, 10:58:52 AM »
Just to offer some support to supernova777.  I have a use case where I would rather trade performance for functionality.  I deploy SMF using a Bitnami image on Google Cloud to a private group of fixed limited numbers.  SMF gives me just what I want, although I would like to increase the View the most recent posts on the forum limit from 100.

So from my perspective a configurable limit (with a recommended value of 100) would be better than the current fixed value, I could even set it lower if I wanted to restrict the performance impact.

I accept that this is a minority requirement and so perhaps not appropriate as a future enhance, especially as supernova777 has described a code change that is not too onerous for the average user.

Offline Dave En Velo

  • Semi-Newbie
  • *
  • Posts: 23
Re: modifying RECENT posts
« Reply #23 on: December 18, 2018, 11:17:06 AM »
A follow-up to my previous Post.  The supernova777 fix would be simple to apply if the name of the script being modified was specified, I cannot figure it out.  Thanks in advance.

Offline supernova777

  • Jr. Member
  • **
  • Posts: 111
  • Gender: Male
  • admin oldschooldaw.com
    • oldschooldaw.com
Re: modifying RECENT posts
« Reply #24 on: May 17, 2020, 04:26:12 PM »
i did end up figuring out how to do what i wanted it to do.. being able to navigate back to 600+ posts or more
i forget what i did now tho its been over a year lol

Offline Dave En Velo

  • Semi-Newbie
  • *
  • Posts: 23
Re: modifying RECENT posts
« Reply #25 on: January 24, 2021, 12:10:55 PM »
Just in case anyone else is going down this same rabbit hole I did eventually manage to work out the code changes, fairly trivial in the end.  See https://www.simplemachines.org/community/index.php?topic=570484.msg4037323#msg4037323

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,211
  • Gender: Male
    • Kindred-999 on GitHub
Re: modifying RECENT posts
« Reply #26 on: January 24, 2021, 03:49:18 PM »
it is still not something we would recommend.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."