Code: Selecteer alles
#
#-----[ 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-
//
maar hij gaat dan wel naar de topic, maar niet naar hetgeen ik poste, maar het begin van de topic