From e381a62c69b4044acad2560c8d90bc7ed3b89de9 Mon Sep 17 00:00:00 2001
From: David Anderson
Date: Thu, 24 Jul 2003 22:57:00 +0000
Subject: [PATCH] Fixed reply scrolling- now centers on the input box.
svn path=/trunk/boinc/; revision=1792
---
html/forum/thread.php | 85 ++++++++++++++++++++++++++++---------------
1 file changed, 56 insertions(+), 29 deletions(-)
diff --git a/html/forum/thread.php b/html/forum/thread.php
index 61c790b765..6c48cb2dee 100644
--- a/html/forum/thread.php
+++ b/html/forum/thread.php
@@ -21,7 +21,7 @@ $logged_in_user = get_logged_in_user(false);
Forum -> title ?>
@@ -29,38 +29,14 @@ $logged_in_user = get_logged_in_user(false);
Author |
Message |
+
getPosts();
- while ($post = getNextPost($posts)):
- $user = getUser($post->user);
- $can_edit = $logged_in_user && $user->id == $logged_in_user->id;
- ?>
-
-
-
- has_profile) { ?>
- name ?>
- name; } ?>
-
-
- Joined: create_time) ?>
- Posts: posts ?>
-
- |
-
-
- Posted: timestamp) ?>id\">[Edit this post]" ?>
- modified) echo " Last Modified: ", date('D M j, Y g:i a', $post->modified) ?>
-
-
- content)) ?>
- |
-
-
@@ -68,3 +44,54 @@ $logged_in_user = get_logged_in_user(false);
+
+getImmediateChildren();
+
+ show_post($post, $thread, $indent);
+
+ //while ($childPost = getNextPost($children)) {
+ // show_post_hierarchy($childPost, $thread, $indent+1);
+ //}
+}
+
+function show_post($post, $thread, $indent) {
+ global $n;
+ $user = getUser($post->user);
+ $can_edit = $logged_in_user && $user->id == $logged_in_user->id;
+
+ ?>
+
+
+ ";
+ //}
+ ?>
+
+
+ has_profile) { ?>
+ name ?>
+ name; } ?>
+
+
+ Joined: create_time) ?>
+ Posts: posts ?>
+
+ |
+
+
+ Posted: timestamp) ?>id\">[Edit this post]" ?>
+ modified) echo " Last Modified: ", date('D M j, Y g:i a', $post->modified) ?>
+
+
+ content)) ?>
+ [Reply to this post]
+ |
+
+
+