Verfasst: 23.07.2003 14:23
Es gibt in der functions_post.php mehrere solcher "Weiterleitungen" ...sicher, das du die richtige erwischt hast (bzw. eigentlich müssten alle angepasst werden) !?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Ups...Acid hat geschrieben:Ich sagte gar nix.. der Philipp war´s.
Die Weiterleitung in der posting.php gilt für Umfragen... die Weiterleitungen in der functions_post.php für den Rest (Editieren, Antworten, Thema schreiben).
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'META' => $return_meta)
);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Redirect to Post (normal post)
//
if ( $mode == 'delete' && $post_data['first_post'] && $post_data['last_post'] )
{
// URL for redirection after deleting an entire topic
$redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id";
// If the above URL points to a location outside the phpBB directories
// move the slashes on the next line to the start of the following line:
//redirect(append_sid($redirect, true), true);
redirect(append_sid($redirect, true));
}
elseif ( $mode == 'delete' )
{
// URL for redirection after deleting a post
$redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id";
// If the above URL points to a location outside the phpBB directories
// move the slashes on the next line to the start of the following line:
//redirect(append_sid($redirect, true), true);
redirect(append_sid($redirect, true));
}
elseif ( $mode == 'reply' || $mode == 'editpost' || $mode == 'newtopic' )
{
// URL for redirection after posting or editing a post
$redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id";
$post_append = "#$post_id";
// If the above URL points to a location outside the phpBB directories
// move the slashes on the next line to the start of the following line:
//redirect(append_sid($redirect, true) . $post_append, true);
redirect(append_sid($redirect, true) . $post_append);
}
//
// MOD: -END-
//
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EndCode: Alles auswählen
redirect(append_sid($redirect, true) . $post_append);