News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to change number of pages in "View the most recent posts on the forum"?

Started by probeman, May 24, 2018, 02:05:20 PM

Previous topic - Next topic

probeman

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

?

Kindred

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...
Слaва
Украинi

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."

probeman

OK. Say I wanted to increase it to only 15. How would one go about it?

Shambles

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).


Advertisement: