From d163efa5921431c8c9ebcf312052e549c18c9e12 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 6 Jul 2010 13:22:50 +0000 Subject: More informative navigation system. --- forum/utils/posts.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/forum/utils/posts.php b/forum/utils/posts.php index 59678de..f29354e 100644 --- a/forum/utils/posts.php +++ b/forum/utils/posts.php @@ -184,7 +184,16 @@ class Posts { public function show() { global $current_user; - echo "

" . $this->thread->name . "

\n"; + + echo "

Down to the bottom"; + foreach($this->posts_linear as $post) { + if($post->date > $this->thread->lastseen[$current_user->uid]) { + echo " Down to first unread\n"; + break; + } + } + echo "

\n"; + echo "

" . $this->thread->name . "

\n"; /* // Recursive foreach($this->posts as $post) { @@ -211,7 +220,7 @@ class Posts { $this->write(); - echo "

Back to the top

\n"; + echo "

Up to the top

\n"; } private function recurser($parentpost, $element) -- cgit v1.2.3