- ";
+ ]);
}
function is_banished($user) {
@@ -858,9 +860,7 @@ function post_rules() {
}
function post_warning($forum=null) {
- $x = "
-
- ";
+ $x = '
';
// let projects add extra instructions in specific forums,
// e.g. Questions and Problems
@@ -873,7 +873,7 @@ function post_warning($forum=null) {
".post_rules()."
-
\n";
end_table();
page_tail();
diff --git a/html/inc/text_transform.inc b/html/inc/text_transform.inc
index 99e3d9e75f9..b208782064f 100644
--- a/html/inc/text_transform.inc
+++ b/html/inc/text_transform.inc
@@ -296,12 +296,12 @@ function externalize_links($text) {
$linkpos=true;
$out = "";
while (true){
- //Find a link
+ // Find a link
//
$linkpos=strpos($text, "]+?)>@si';
- $replacement = '[Image link]'; // Turns that URL into a hyperlink
- $text = preg_replace($pattern, $replacement, $text);
- return $text;
+ $replacement = '[Image link]';
+ return preg_replace($pattern, $replacement, $text);
}
-// Highlight terms in text (most likely used with searches)
-
+// Highlight terms in text (used in search results)
+//
function highlight_terms($text, $terms) {
$search = $terms;
$replace = array();
diff --git a/html/user/forum_edit.php b/html/user/forum_edit.php
index 1a33d2f27a1..8ec64aec689 100644
--- a/html/user/forum_edit.php
+++ b/html/user/forum_edit.php
@@ -16,10 +16,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see .
-// Using this page you can edit a post.
-// First it displays a box to edit in, and when you submit the changes
-// it will call the methods on the post to make the changes.
-//
+// Edit a post.
+// The creator of the post can do this up to MAXIMUM_EDIT_TIME
require_once('../inc/forum.inc');
require_once('../inc/bbcode_html.inc');
@@ -91,7 +89,6 @@
page_head(tra("Edit post"),'','','', $bbcode_js);
-show_forum_header($logged_in_user);
switch ($forum->parent_type) {
case 0:
$category = BoincCategory::lookup_id($forum->category);
@@ -112,45 +109,59 @@ function() use($content) {
);
}
-echo "',
button_style('blue'),
tra("Preview"),
button_style(),
- tra("Post reply"),
+ tra("Post"),
$enable_signature,
- tra("Add my signature to this reply")
+ tra("Add my signature to this post"),
+ tra("Subscribe to this thread")
);
- row2($x1, $x2, false, "20%");
+ row2($x1, $x2, false, FORUM_LH_PCT);
}
function quote_text($post) {
diff --git a/html/user/forum_search_action.php b/html/user/forum_search_action.php
index 191e14fa75a..08e4f8769bf 100644
--- a/html/user/forum_search_action.php
+++ b/html/user/forum_search_action.php
@@ -195,7 +195,8 @@ function search_post_content(
if (count($posts)){
echo "