Kod: Tümünü seç
######################
## MOD Title: Redirect User Fix 1.0.1
## MOD Author: Solo Forever < solarent@excite.com > (N/As) http://foreversilent.net
## MOD Author2: Mav < mav@universalspider.com > (N/As) N/As
## MOD Author3: yakusha < yakusha@tnn.net > (N/As) N/As
##
## MOD Description:
## redirect users directly to their message after making a new post, instead of the "Click here to view your message, here for Forum index" message screen.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit:
## posting.php
##
## Included Files:
## no files included but the mod and it's file within it.
######################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
######################
## Author Notes:
######################
## MOD History:
##
## 2006-08-18 - Version 1.0.1
##
## 2005-02-01 - Version 1.0.0
##
######################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
######################
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">')
);
$message .= '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//---[ + ]---[ FIX ]---------------------------------------
redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true));
//---[ - ]---[ FIX ]---------------------------------------
#
#-----[ FIND ]------------------------------------------
#
if ( $error_msg == '' )
#
#-----[ REPLACE ]------------------------------------------
#
//---[ + ]---[ FIX ]---------------------------------------
if ( $error_msg == '' & $mode != 'delete' )
//---[ - ]---[ FIX ]---------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'META' => $return_meta)
);
message_die(GENERAL_MESSAGE, $return_message);
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
//---[ + ]---[ FIX ]---------------------------------------
redirect(append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id", true) . '#' . $post_id);
}
if ( $error_msg == '' & $mode == 'delete')
{
$template->assign_vars(array(
'META' => $return_meta)
);
message_die(GENERAL_MESSAGE, $return_message);
}
//---[ - ]---[ FIX ]---------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM