Show a link to a specific post in user post listings (requested by John McLeod VII).

svn path=/trunk/boinc/; revision=13072
This commit is contained in:
Rytis Slatkevičius 2007-07-02 14:15:28 +00:00
parent 099db90101
commit 3259b704a2
1 changed files with 3 additions and 6 deletions

View File

@ -1,4 +1,5 @@
<?php <?php
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit $cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
require_once('../inc/db.inc'); require_once('../inc/db.inc');
@ -506,12 +507,7 @@ function show_post2($post, $n) {
$title = cleanup_title($thread->title); $title = cleanup_title($thread->title);
$m = $n%2; $m = $n%2;
if($post->hidden) { if($post->hidden) {
//Todo: factor this array out, it is also used elsewhere $deleted = "<br><font color=red>[Deleted by a moderator]</font>";
$deleted_text = array( "Obscene", "Flame/Hate", "Commercial Spam", "Flamebait", "Doublepost", "User Request", "Other");
$deleted = "<br><font color=red>[Deleted " .
"by a moderator " .
//as " . $deleted_text[$post->hidden-1] .
"] </font>";
} else { } else {
$deleted = ""; $deleted = "";
} }
@ -521,6 +517,7 @@ function show_post2($post, $n) {
$n) <a href=\"$top_url\">$where</a> : $category->name : $n) <a href=\"$top_url\">$where</a> : $category->name :
<a href=\"forum_forum.php?id=$forum->id\">$forum->title</a> : <a href=\"forum_forum.php?id=$forum->id\">$forum->title</a> :
<a href=\"forum_thread.php?id=$thread->id\">$title</a> <a href=\"forum_thread.php?id=$thread->id\">$title</a>
(<a href=\"forum_thread.php?id=".$thread->id."&amp;nowrap=true#".$post->id."\">Message ".$post->id."</a>)
<br> <br>
Posted $when by $user->name $deleted Posted $when by $user->name $deleted
<hr> <hr>