diff options
author | deva <deva> | 2010-05-21 12:38:09 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-21 12:38:09 +0000 |
commit | a7b6200402e341e97472ec401eabe4cf49f1161c (patch) | |
tree | 8a519821ab488d3f66488bd26565e2e95e4c0a40 /forum/utils/threads.php | |
parent | 78e8418d39975e22043b3ffe1df04a439c9ee25c (diff) |
More info in views.
Diffstat (limited to 'forum/utils/threads.php')
-rw-r--r-- | forum/utils/threads.php | 11 |
1 files changed, 8 insertions, 3 deletions
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 " <div class=\"thread\">\n"; - echo " <span class=\"thread_icon".$newcls."\"></span>"; - echo " <a href=\"?fid=" . $fid . "&tid=" . $this->tid . $jumptonew."\">" . $this->name . "</a>\n"; + echo " <span class=\"thread_icon".$newcls."\"> </span>\n"; + echo " <a class=\"thread_title\" href=\"?fid=" . $fid . + "&tid=" . $this->tid . $jumptonew."\">" . $this->name . "</a>\n"; + echo " <span class=\"thread_lastpost\">Last post: ". + date("j. M Y - G:i", $this->lastpost)."</span>\n"; + // echo " <span class=\"thread_numposts\">".$this->numposts." posts</span>\n"; echo " </div>\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); } } |