İStek - Mesaj gönderildikten sonra direk çıksın

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kilitli
BYSERCAN07
Kayıtlı Kullanıcı
Mesajlar: 109
Kayıt: 04.09.2006, 13:53
İletişim:

İStek - Mesaj gönderildikten sonra direk çıksın

Mesaj gönderen BYSERCAN07 »

ben mesaj yazınca direk olarak yazdıgı mesaj çıkmasını istiyorum ismini bilmedigim için aratamadım yardımcı olabilirmisiniz :oops:
HaYaL-eT
Kayıtlı Kullanıcı
Mesajlar: 311
Kayıt: 02.08.2006, 21:13
İletişim:

Mesaj gönderen HaYaL-eT »

İsteğinizi biraz daha açarsanız daha sağlıklı yardım alabileceğinizi düşünüyorum...
Lütfen MSNden ve özelden yardım istemeyin..
Kullanıcı avatarı
Mirach
Destek Ekibi Lideri
Destek Ekibi Lideri
Mesajlar: 1664
Kayıt: 27.03.2006, 01:06
Konum: İstanbul

Mesaj gönderen Mirach »

istediğiniz mod sitemizde yayınlanmıştı fakat zararlı olduğundan kaldırıldı ..
Profilinde phpBB forumunun adresini girmemiş üyelere ve kurallara aykırı şekilde açılmış başlıklara destek verilmez.
Resim Resim Resim
BYSERCAN07
Kayıtlı Kullanıcı
Mesajlar: 109
Kayıt: 04.09.2006, 13:53
İletişim:

Mesaj gönderen BYSERCAN07 »

ewet bende gördüm zararsızı yokmu :cry:
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 7224
Kayıt: 18.09.2005, 20:51
İletişim:

Mesaj gönderen ESQARE »

sanırım mesaj gönderildikten sonra başka pencereye geçip "mesajınız başarıyla gönderilmiştir. v.s." demeden, direk mesajın çıkmasını istiyorsunuz.Bu modu bir deneyin.

Kod: Tümünü seç

##############################################################
# Title: Redirect to Post
# Author: Thoul  thoul@users.sourceforge.net  http://darkmods.sourceforge.net
# Description: After posting, editing, or deleting a message, the user is
# redirected to their post or the topic.
# Version: 2.2.0
# Installation Level: Easy
# Installation Time: 2 Minutes
# Files To Edit: posting.php, privmsg.php
# Included Files: n/a
##############################################################
# Author's Notes:
# This MOD is a way of bypassing the message displayed when a message is
# successfully posted, edited, or deleted. It will instead redirect the user back
# to their post without waiting. If the post was deleted, then the user is sent to
# the first post of the topic. If the entire topic was deleted as a result of 
# deleting the post (e.g., it was the only post in the topic), then the user is
# sent to the forum instead.
#
# This MOD also includes redirection after sending a private message. If you only
# want one type of redirection (either after posting or after sending a PM, but not
# both), then just apply the changes for the one appropriate file as directed in
# this MOD.
#
# If you are redirecting users to pages outside of your phpBB directories (aka 
# folders), be sure to read the file function_change.txt also. It contains other
# modifications and instructions that you will need to read.
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################

#
#-----[ 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-
//

#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#

		$template->assign_vars(array(
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("privmsg.$phpEx?folder=inbox") . '">')
		);

		$msg = $lang['Message_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

		message_die(GENERAL_MESSAGE, $msg);

#
#-----[ REPLACE WITH ]------------------------------------------
#

/*  Original phpBB code - commented out for Redirection Suite MOD
		$template->assign_vars(array(
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("privmsg.$phpEx?folder=inbox") . '">')
		);

		$msg = $lang['Message_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

		message_die(GENERAL_MESSAGE, $msg);
*/

//
// MOD: Redirect to Post (private messages)
//
		// URL to redirect to after sending private message
		$pm_redirect_url = "privmsg.$phpEx?folder=inbox";

		// 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($pm_redirect_url, true), true);
		redirect(append_sid($pm_redirect_url, true)); 
//
// MOD: -END-
//

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End
Resim
phpBB Eklenti Kurulumu | Kurallar | phpBB3 İzinleri | Otel Rehberi

Kurallarımız gereği lütfen özel mesaj ile yardım istemeyiniz, cevap vermiyoruz.
BYSERCAN07
Kayıtlı Kullanıcı
Mesajlar: 109
Kayıt: 04.09.2006, 13:53
İletişim:

Mesaj gönderen BYSERCAN07 »

hemen deniyorum saol :)
zirve
Kayıtlı Kullanıcı
Mesajlar: 474
Kayıt: 28.04.2006, 10:26
İletişim:

Mesaj gönderen zirve »

bu modun zararı nedir
Kilitli

“2.0.x MOD İstekleri” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 0 misafir