SimplePortal

Support => English Support => Topic started by: nugget on December 23, 2012, 07:28:42 PM

Title: Recent Post - length of time
Post by: nugget on December 23, 2012, 07:28:42 PM
How long does the recent post block display a post or topic?

I have a topic with not many posts and the block only shows the post for a short time then says no new topics.
I want the 'most recent' to be the latest until it is replaced with another post.

Thank you
Title: Re: Recent Post - length of time
Post by: AngelinaBelle on February 25, 2013, 03:58:58 PM
Recent post does not have to do with a length of time, but with the number of posts that have come after it.
Even if those posts come on boards that are not included in your recentposts block.

I assume that is what is going on -- you are showing the recent posts from a small number of boards.
And after that shown posts is made, a bunch more posts are made on other boards.  After that, the post disappears from the "recent" block.

Here is why:
The SSI function used by that block only checks so many posts back in your database.
That is to keep it from checking all the way back, potentially millions of posts, to the very first post ever made on your forum. That kind of checking could really slow things down.

In your case, you are already limiting the number of posts to check by limiting the number of boards to check.
So one thing you can do is have a look in SSI.php for 'min_message_id'

where you find that, in the function ssi_recentposts, you may want to change "35" to something bigger.
50 might work.  100 might work.  Depending on the ratio between how many new posts are going on the board that goes in your block and how many posts are going places that do not show up in your block, you might need an even higher number.  A ridiculously high number will put more burden on the database, and potentially even slow things down when your forum gets busy. The size of "Ridiculous" really depends on the activity of the boards involved calls to the SSI function ssi_recentPosts

Title: Re: Recent Post - length of time
Post by: MissyNL on March 07, 2013, 12:47:57 PM
thanks for your reply :)
Title: Re: Recent Post - length of time
Post by: AngelinaBelle on March 11, 2013, 01:16:58 PM
And remember -- that 'min_message_id' appears twice in SSI.php.  Once for recent posts, and once for recent topics, so you can control these two separately.
SimplePortal 2.3.8 © 2008-2024, SimplePortal