Advertisement:

Author Topic: Unread posts not always working  (Read 2122 times)

Offline nhart

  • Newbie
  • *
  • Posts: 3
Unread posts not always working
« on: June 05, 2012, 08:03:25 PM »
Hi, I'm running SMF 2.0.2 with no packages installed. Just the bare installation.

A number of my users are reporting the link "Show unread posts since last visit." sometimes returns no boards / posts even though there are new ones.

I rarely use this feature, but when I do, it works.

I see another user also posted the same issue under 1.x support http://www.simplemachines.org/community/index.php?topic=467806.msg3312135#msg3312135

Has anyone ran into this before with 2.x?

Cheers,
Nelson

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,388
    • StoryBB/StoryBB on GitHub
Re: Unread posts not always working
« Reply #1 on: June 05, 2012, 08:06:17 PM »
It's actually working as designed, though whether that's right is questionable.

It does say 'since last visit', which means that there can be new unread posts that won't be shown. Changing that behaviour is a lot of work, but the only option for SMF 2.x users at this point is to select the 'try all unread topics' link on that page.

It does have a certain amount of performance saving to do it that way, too.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline nhart

  • Newbie
  • *
  • Posts: 3
Re: Unread posts not always working
« Reply #2 on: June 05, 2012, 08:12:10 PM »
Are you  suggesting this?

If the user visited the site yesterday and there were unread posts, but they didn't read them all. When they came back today the would be no unread posts (if no new posts were added between yesterday's visit and today's visit)?


Also, if the user is switching browsers or computers (different ips) would that affect the unread posts?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,388
    • StoryBB/StoryBB on GitHub
Re: Unread posts not always working
« Reply #3 on: June 05, 2012, 08:19:40 PM »
Yes, that's exactly what I'm suggesting. Switching browsers and computers would possibly make a difference with how the session is generated (and it's based on session)

For my own setup I did actually drop the restriction, but my setup is on a server that can cope with the added server load attached to it. But it was two solid days of coding to make that work and I don't have it a convenient way to explain the changes.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline nhart

  • Newbie
  • *
  • Posts: 3
Re: Unread posts not always working
« Reply #4 on: June 05, 2012, 08:42:01 PM »
Thanks. I built a image gallery mod that catalogs any external image that was added to a post, I might take a stab at fixing the this.

Thanks for your time