From a7b6200402e341e97472ec401eabe4cf49f1161c Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 21 May 2010 12:38:09 +0000 Subject: More info in views. --- forum/utils/threads.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'forum/utils/threads.php') diff --git a/forum/utils/threads.php b/forum/utils/threads.php index 11c54ee..258f97c 100644 --- a/forum/utils/threads.php +++ b/forum/utils/threads.php @@ -22,15 +22,19 @@ class Thread { global $fid, $current_user; $jumptonew = ""; - $newcls = ""; + $newcls = " thread_nonew"; if($this->lastseen[$current_user->uid] < $this->lastpost) { $newcls = " thread_new"; $jumptonew = "#firstunread"; } echo "
\n"; - echo " "; - echo " " . $this->name . "\n"; + echo "  \n"; + echo " " . $this->name . "\n"; + echo " Last post: ". + date("j. M Y - G:i", $this->lastpost)."\n"; + // echo " ".$this->numposts." posts\n"; echo "
\n"; } @@ -51,6 +55,7 @@ class Thread { $this->tid = $tid; $this->name = $name; $this->lastpost = $lastpost; + if($this->lastpost == "") $this->lastpost = 0; $this->loadLastSeen($lastseen); } } -- cgit v1.2.3