HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Forum showing unread discussion when all discussions are read
-
Re: Forum showing unread discussion when all discussions are read
Not sure if this can easily be fixed, but let's see what we can do. In my test forum, I have an empty category and that shows as "Unread" although there are no discussions in there. Well, if you call it unread or read is equally true or wrong, but it contains no unread discussions, therefore I'd prefer if it wouldn't be… -
Forum showing unread discussion when all discussions are read
I have been having this issue since the day one when running 3.3 and now I am running 2021.012 and the issue is still persistent. Please note I am using the 'Unread Category Photo' plugin and the home page of my forum is set to Category view. Yesterday I marked the entire forum as read and as expected everything was marked… -
Re: Forum showing unread discussion when all discussions are read
@R_J I am looking at the post that the forum says was last posted to the Introductions category. It is a comment that I have read and can confirm that. If I go to that comment and stay on the page and keep refreshing my DateMarkedRead for the introduction category stays the same. This DateMarkedRead value seems like a… -
Re: Forum showing unread discussion when all discussions are read
Electric toothbrushes are a great invention. I had time to look at the code and I found the reason, but no solution. This should make the problem recreatable: User writes a comment in discussion A You do not read the discussion, but use "Mark Read" (which creates or updates a row in UserCategory) User writes a comment in… -
Re: Forum showing unread discussion when all discussions are read
By the way: there is some sort of caching implemented for the categories and I suspect that the LastDateInserted value in the php array in the debug output doesn't match the real database value. So theoretically you can already do the next step without waiting for my reply. I assume you are facing that issue and get the… -
Re: Forum showing unread discussion when all discussions are read
Okay so here is the data. The site thinks that the category "Introductions" has unread messages right now. If I do a decho as you suggest and look at the array for Introductions it looks like this [80] => Array ( [CategoryID] => 80 [ParentCategoryID] => -1 [TreeLeft] => 4 [TreeRight] => 5 [Depth] => 1 [CountCategories] =>… -
Re: Forum showing unread discussion when all discussions are read
I guess it would be very database intensive to go to every single discussion in a category and iterate over it to see if any of those discussions are read for this user. Not to mention if you load the home page you would have to iterate over every single discussion every single page load just to find out if read or not
8 results