Shoutbox

"Unread" forum - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: "Unread" forum (/showthread.php?tid=46789)

"Unread" forum by Mike on 06-24-2005 at 09:05 PM

Ok, this is bugging me alot...

When I have read all the unread threads on a forum and I go back to the main page where all the forums are listed, the forum that I was reading the threads has the unread icon.

I can only make it go away if I go to the forum and click "Mark this forum as read" or from the main page click "Mark all forums as read".

Would it be possible so when are no unread threads on a forum, the icon for the forum would be the forum-read one?


RE: "Unread" forum by WDZ on 06-25-2005 at 04:03 AM

quote:
Originally posted by Mike
Would it be possible so when are no unread threads on a forum ...
It would take quite a bit of new code, an additional query, and some lost speed to check all the threads in a forum, but it probably wouldn't be too hard to just check the first page.

For example, if you viewed forumdisplay.php?fid=x&page=1 and there were no "unread" icons on that page, then that forum would automatically be marked as read, the same as if you clicked the "mark forum as read" link.

Sound good? :p
RE: "Unread" forum by Mike on 06-25-2005 at 06:11 AM

quote:
Originally posted by WDZ
Sound good? :P

Yep, that would work I think :)


RE: "Unread" forum by WDZ on 06-26-2005 at 05:04 AM

testing testing 1234

Edit: Seems to work...


RE: "Unread" forum by Mike on 06-26-2005 at 06:41 AM

quote:
Originally posted by WDZ
Edit: Seems to work...
Doesnt work for me... :-/

Maybe, its because, Im using the Shady theme?

Edit: I switched to the default theme, and it still doesnt work... :-/

Edit again: Now that I went to the forum index, the forum is marked as read... :-/

Edit again...: I think I found the problem.
The problem is that if you check a post from the forum index by going to the last reply and then going to the forum index again, the forum will still be marked as unread.
You have to go and "see" the forum and then go to the forum index... :dodgy:
RE: "Unread" forum by WDZ on 06-26-2005 at 07:26 AM

quote:
Originally posted by Mike
You have to go and "see" the forum and then go to the forum index...
Yeah, I know. That's how I said it would work. :p
RE: "Unread" forum by Mike on 06-26-2005 at 07:44 AM

quote:
Originally posted by WDZ
quote:
Originally posted by Mike
You have to go and "see" the forum and then go to the forum index...
Yeah, I know. That's how I said it would work. :p
Darn, I missed the part:
quote:
Originally posted by WDZ

For example, if you viewed forumdisplay.php?fid=x&page=1 and there were no "unread" icons on that page, then that forum would automatically be marked as read, the same as if you clicked the "mark forum as read" link.



Anyway, thanks for making it :)