From f8deb525437dc0995e8b0b7c693ff9bbc3bbc48c Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 3 Nov 2009 10:43:35 +0000 Subject: Marking of new posts. Jump-to mark of first unread. --- forum/utils/posts.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'forum/utils/posts.php') diff --git a/forum/utils/posts.php b/forum/utils/posts.php index 3b0e73b..59678de 100644 --- a/forum/utils/posts.php +++ b/forum/utils/posts.php @@ -193,9 +193,19 @@ class Posts { */ // Linear + $firstunread = false; foreach($this->posts_linear as $post) { + if($post->date > $this->thread->lastseen[$current_user->uid] && $firstunread == false) { + $firstunread = true; + echo "
\n"; + echo "
\n"; + } $post->show(" ", false); } + + if($firstunread == true) { + echo "
\n"; + } $this->thread->lastseen[$current_user->uid] = time(); -- cgit v1.2.3