diff --git a/phpBB/language/lang_english.php b/phpBB/language/lang_english.php
index 6e99840a74..8ce39b8fbc 100755
--- a/phpBB/language/lang_english.php
+++ b/phpBB/language/lang_english.php
@@ -149,7 +149,7 @@ $lang['Post_new_in'] = "Post New Topic in:"; // Followed by forum name
$lang['Post_Annoucement'] = "Post as an annoucement";
$lang['Post_Sticky'] = "Stick this topic";
$lang['Annouce_and_sticky'] = "You cannot post a topic that is both an annoucement and a sticky topic";
-
+$lang['Preview'] = "Preview";
//
// Private Messaging
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 71ab1992b2..9fb33b73cc 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -861,9 +861,9 @@ if($error)
// End: error handling
//
-if(!isset($username))
+if(empty($username))
{
- $username = $userdata["username"];
+ $username = $userdata['username'];
}
//
@@ -879,12 +879,16 @@ if($preview)
$template->set_filenames(array("preview" => "posting_preview.tpl"));
$template->assign_vars(array(
- "TOPIC_TITLE" => $subject,
- "ROW_COLOR" => $theme['td_color1'],
+ "TOPIC_TITLE" => $subject,
+ "POST_SUBJECT" => $subject,
+ "ROW_COLOR" => "#" . $theme['td_color1'],
"POSTER_NAME" => $username,
- "L_POSTED" => $lang['Posted'],
"POST_DATE" => create_date($board_config['default_dateformat'], time(), $board_config['default_timezone']),
- "MESSAGE" => stripslashes(nl2br($preview_message))));
+ "MESSAGE" => stripslashes(nl2br($preview_message)),
+
+ "L_PREVIEW" => $lang['Preview'],
+ "L_POSTED" => $lang['Posted'])
+ );
$template->pparse("preview");
}
//
@@ -921,10 +925,11 @@ if($preview)
$template->assign_var_from_handle("JUMPBOX", "jumpbox");
$template->assign_vars(array(
- "L_POSTNEWIN" => $section_title,
"FORUM_ID" => $forum_id,
"FORUM_NAME" => $forum_name,
+ "L_POSTNEWIN" => $section_title,
+
"U_VIEW_FORUM" => append_sid("viewforum.$phpEx?".POST_FORUM_URL."=$forum_id"))
);
@@ -935,11 +940,11 @@ if($preview)
}
else
{
- $username_input = '';
+ $username_input = '';
$password_input = '';
}
- $subject_input = '';
- $message_input = '';
+ $subject_input = '';
+ $message_input = '';
if($board_config['allow_html'])
{
@@ -1034,7 +1039,7 @@ if($preview)
"L_SUBJECT" => $l_subject,
"L_MESSAGE_BODY" => $l_body,
"L_OPTIONS" => $l_options,
- "L_PREVIEW" => $l_preview,
+ "L_PREVIEW" => $lang['Preview'],
"L_SUBMIT" => $l_submit,
"L_CANCEL" => $l_cancelpost,
diff --git a/phpBB/templates/PSO/posting_preview.tpl b/phpBB/templates/PSO/posting_preview.tpl
new file mode 100644
index 0000000000..9abe6a37e6
--- /dev/null
+++ b/phpBB/templates/PSO/posting_preview.tpl
@@ -0,0 +1,37 @@
+
+
+
+
+ |
+
+
+ {L_AUTHOR} |
+ {L_MESSAGE} |
+
+
+ |
+
+
+ {L_POSTED}: {POST_DATE} Post Subject: {POST_SUBJECT}
|
+
+
+ {MESSAGE} |
+
+
+
|
+
+ |
+
+ |
+
+
+
+