Kod: Tümünü seç
##############################################################
## MOD İsmi: Üyeler için emaili gizleme
## MOD Sürümü: 1.0.0 (phpBB 2.0.x)
## MOD Yazarı: Seser < seser2004@hotmail.com > www.samanyolufanlari.com & www.bizmuhacirler.com
##
## MOD Açıklaması: Üyelerin emailleri üyeler için gizlenir, sadece adminler görebilir.
##
## Kurulum Seviyesi: Kolay
## Kurulum Süresi: 3 dakika
##
## Degişecek Dosyalar: 4
## modcp.php
## viewtopic.php
## memberlist.php
## includes/usercp_viewprofile.php
##
## Eklenecek Dosyalar: 0
##
##############################################################
## Bu MOD'u kurmadan önce, degişecek bütün dosyaların yedeğini alın.
##############################################################
#
#-----[ AÇ ]------------------------------------------
#
modcp.php
#
#-----[ BUL ]------------------------------------------
#
//
// End Auth Check
//
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
if (($mode == 'email') && ($userdata['user_level'] != ADMIN))
{
$mode = '';
}
#
#-----[ AÇ ]------------------------------------------
#
viewtopic.php
#
#-----[ BUL ]------------------------------------------
#
if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = '';
$email = '';
}
#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------
#
if( $userdata['user_level'] == ADMIN )
{
if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = '';
$email = '';
}
}
else
{
$email_img = '';
$email = '';
}
#
#-----[ AÇ ]------------------------------------------
#
memberlist.php
#
#-----[ BUL ]------------------------------------------
#
if ( !empty($row['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = ' ';
$email = ' ';
}
#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------
#
if( $userdata['user_level'] == ADMIN )
{
if ( !empty($row['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = ' ';
$email = ' ';
}
}
else
{
$email_img = ' ';
$email = ' ';
}
#
#-----[ AÇ ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ BUL ]------------------------------------------
#
if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = ' ';
$email = ' ';
}
#
#-----[ BUNUNLA DEĞİŞTİR ]------------------------------------------
#
if( $userdata['user_level'] == ADMIN )
{
if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN )
{
$email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email'];
$email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
$email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
}
else
{
$email_img = ' ';
$email = ' ';
}
}
else
{
$email_img = ' ';
$email = ' ';
}
#
#-----[ TÜMÜNÜ KAYDET ]--------------------------------
#
#