|
Joined: Feb 2002
Posts: 950
Hacker
|
Hacker
Joined: Feb 2002
Posts: 950 |
Anyone coded something to display unread messages (versis past X days)?
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
I don't think so but it would be a great modification.
Nikos
|
|
|
|
Joined: Apr 2001
Posts: 3,266
Member
|
Member
Joined: Apr 2001
Posts: 3,266 |
I went searching but see nothing like this Michael.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I know it hasn't been done. We had a similar discussion about it - but there are some issue with trying to do it I belive. Here is the related thread. I don't fully understand how the last post thing works. I know Rick has said that it's not really tracked on a per post basis. Thus it's actually the postlist.php page that marks the post read. That's why sometimes viewing the forum marks all the post in it read. He said it'd be too intense on large forums to track each post. Although sometimes this appears to behave like it's individually being tracked. So...... Often viewing a post from the "last post by" link does not mark it read - because you bypass the postlist page. So if you had a page to display all the unread posts.... reading them from there probably wouldn't mark them read, as you're skipping the forums postlist page. But it would be very cool if someone could make it work. I just don't think with the current architecture it would work correctly.
|
|
|
|
Joined: Aug 2002
Posts: 109
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 109 |
SO why not grab the date/time info in U_LastOn and then search for all posts AFTER that...of course it wouldn't be accurate up to the second as I don't think U_LastOn is updated every second...but it'de be pretty close!
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I think U_LastOn is updated with each page load as part of the send_header function. So if you visit the site - it should get updated. It won't necessarily be the last time you were there - I think it'd be closer to the current time. That other thread is all about "new since last visit" and how that's not really possible given how LastOn is handled. Plus, like I said - I don't think reading them from there would necessarily mark them as read - so then you'd go to the main index and they'd all still be marked as unread. It might be quirky if you are bypassign the mechnism to mark the posts read. Although it's not a perfect system now. I know that using the last post link often does not mark the post read. But if you are reading a post and click a link to a post in another forum.... often the whole forum will get marked as read. So if this were tracked on a per post basis - it woudl be doable. But I dont' think threads tracks it like that. It would be much too slow on large sites. I don't know how it could be done, but I think it would have to play off the w3t_Last table which I *think* typically keeps track of the last thread you've read in each forum and go from there. Maybe Rick can enlighten us with more details of how this post tracking works.... or if he can figure it out.... include it in 6.4. 
|
|
|
|
Joined: Aug 2002
Posts: 109
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 109 |
yeahhh 6.4 
|
|
|
|
Joined: Feb 2002
Posts: 950
Hacker
|
Hacker
Joined: Feb 2002
Posts: 950 |
[]I don't know how it could be done, but I think it would have to play off the w3t_Last table which I *think* typically keeps track of the last thread you've read in each forum and go from there. [/]
I guess I'd have to research that because it doesn't seem right. If I read a message and go back to the index, it does properly show that one message as having been read and the other unreads remain highlighted. It I recall, there is a TempRead variable which is being used, although I'm not sure how. So, there is some level of tracking going on at the message level, I'm just not sure how.
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Congrats, you'll dig into the most complex part of threads.  If I remember correctly the postings should be marked on a "per page" base in showflat.php. In showthreaded, only the actual posting is marked as read.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
My head always hurts when I look at the new post tracking part. 
|
|
|
|
Joined: Feb 2002
Posts: 950
Hacker
|
Hacker
Joined: Feb 2002
Posts: 950 |
I fear helping as I might end up in the Hero's list with my mug plastered on this site. :lol:
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
he he Yup - you do this one and we'll make you a graemlin. 
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
So does mine  That is definitely the most complex part of .threads. I hate adding any feature where I have to alter any portion of the post tracking!
UBB.threads Developer
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|