na posten

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
MeDieViL
Berichten: 1685
Lid geworden op: 14 mei 2003, 15:28
Locatie: België,Antwerpen
Contacteer:

na posten

Bericht door MeDieViL » 30 jan 2004, 09:32

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

Gebruikersavatar
mosymuis
Berichten: 6940
Lid geworden op: 05 feb 2003, 14:00
Locatie: Amsterdam
Contacteer:

Bericht door mosymuis » 30 jan 2004, 12:53

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";

Gebruikersavatar
MeDieViL
Berichten: 1685
Lid geworden op: 14 mei 2003, 15:28
Locatie: België,Antwerpen
Contacteer:

Bericht door MeDieViL » 30 jan 2004, 13:16

werkt ni, hij gaat nog altijd niet naar je eigen post :?

Gebruikersavatar
WebSiteNet
Berichten: 6524
Lid geworden op: 20 okt 2003, 16:56
Locatie: Wieringerwerf
Contacteer:

Bericht door WebSiteNet » 30 jan 2004, 17:12

Code: Selecteer alles

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

Gesloten