id, "\">", $title, " ";
$n = ($n+1)%2;
diff --git a/html/inc/util.inc b/html/inc/util.inc
index b8b72f090b..b16441150d 100644
--- a/html/inc/util.inc
+++ b/html/inc/util.inc
@@ -555,10 +555,11 @@ function sched_stopped() {
function user_links($user) {
$x = "id."\">".$user->name."";
if ($user->has_profile) {
- $x .= ' ';
+ $x .= ' ';
}
- # Does this project accept donations?
- # If so, do you want to have a link next to user name as it appears on the web site?
+ // Does this project accept donations?
+ // If so, do you want to have a link next to user name as it appears on the web site?
+ //
if ($user->donated == 1) {
require_once("../project/donations.inc");
$x .= DONATION_LINK;
@@ -767,7 +768,15 @@ function current_url() {
}
function show_button($url, $text, $desc) {
- echo "\n";
+ echo "\n";
+}
+
+function show_image($src, $title, $height=null) {
+ $h = "";
+ if ($height) {
+ $h = "height=\"$height\"";
+ }
+ echo "";
}
?>
diff --git a/html/user/forum_forum.php b/html/user/forum_forum.php
index 183b1c65ad..6a14ede8c8 100644
--- a/html/user/forum_forum.php
+++ b/html/user/forum_forum.php
@@ -102,46 +102,46 @@ function show_forum($forum, $start, $sort_style, $user) {
echo '
';
} else {
// Just a standard thread.
- echo '
';
+ echo '
';
}
echo "
";
if ($user && ($thread->getRating()>$user->getHighRatingThreshold())) {
- echo "";
+ show_image(EMPHASIZE_IMAGE, "This message has a high average rating");
}
if ($user && ($thread->getRating()<$user->getLowRatingThreshold())) {
- echo "";
+ show_image(FILTER_IMAGE, "This message has a low average rating");
}
if ($thread->isHidden()) {
echo "X";
}
- if ($unread) {
- if ($thread->isSticky()) {
- if ($thread->isLocked()) {
- echo "";
- } else {
- echo "";
- }
- } else {
- if ($thread->isLocked()) {
- echo "";
- } else {
- echo "";
- }
- }
- } else {
- if ($thread->isSticky()) {
- if ($thread->isLocked()) {
- echo "";
- } else {
- echo "";
- }
- } else {
- if ($thread->isLocked()) {
- echo "";
- }
- }
- }
+ if ($unread) {
+ if ($thread->isSticky()) {
+ if ($thread->isLocked()) {
+ show_image(NEW_IMAGE_STICKY_LOCKED, "This thread is sticky and locked, and you haven't read it yet");
+ } else {
+ show_image(NEW_IMAGE_STICKY, "This thread is sticky and you haven't read it yet");
+ }
+ } else {
+ if ($thread->isLocked()) {
+ show_image(NEW_IMAGE_LOCKED, "You haven't read this thread yet, and it's locked");
+ } else {
+ show_image(NEW_IMAGE, "You haven't read this thread yet");
+ }
+ }
+ } else {
+ if ($thread->isSticky()) {
+ if ($thread->isLocked()) {
+ show_image(IMAGE_STICKY_LOCKED, "This thread is sticky and locked");
+ } else {
+ show_image(IMAGE_STICKY, "This thread is sticky");
+ }
+ } else {
+ if ($thread->isLocked()) {
+ show_image(IMAGE_LOCKED, "This thread is locked");
+ }
+ }
+ }
echo "