sabri ünal 29.10.2006, 16:23
üye gizli bir gruba eklendiğinde bir gruba eklendiniz diye mesaj gitmesini kaldırır...
- Kod: Tümünü seç
##############################################################
## MOD Title: Disable Notification of Addition to Hidden Group
## MOD Author: Thoul < thoul@phpbbsmith.com > (Jeremy Rogers) http://www.phpbbsmith.com
## MOD Description: Prevents sending of group addition e-mails for hidden groups.
## MOD Version: 1.0.1
##
## Installation Level: Intermediate
## Installation Time: 3 Minutes
## Files To Edit: groupcp.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
// This file modified for Disable Notification of Addition to Hidden Group
#
#-----[ FIND ]------------------------------------------
#
//
// Get the group name
// Email the user and tell them they're in the group
//
$group_sql = "SELECT group_name
FROM " . GROUPS_TABLE . "
WHERE group_id = $group_id";
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*------------------------------------------------------------------------------
// Disable Notification of Addition to Hidden Group - Begin Code Alteration
// Added: , group_type
// Original phpBB Code:
//
// Get the group name
// Email the user and tell them they're in the group
//
$group_sql = "SELECT group_name
FROM " . GROUPS_TABLE . "
WHERE group_id = $group_id";
*/
#
#-----[ IN-LINE FIND ]------------------------------------------
#
group_name
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, group_type
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// Disable Notification of Addition to Hidden Group - End Code Alteration
//------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$group_name_row = $db->sql_fetchrow($result);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//------------------------------------------------------------------------------
// Disable Notification of Addition to Hidden Group - Begin Code Alteration
//
if ( $group_name_row['group_type'] != GROUP_HIDDEN )
{
//
// Disable Notification of Addition to Hidden Group - End Code Alteration
//------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
$emailer->reset();
#
#-----[ AFTER, ADD ]------------------------------------------
#
//------------------------------------------------------------------------------
// Disable Notification of Addition to Hidden Group - Begin Code Alteration
//
}
//
// Disable Notification of Addition to Hidden Group - End Code Alteration
//------------------------------------------------------------------------------
#
#-----[ 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!