summaryrefslogtreecommitdiff
path: root/forum/utils/threads.php
diff options
context:
space:
mode:
authordeva <deva>2010-05-21 12:38:09 +0000
committerdeva <deva>2010-05-21 12:38:09 +0000
commita7b6200402e341e97472ec401eabe4cf49f1161c (patch)
tree8a519821ab488d3f66488bd26565e2e95e4c0a40 /forum/utils/threads.php
parent78e8418d39975e22043b3ffe1df04a439c9ee25c (diff)
More info in views.
Diffstat (limited to 'forum/utils/threads.php')
-rw-r--r--forum/utils/threads.php11
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 . "&amp;tid=" . $this->tid . $jumptonew."\">" . $this->name . "</a>\n";
+ echo " <span class=\"thread_icon".$newcls."\">&nbsp;</span>\n";
+ echo " <a class=\"thread_title\" href=\"?fid=" . $fid .
+ "&amp;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);
}
}