Redirect User Fix - 1.0.1

Eklenti geliştirme bölümü.

Redirect User Fix - 1.0.1

İleti sabri ünal 21.08.2006, 18:03

mesaj yazıldıktan sonra direk mesaja döner, yazı düzenlendikten sonra veya oy kullanıldıktan sonra da direk mesaja döner... sadece mesaj silindiğinde, bu mesaj silinmiştir diye bir uyarı gösterir, sonra foruma döner...

Kod: Tümünü seç

######################
## MOD Title:  Redirect User Fix 1.0.1
## 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
Mutluyum, biraz komedi takılıyorum! sakın kızmayın yakında geçer, sebebini ben de bilmiyorum! yeni bir aşk da bulmuş değilim!
Kullanıcı avatarı
sabri ünal
Üye
Üye
 
İleti: 1325
Kayıt: 27.10.2005, 15:49
Konum: İstanbul

İleti Sergeant Orion 21.08.2006, 18:06

turkiyebb'ye kuruldu. teşekkürler
Hail to the doat, baby!
Kullanıcı avatarı
Sergeant Orion
Üye
Üye
 
İleti: 588
Kayıt: 26.11.2005, 20:44
Konum: İstanbul


Eklenti Geliştirme



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron