Advertisement:

Author Topic: How to change number of pages in "View the most recent posts on the forum"?  (Read 222 times)

Offline probeman

  • Semi-Newbie
  • *
  • Posts: 45
Right now the "View the most recent posts on the forum" link at the bottom of our forum home page shows 10 pages of recent posts.  Like this:

Pages: [1] 2 3 ... 10

How can I increase that to say 25 pages like this:

Pages: [1] 2 3 ... 25

?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,262
  • Gender: Male
    • Kindred-999 on GitHub
you really don't want to do that.  Getting the recent posts list is a very "expensive" query, which is why it is limited to the number it is...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline probeman

  • Semi-Newbie
  • *
  • Posts: 45
OK. Say I wanted to increase it to only 15. How would one go about it?

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,773
  • Gender: Male
    • i30 Owners Club
The limitations are set in Recent.php, including the max number of query results (100) and the construction of the page index.

You just need to play around with the limits in there (they're reasonably obvious in the code).

Offline probeman

  • Semi-Newbie
  • *
  • Posts: 45
Thank-you.