From 178572a5d0609d2b3995c7487d3add95414bab51 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 18 May 2003 11:12:04 +0000 Subject: [PATCH] #642733 git-svn-id: file:///svn/phpbb/trunk@4011 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/posting.php | 4 +- phpBB/templates/subSilver/editor.js | 1 + .../subSilver/posting_topic_review.html | 51 ++++++++++++++++++- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/phpBB/posting.php b/phpBB/posting.php index cd041fc62c..2f40ca83d0 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -40,6 +40,7 @@ include($phpbb_root_path . 'includes/message_parser.'.$phpEx); // Start session management $user->start(); $auth->acl($user->data); +$user->setup(); // Grab only parameters needed here $mode = (!empty($_REQUEST['mode'])) ? strval($_REQUEST['mode']) : ''; @@ -1148,8 +1149,6 @@ function topic_review($topic_id, $is_inline_review = false) global $user, $auth, $db, $template, $bbcode; global $censors, $config, $phpbb_root_path, $phpEx, $SID; - $user->setup(); - // Define censored word matches if (empty($censors)) { @@ -1235,6 +1234,7 @@ function topic_review($topic_id, $is_inline_review = false) 'POSTER_NAME' => $poster, 'POST_DATE' => $user->format_date($row['post_time']), 'POST_SUBJECT' => $post_subject, + 'POST_ID' => $row['post_id'], 'MESSAGE' => nl2br($message), 'S_ROW_COUNT' => $i++) diff --git a/phpBB/templates/subSilver/editor.js b/phpBB/templates/subSilver/editor.js index 0ef736c94a..3bcd035346 100644 --- a/phpBB/templates/subSilver/editor.js +++ b/phpBB/templates/subSilver/editor.js @@ -84,6 +84,7 @@ function bbstyle(bbnumber) { donotinsert = false; theSelection = false; bblast = 0; + document.forms[form_name].elements[text_name].focus(); if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { diff --git a/phpBB/templates/subSilver/posting_topic_review.html b/phpBB/templates/subSilver/posting_topic_review.html index 1ffbf5d7dc..14025cf8b7 100644 --- a/phpBB/templates/subSilver/posting_topic_review.html +++ b/phpBB/templates/subSilver/posting_topic_review.html @@ -5,12 +5,58 @@ {L_TOPIC_REVIEW} -