Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

First unread post in thread

Quote Reply
First unread post in thread
Hi

How do I determine the first unread post in each thread for each user? I had a look at the PostNew table and UserNew table but I have no idea how does GForum determine whether a posting is unread or not. Anyone care to explain the logic?

Thanks.

Regards.
Quote Reply
Re: [dauhee] First unread post in thread In reply to
Is this to make it so you jump to the first unread post? If so, all you do is add:

<a href="...#unread">

to the link. Then in displaying the list of posts:

<%if post_new%>
<%unless first_new_post%>
<a name="unread">&nbsp;</a>
<%set first_new_post = 1%>
<%endif%>
<%endif%>

Hope that helps,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] First unread post in thread In reply to
Yup I want to jump to the first unread post, but your method will jump to the first unread post on the page, not the first unread post on a thread. I also need to figure out which page to jump to. Is there a way to do that?

Thanks.
Quote Reply
Re: [dauhee] First unread post in thread In reply to
Hi,

Good point. Hmm, I don't see an easy way of the top of my head. We'll look into how best to implement this.

Cheers,

Alex
--
Gossamer Threads Inc.