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 "\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 +?>