diff --git a/phpBB/posting.php b/phpBB/posting.php index 5f7060abb5..29832ee665 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -63,7 +63,9 @@ else $pagetype = "newtopic"; $page_title = " $l_postnew"; - $sql = "SELECT forum_name, forum_access FROM ".FORUMS_TABLE." WHERE forum_id = '$forum_id'"; + $sql = "SELECT forum_name, forum_access + FROM ".FORUMS_TABLE." + WHERE forum_id = '$forum_id'"; if(!$result = $db->sql_query($sql)) { error_die(SQL_QUERY, "Could not obtain forum/forum access information.", __LINE__, __FILE__); @@ -152,27 +154,33 @@ else } $notify_toggle .= "> $l_notify"; + $hidden_form_fields = ""; - $template->assign_vars(array("L_ABOUTPOST" => $l_aboutpost, - "L_SUBJECT" => $l_subject, - "L_MESSAGEBODY" => $l_body, - "L_OPTIONS" => $l_options, - "L_PREVIEW" => $l_preview, - "L_SUBMIT" => $l_submit, - "L_CANCEL" => $l_cancelpost, - "MODE" => $mode, - "ABOUT_POSTING" => $about_posting, - "USERNAME_INPUT" => $username_input, - "PASSWORD_INPUT" => $password_input, - "SUBJECT_INPUT" => $subject_input, - "MESSAGE_INPUT" => $message_input, - "HTML_STATUS" => $html_status, - "HTML_TOGGLE" => $html_toggle, - "SMILE_TOGGLE" => $smile_toggle, - "SIG_TOGGLE" => $sig_toggle, - "NOTIFY_TOGGLE" => $notify_toggle, - "BBCODE_TOGGLE" => $bbcode_toggle, - "BBCODE_STATUS" => $bbcode_status)); + $template->assign_vars(array( + "L_ABOUT_POST" => $l_aboutpost, + "L_SUBJECT" => $l_subject, + "L_MESSAGE_BODY" => $l_body, + "L_OPTIONS" => $l_options, + "L_PREVIEW" => $l_preview, + "L_SUBMIT" => $l_submit, + "L_CANCEL" => $l_cancelpost, + + "ABOUT_POSTING" => $about_posting, + "USERNAME_INPUT" => $username_input, + "PASSWORD_INPUT" => $password_input, + "SUBJECT_INPUT" => $subject_input, + "MESSAGE_INPUT" => $message_input, + "HTML_STATUS" => $html_status, + "HTML_TOGGLE" => $html_toggle, + "SMILE_TOGGLE" => $smile_toggle, + "SIG_TOGGLE" => $sig_toggle, + "NOTIFY_TOGGLE" => $notify_toggle, + "BBCODE_TOGGLE" => $bbcode_toggle, + "BBCODE_STATUS" => $bbcode_status, + + "S_POST_ACTION" => append_sid("posting.$phpEx"), + "S_HIDDEN_FORM_FIELDS" => $hidden_form_fields) + ); $template->pparse("body"); include('includes/page_tail.'.$phpEx); break; diff --git a/phpBB/templates/Default/newtopic_header.tpl b/phpBB/templates/Default/newtopic_header.tpl index 0e032ec54c..903fad68e8 100644 --- a/phpBB/templates/Default/newtopic_header.tpl +++ b/phpBB/templates/Default/newtopic_header.tpl @@ -7,7 +7,7 @@ {L_POSTNEWIN}
- {FORUM_NAME} + {FORUM_NAME} diff --git a/phpBB/templates/Default/posting_body.tpl b/phpBB/templates/Default/posting_body.tpl index 13cfc0acdd..c49b6292c3 100644 --- a/phpBB/templates/Default/posting_body.tpl +++ b/phpBB/templates/Default/posting_body.tpl @@ -1,11 +1,11 @@ -
+ diff --git a/phpBB/templates/PSO/newtopic_header.tpl b/phpBB/templates/PSO/newtopic_header.tpl index 46d88b0e40..2024cb7cdd 100644 --- a/phpBB/templates/PSO/newtopic_header.tpl +++ b/phpBB/templates/PSO/newtopic_header.tpl @@ -1,5 +1,5 @@
- + @@ -21,7 +21,7 @@ - @@ -30,14 +30,8 @@ - - + +
{L_ABOUTPOST}{L_ABOUT_POST} {ABOUT_POSTING}
{SUBJECT_INPUT}
{L_MESSAGEBODY}

+
{L_MESSAGE_BODY}

{HTML_STATUS}
{BBCODE_STATUS}
{MESSAGE_INPUT}
{HTML_TOGGLE}
{BBCODE_TOGGLE}
{SMILE_TOGGLE}
{SIG_TOGGLE}
{NOTIFY_TOGGLE}
- - - -   -   -
{S_HIDDEN_POST_FIELDS}  
- +
{SITENAME} {L_INDEX} -> {FORUM_NAME}{SITENAME} {L_INDEX} -> {FORUM_NAME}
\ No newline at end of file diff --git a/phpBB/templates/PSO/posting_body.tpl b/phpBB/templates/PSO/posting_body.tpl index 8e55473390..5aa7f15a1d 100644 --- a/phpBB/templates/PSO/posting_body.tpl +++ b/phpBB/templates/PSO/posting_body.tpl @@ -1,5 +1,5 @@
- +
@@ -17,7 +17,7 @@ - +
Post a Topic{HTML_TOGGLE}
{BBCODE_TOGGLE}
{SMILE_TOGGLE}
{SIG_TOGGLE}
{NOTIFY_TOGGLE}
  {S_HIDDEN_FORM_FIELDS}