diff --git a/html/inc/forum_show.inc b/html/inc/forum_show.inc
index 95ccdca3ee..87073c970b 100644
--- a/html/inc/forum_show.inc
+++ b/html/inc/forum_show.inc
@@ -1,5 +1,4 @@
is_helpdesk) {
start_forum_table(array("Question", "Answers"));
} else {
- start_forum_table(array("Threads", "Posts", "Author", "Views", "Last post"));
+ start_forum_table(array("", "Threads", "Posts", "Author", "Views", "Last post"));
}
$threads = getThreads($forum->id, $start, $threads_per_page, $sort_style);
@@ -88,9 +87,23 @@ function show_forum($category, $forum, $start, $sort_style, $logged_in_user) {
while ($thread = mysql_fetch_object($threads)) {
$user = lookup_user_id($thread->owner);
+ $logged_in_user=getThreadLastVisited($logged_in_user,$thread);
+ $unread = ($thread->timestamp>$logged_in_user->thread_last_visited);
+
echo "
-
- id, "\">", strip_tags(stripslashes($thread->title)), "
+ |
";
+
+ //Show thread icons:
+ if (!$category->is_helpdesk){
+ if (!$user->disable_filtering){
+ $first_post = getFirstPost($thread->id);
+ if ($first_post->score*$first_post->votes>$logged_in_user->high_rating_threshold) echo " ";
+ if ($first_post->score*$first_post->votes<$logged_in_user->low_rating_threshold) echo " ";
+ }
+ if ($unread) echo " ";
+ }
+ echo " |
+ id, "\">", strip_tags(stripslashes($thread->title)), "
";
$n = ($n+1)%2;
@@ -106,12 +119,6 @@ function show_forum($category, $forum, $start, $sort_style, $logged_in_user) {
echo " | ";
$x = time_diff_str($thread->timestamp, time());
- $logged_in_user=getThreadLastVisited($logged_in_user,$thread);
- if ($thread->timestamp>$logged_in_user->thread_last_visited){
- $unread="Unread post(s): ";
- } else {
- $unread="";
- }
if ($category->is_helpdesk) {
if ($thread->replies == 0) $x = "---";
echo "
@@ -124,7 +131,7 @@ function show_forum($category, $forum, $start, $sort_style, $logged_in_user) {
| ", $thread->replies+1, " |
", user_links($user), " |
", $thread->views, " |
- ", $unread, " ", $x, " |
+ ", $x, " |
";
}