Author Topic: Main page shows 25 recent topics, ignores option saying 40  (Read 905 times)

0 Members and 1 Guest are viewing this topic.

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Main page shows 25 recent topics, ignores option saying 40
« on: February 11, 2023, 05:32:05 AM »
Go to Lemmings Forums main page. Scroll down. You'll see a list of recent topics, each with a link to its latest post. This list is 25 topics long.

The list ignores the list length that we set in the forum admin options:

Admin button (at top of page, only visible for forum admins)
→ Features and Options
→ Configuration
→ Current Theme
→ Number of recent posts to display on board index:

Expected instead: If the setting is 40, the list should contain 40 topics, not 25.

It's a regression, the forum heeded the setting some years ago.

More testing: I can set it to, e.g., 15, and then the list will show only 15 topics, okay. I can set it to 25 and it will show 25 topics. But 30 or 40 will still show only 25.

(We can argue if 40 is too much, we can find some other value that works for you. With 25 new topics, I see borderline over a week of history only, and I really have only ~20 different topics, not 25, in it because I see ~5 recycling posts in a separate line. But that's beside the point of the bug.)

-- Simon
« Last Edit: February 11, 2023, 07:11:44 AM by Simon »

Offline namida

  • Administrator
  • Posts: 12241
    • View Profile
    • NeoLemmix Website
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #1 on: February 11, 2023, 06:54:43 AM »
Are you okay with this being moved to the public Site Discussion board?
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #2 on: February 11, 2023, 07:10:59 AM »
Yep, I'll move it!

-- Simon

Offline IchoTolot

  • Posts: 3484
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #3 on: February 11, 2023, 10:01:31 AM »
I am not insane after all!!!!

I was just wondering yesterday why that list suddenly was so short and in panic searched for a profile option to change it back!

I did not find anything there and on google only stuff an admin can do.

So yes if that list was back at 40 again it would be very much appreciated! :)

Offline NieSch

  • Posts: 338
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #4 on: February 11, 2023, 11:02:08 AM »

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #5 on: February 12, 2023, 04:10:45 AM »
And the list shinks day by day. Yesterday I saw 24, today only 22.

All while the setting remains at 40.

-- Simon

Offline kaywhyn

  • Posts: 1681
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #6 on: February 12, 2023, 04:24:07 AM »
And the list shinks day by day. Yesterday I saw 24, today only 22.

All while the setting remains at 40.

-- Simon

Hmm, it would appear that the amount is not the same for everyone then. I think yesterday I counted 19. Today, only 17 now
https://www.youtube.com/channel/UCPMqwuqZ206rBWJrUC6wkrA - My YouTube channel and you can also find my playlists of Lemmings level packs that I have LPed
kaywhyn's blog: https://www.lemmingsforums.net/index.php?topic=5363.0

Offline WillLem

  • Posts: 2818
  • Unity isn't sameness, it's togetherness
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #7 on: February 13, 2023, 01:41:03 AM »
FWIW, I'd probably set it to about 100 if I could, so more is preferable if possible.

Benefits of this are being able to see what's been updated if you have been away for a while (say, more than a week), but it's also possible to quickly locate threads that have been spoken about within the last few weeks, but perhaps not updated more recently.

Offline Silken Healer

  • Posts: 157
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #8 on: February 13, 2023, 04:03:19 PM »
And the list shinks day by day. Yesterday I saw 24, today only 22.

All while the setting remains at 40.

-- Simon

Hm. This is peculiar. Can you still set it to less than the current amount of topics okay? What about more than the current amount of topics but less than 25?

Offline IchoTolot

  • Posts: 3484
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #9 on: February 13, 2023, 04:12:08 PM »
Maybe it has something to do with the date?

Like the history can still show up to 40 topics, but only takes into consideration the last 2 weeks or so. --> That could explain the fluctuating number!

Maybe this extra option was introduced in a recent "Simple Machines" update and that new standard needs to be turned off now so it always goes up the the maximum of 40. ???

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #10 on: February 15, 2023, 08:12:18 PM »
date?
only takes into consideration the last 2 weeks or so. --> That could explain the fluctuating number!

Good call. I've watched it for 3 days, and it appears to cut off topics older than 10 days. Every day, it ate one day worth of topics off the end.

Quote
introduced in a recent "Simple Machines" update and that new standard needs to be turned off now

At least the options page from opening post has no option for this. SMF support forums seem to have no topic about this for SMF 2.0.x. I'll keep looking.

namida, have we updated between 2.0.x recently?

-- Simon

Offline namida

  • Administrator
  • Posts: 12241
    • View Profile
    • NeoLemmix Website
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #11 on: February 17, 2023, 05:55:27 AM »
From what I recall, showing only updated topics (rather than all individual posts) was a modification in the first place. No idea why it's having issues, though - I'd have to look into it. It may just be that we never noticed the cutoff date before. If this is all it is, it's also probably not hard to do something about.

The last SMF version update was in June 2021 (which probably means I need to update it again, actually). There are more-recent changes than this in the repo, but they relate to implementing reCAPTCHA and the dark theme, not to version upgrades.
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline Silken Healer

  • Posts: 157
    • View Profile
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #12 on: February 17, 2023, 08:18:39 PM »
Maybe it has something to do with the date?

(We can argue if 40 is too much, we can find some other value that works for you. With 25 new topics, I see borderline over a week of history only, and I really have only ~20 different topics, not 25, in it because I see ~5 recycling posts in a separate line. But that's beside the point of the bug.)

In the same way we could argue if 40 is too much, we could also argue if it'd be better to have it as a all posts since [time] ago instead of last [amount] posts as the user wanting to see what's happening recently would probably want to see it that way. Maybe we could create a separate thread to discuss changing it?

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #13 on: February 21, 2023, 03:01:12 AM »
And now it shows entries back to 2023-02-06, which is a full 2 weeks back, more than 10 days. Sounds like it's not purely the time of last post. And it's too early for a year-2038 bug. :lix-unsure:

Exactly 24 topics for me, including the deleted posts that only global mods or admins see.

argue if it'd be better to have it as a all posts since [time] ago
user wanting to see what's happening recently
create a separate thread to discuss changing it?

Sure, make a separate thread. Ideally, I wouldn't it like to be 40 topics, either. I'd like it to be many many topics, from at least a month back. I treat subforums more like a way to tag Lemmings Forums topics and I get annoyed when I can't have a topic in two subforums.

-- Simon

Online Simon

  • Administrator
  • Posts: 3611
    • View Profile
    • Lix
Re: Main page shows 25 recent topics, ignores option saying 40
« Reply #14 on: February 22, 2023, 09:56:41 PM »
The wonderful source code on the LF server that (I assume) creates the list of recent topics.

namida, should I toy around with it? Do we have a dummy instance for me to test so that I won't break production?

Source of Subs-Recent.php (click to show/hide)

Still makes me wonder why it lowered from 40 to 25, but so slowly only, over time.

-- Simon
« Last Edit: February 22, 2023, 10:09:48 PM by Simon »