Thread Starter
TE5LA
(@te5la)
I did more testing and oddly, now the icons do not clear at all. I made test posts by both my admin and test accounts, logged out and back in, read the posts by the other user, went back to top of forum and they still showed as unread.
I also forced a browser cache reload after viewing and the posts remain as unread.
Did you test both in the same browser or in different (or at least privacy mode)? I think this could be something which is caused by the cookie so maybe it uses the same unread-check-cookie in your browser for all users.
I have to check this.
Thread Starter
TE5LA
(@te5la)
I tried in:
Firefox Nightly
Internet Explorer 11
Avast SafeZone
Chrome Version 50.0.2661.94 m
None of them cleared the icons, even if I forced the cache reload (shift+reload). Chrome had never been to the website, in fact, I installed it just to test this. I then deleted everything from the beginning of time in the settings and icons all showed “read” status, even before I read them.
I tried in Firefox Nightly’s Private Browsing mode and they were still not cleared.
All I can say for now is, that the read/unread-function is not perfect now. It makes usage of some cookie- and user-meta-data. To understand it, here are some examples:
When User is logged in and no wpafcookie-cookie is set:
- read asgarosforum_lastvisit-value from database
- save this value in the wpafcookie-cookie
- set new asgarosforum_lastvisit-value = NOW in database
If the cookie is already set:
Unread-marking:
- look if the lastpost-date in a forum/thread is > than the date in the wpafcookie-cookie
- if yes: mark forum/thread as unread
The expire-value of the cookie is set to 0:
If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).
The markallread-function is working like this:
- get current time
- save current time in wpafcookie-cookie
- set asgarosforum_lastvisit-value to current time
If you change the user in the same browser, it still uses the same wpafcookie-cookie. This can cause some wrong marking. Also there is no “mark as read”-logic yet, when you visit an unread topic. It only shows you the topics with new posts in it since your last visit. When you have read them all, you have to mark them as “all read” via the link at the overview.
Maybe the problem is in the logic. I am not sure yet on how to improve this. To be honest, I dont like this feature at all. I would be more happy if I could remove this feature some day, but I dont know of there is something similar which can replace this feature.
Thread Starter
TE5LA
(@te5la)
Hmm, I posted from one account and checked on another with a different browser.
I still try to reproduce this error. Is it possible that you can give me some step-by-step instructions so I can reproduce this more easily?