collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 59
  • Dot Hidden: 0
  • Dot Users: 3
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • Skaty: [link]
    May 21, 2013, 02:54:27 PM
  • Skaty: tooltip in sp block
    May 21, 2013, 02:54:20 PM
  • Tattoocu_CarteL: neden adres yazınca link diye çikiyor direk adres çiksa olmaz mı
    May 19, 2013, 11:54:41 AM
  • Tattoocu_CarteL: [link]
    May 19, 2013, 11:54:26 AM
  • Old Fossil: Hey Nathaniel
    May 16, 2013, 09:41:05 AM
  • Nathaniel: lurk
    May 16, 2013, 03:19:14 AM
  • omidmavi1986: :'(
    May 15, 2013, 05:51:48 AM
  • DeToX: very nice simple mod's like!
    May 09, 2013, 01:32:03 PM
  • dhayzon: ;D
    May 09, 2013, 12:38:23 PM
  • dhayzon: xd
    May 09, 2013, 12:38:19 PM
  • dhayzon: hola y les hablo en español me gusta mucho el portal
    May 09, 2013, 12:38:12 PM
  • la muerte: If only I'd know how to fix it :D
    May 06, 2013, 11:24:15 AM
  • la muerte: I might have found the reason many sites have issues with shoutbox refresh looping on post etc [link]
    May 06, 2013, 11:23:57 AM
  • apo: elinize saglik beyler
    May 03, 2013, 02:08:40 PM
  • [SiNaN]: Well, you can't do much about it. I'm sure everyone is trying their best but it's not easy. At least old solved topics may provide a clue for those having similar problems I hope.
    May 02, 2013, 11:33:00 AM
  • JohnS: Wow! visited site earlier and 3 users online - that must be a record lately. I ca't see point of support pages here as number of posts with zero replies is big!
    May 02, 2013, 08:46:34 AM
  • rocknroller: what is up
    April 30, 2013, 02:06:06 PM
  • rocknroller: hey
    April 30, 2013, 02:05:53 PM
  • dhayzon: Shoutbox in an iframe is possible
    April 27, 2013, 11:00:14 AM

* Team Blog

* Recent Posts

Re: Only certain topics by DeToX
[Today at 07:34:38 AM]


Re: Custom Message Block by Hoodie
[Yesterday at 01:39:56 PM]


Re: Roster by Hoodie
[Yesterday at 12:36:47 PM]


¿como agrego un chat a mi foro? by cachencho29
[Yesterday at 10:28:23 AM]


¿como agrego un contador de visitas? by cachencho29
[Yesterday at 10:25:24 AM]

Welcome to SimplePortal.net! You can download SimplePortal from the Download Page!

Author Topic: Recent Post - length of time  (Read 959 times)

0 Members and 1 Guest are viewing this topic.

Offline nugget

  • Semi Newbie
  • *
  • Posts: 27
  • SMF Version: 1.1.9
  • SP Version: 2.2.1
Recent Post - length of time
« on: December 23, 2012, 06: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

Offline AngelinaBelle

  • On Leave
  • *
  • Posts: 4343
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Recent Post - length of time
« Reply #1 on: February 25, 2013, 02: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

Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline MissyNL

  • Jr. Member
  • **
  • Posts: 73
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Recent Post - length of time
« Reply #2 on: March 07, 2013, 11:47:57 AM »
thanks for your reply :)

Offline AngelinaBelle

  • On Leave
  • *
  • Posts: 4343
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Recent Post - length of time
« Reply #3 on: March 11, 2013, 11:16:58 AM »
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.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?