Previous Thread
Next Thread
Print Thread
Rate Thread
#253487 07/11/2003 6:34 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Anyone coded something to display unread messages (versis past X days)?

Sponsored Links
gailg #253488 07/12/2003 5:16 AM
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
Hal_dup2 #253489 07/12/2003 6:38 AM
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I went searching but see nothing like this Michael.

gailg #253490 07/13/2003 6:14 PM
Joined: Aug 2002
Posts: 109
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 109
I was *JUST* about to ask for this...
How do you add a link where it searches and grabs all unread/new posts...then displays them by date...would be extreemly useful!
[]https://www.ubbdev.com/threads/php/uploads/panels/9999-2174.png[/]

#253491 07/13/2003 6:35 PM
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.

Sponsored Links
Daine #253492 07/13/2003 8:57 PM
Joined: Aug 2002
Posts: 109
Journeyman
Journeyman
Offline
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!

#253493 07/13/2003 11:21 PM
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.

Daine #253494 07/14/2003 4:17 AM
Joined: Aug 2002
Posts: 109
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 109
yeahhh 6.4

#253495 07/14/2003 8:15 AM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
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.

gailg #253496 07/14/2003 8:19 AM
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
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.

Sponsored Links
-Fusion- #253497 07/14/2003 10:47 AM
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.

Daine #253498 07/14/2003 1:25 PM
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
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:

gailg #253499 07/14/2003 1:47 PM
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.

Daine #253500 07/14/2003 4:20 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
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

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)