summaryrefslogtreecommitdiff
path: root/forum/utils/threads.php
diff options
context:
space:
mode:
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);
}
}