From 0f5cf132c923d296405018d0ca063bb59bc2887b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 28 Nov 2003 22:35:01 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2706 --- html/forum/post.php | 54 +++++++++++++++++++++++++++++++------------- html/forum/reply.php | 10 ++++++-- 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/html/forum/post.php b/html/forum/post.php index c6e5698ddd..be5c4db1e1 100644 --- a/html/forum/post.php +++ b/html/forum/post.php @@ -10,7 +10,10 @@ if (!empty($_GET['id']) && !empty($_POST['title']) && !empty($_POST['content'])) $user = get_logged_in_user(true, '../'); - $threadID = createThread($_GET['id'], $user->id, $_POST['title'], $_POST['content']); + if ($_POST['add_signature']=="add_it"){ + $forum_signature = "\n".$user->signature; + } + $threadID = createThread($_GET['id'], $user->id, $_POST['title'], $_POST['content'].$forum_signature); header('Location: thread.php?id=' . $threadID); } @@ -37,7 +40,17 @@ if ($category->is_helpdesk) { show_forum_title($forum, NULL, $category->is_helpdesk); if ($category->is_helpdesk) { - echo "

The ", PROJECT, " Help Desk is designed to help users find answers to questions they might have about our project, software, science, etc.

To ensure that this is effectively achieved, please make sure to skim the questions that have already been posted before posting your own. If your question has already been asked by another user, clicking on the \"I also have this problem\" button in their post will be more effective than re-posting the question.

If you've been unable to find your question already posted, please fill in the fields below to add it to the Help Desk.

"; + echo "

The ", PROJECT, " Help Desk is designed to help users + find answers to questions they might have about our project, + software, science, etc.

To ensure that this is effectively + achieved, please make sure to skim the questions that + have already been posted before posting your own. + If your question has already been asked by another user, + clicking on the \"I also have this problem\" button + in their post will be more effective than re-posting the question. +

If you've been unable to find your question already posted, + please fill in the fields below to add it to the Help Desk.

+ "; } echo "
"; @@ -56,25 +69,34 @@ if ($category->is_helpdesk) { } echo " - - - - - Message content + + + + + Message content "; if ($category->is_helpdesk) { - echo "

Please be as specific as possible: if you are having software problems for example, be sure to mention the version of the software you are running, your computer type, operating system, etc.

The more detailed your description, the more likely someone will be able to post an answer that solves your problem.

"; + echo "

Please be as specific as possible: + if you are having software problems for example, + be sure to mention the version of the software you are running, + your computer type, operating system, etc. +

The more detailed your description, + the more likely someone will be able to post an answer + that solves your problem. + "; } echo " - - - - - - - + + + + + Add my signature to this post +     + + + "; end_forum_table(); @@ -82,4 +104,4 @@ end_forum_table(); echo "

\n"; page_tail(); -?> \ No newline at end of file +?> diff --git a/html/forum/reply.php b/html/forum/reply.php index ffd786c4cf..b835ec5709 100644 --- a/html/forum/reply.php +++ b/html/forum/reply.php @@ -16,7 +16,10 @@ if (!empty($_GET['thread']) && !empty($_POST['content'])) { $user = get_logged_in_user(true, '../'); - replyToThread($_GET['thread'], $user->id, $_POST['content'], $parent_post); + if ($_POST['add_signature']=="add_it"){ + $forum_signature = "\n".$user->signature; + } + replyToThread($_GET['thread'], $user->id, $_POST['content'].$forum_signature, $parent_post); notify_subscribers($_GET['thread']); header('Location: thread.php?id='.$_GET['thread']); @@ -102,6 +105,9 @@ Joined: ", date('M j, Y', $logged_in_user->create_time), " if ($post) echo quote_text(stripslashes($post->content), 80); echo "

+     + Add my signature to this reply + "; @@ -136,4 +142,4 @@ function quote_text($text, $cols) { return $final; } -?> \ No newline at end of file +?>