From 7bce9014aaa42aa6ffad18141121033a0d9f800b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 26 Jul 2003 00:19:21 +0000 Subject: [PATCH] Changed to non-hierarchical posting, added message links. svn path=/trunk/boinc/; revision=1824 --- html/forum/reply.php | 75 +++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 43 deletions(-) diff --git a/html/forum/reply.php b/html/forum/reply.php index 9ba73509c5..0f1e61c08b 100644 --- a/html/forum/reply.php +++ b/html/forum/reply.php @@ -1,6 +1,7 @@ reply($user->id, $_POST['content'], $parent_post); @@ -31,10 +31,8 @@ if (empty($_SESSION['authenticator'])) doHeader('Forum'); if (!empty($_GET['post'])) { - $postId = $_GET['post']; -} else { - $postId = -1; -} + $post = getPost($_GET['post']); +} $thread = getThread($_GET['thread']); $forum = getForum($thread->forum); @@ -53,41 +51,14 @@ $logged_in_user = get_logged_in_user(true); Author Message - getPosts(); - while ($post = getNextPost($posts)): - $user = getUser($post->user); - ?> - - -

- has_profile) { ?> - name ?> - name; } ?> -

-

- Joined: create_time) ?> -
Posts: posts ?> -

- - -

Posted: timestamp) ?>

-

content)) ?>

- - id == $postId) { - show_message_row($thread, $post); - } ?> - - - -

+ + + +

create_time), "

-

Your Message

+

Your Message"; + if ($post) echo " in response to id>Message ID $post->id"; + echo "

-

+

"; @@ -134,4 +111,16 @@ Joined: ", date('M j, Y', $logged_in_user->create_time), " echo ""; } +// TODO: Finish this. + +function quote_text($text, $cols) { + $quoteChar = "> "; + $width = $cols - strlen($quoteChar); + $wrapped = wordwrap($text, $width); + + for ($i = 0; $i < strlen($wrapped); $i++) { + } + + return $wrapped; +} ?> \ No newline at end of file