wood burning stoves 2.0*
The moose likes JForum and the fly likes Most Recent Unread Post Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Most Recent Unread Post" Watch "Most Recent Unread Post" New topic
Author

Most Recent Unread Post

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I searched around and didn't see this, but I'm sure it's been discussed at some point so I apologize if this is a duplicate.

In each forum on the topic there is a link to the most recent post in the thread.

Is there anyway, or a plan, to create a link that would, rather than going to the last post in the thread, go to the most recent unread post in a thread?

Just to be clear that I am making sense:
1) Thread created, 4 replies are made.
2) User views and reads all 5 posts.
3) 5 more replies are added.

The link that I want is a link that would take the user to reply #6, rather than reply #10.

Thanks for any help / information!
[originally posted on jforum.net by Tarpan]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The real problem in doing that is performance. jForum uses the last user access date with a variety of other table items (like forum's and topics tracking the last post). Most of this is actually cached in memory to limit the DB access.

To create a link to a user specific post from the index pages would require a lot of additional queries that would slow down the display of the main index pages.

That said, it might be possible to look at doing this in the actual topic listing pages. Probably by just doing some template modifications.

Contributions welcome.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, I started typing a possible approach to this request, but there are a large number of factors to consider. I guess phpbb has this feature, but I am almost sure they do a lot of sql querying to such, and I personally don't like their approach.

I have considered this feature in the past, but back then I concluded that the effort wasn't worth paying for.

Anyway, if you have suggestions, feel free to do so. Maybe we can find a good solution.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This is a regular occuring request for me at the moment.

I haven't begun to look indepth into this to see how realistic it is for me to do the work (I'm a fake programmer) yet, but wanted to check in again here and just see if anyone else has looked into this at all before I start seriously investigating if it's worth the effort.
[originally posted on jforum.net by Tarpan]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Will see what I can come up with. I'm a QA guy by trade so my dev solutions tend to be hack-jobs rather than effectivly built solutions ;)

I agree that there is a lot to this one and that it won't be easy, but it is a really awesome feature for active forums that are conversation driven rather than information driven.
[originally posted on jforum.net by Tarpan]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Most Recent Unread Post