Pagina 1 van 1

na posten

Geplaatst: 30 jan 2004, 09:32
door MeDieViL

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-
//
heb deze mod geinstalleert, zoadat je na het posten direct naar je eigen topic gaat, (niet eerst het berich, je post is sucesvol, ga naar topic of forum..)
maar hij gaat dan wel naar de topic, maar niet naar hetgeen ik poste, maar het begin van de topic

Geplaatst: 30 jan 2004, 12:53
door mosymuis
Misschien werkt dit?

Vervang

Code: Selecteer alles

      $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id";
Door

Code: Selecteer alles

      $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id&start=$start";

Geplaatst: 30 jan 2004, 13:16
door MeDieViL
werkt ni, hij gaat nog altijd niet naar je eigen post :?

Geplaatst: 30 jan 2004, 17:12
door WebSiteNet

Code: Selecteer alles

   $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id";