Versiyon: 100
Mod işlevi: Üyenin ilk kayıt olduğu eposta adresini kayıt altına alır ve onu bir sonraki karşılaştırmalar için sürekli olarak saklar, bu değer profilden vs bir daha değiştirilemez
- Kod: Tümünü seç
##############################################################
## MOD Title: first email protection MOD
## MOD Author: MagMo
##
## MOD Description: Dieser MOD sichert die bei der Registrierung angegeben EMail-Adresse.
## Ändert der Benutzer seine EMail-Adresse, so bleibt die Registrierungsadresse
## erhalten. Sie kann im Profil nur von Administratoren eingesehen werden.
##
## MOD Compatibility: 2.0.18
##
## MOD Version: 1.0
##
## Installation Level: easy
## Installation Time: 5 Minutes
##
##
## Included Files: 1
## first-email-protection_db_update.php
##
## Files To Edit: 5
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
## templates/subSilver/profile_view_body.tpl
##
#################################################
## Author Notes:
##
## 1. SQL commands
## ---------------
## This MOD need a database update.
## Please copying the first-email-protection_db_update.php in your phpBB root
## directory, run it with your navigator, and then delete it from the phpBB
## root directory.
##
## Please, do it NOW! Before editing phpBB files by EM or manually!!!
## Otherwise, you may have an error message during your next
## connection.
##
#################################################
## MOD History:
##
## 2005-12-17 - Version 1.0
## - Initial Release
##
################################################
## For Security Purposes, Please Check: http://phpbb.mwegner.de/ for the latest version of this MOD.
## Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum.
##################################################
## Before adding this MOD to your forum, you should back up your complete database and all files
## related to this MOD!
#################################################
## INSTALLATION OF THE first email protection MOD:
#################################################
#
#-----[ COPY ]------------------------------------------------
#
copy first-email-protection_db_update.php to first-email-protection_db_update.php
#
# This MOD need a database update.
# Then, as you must have now copied the ecard_db_update.php file
# in your phpBB root directory, run it with your navigator...
# http://www.yourWebSite.xxx/phpbbRootDir/first-email-protection_db_update.php
#
# ...and then delete it from the phpBB root directory!!!
#
# Please, do it NOW! Before editing phpBB files !!!
# Otherwise, you may have an error message during your next
# connection.
#
##################################################
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------------
#
, user_email
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------------
#
, user_first_email
#
#-----[ FIND ]------------------------------------------------
#
$email) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------------
#
, '" . str_replace("\'", "''", $email) . "'
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------------
#
else
{
$email_img = ' ';
$email = ' ';
}
#
#-----[ AFTER, ADD ]------------------------------------------------
#
// first email protection MOD Start
if ($userdata['user_level'] == ADMIN)
{
$template->assign_block_vars('switch_user_is_administrator', array());
}
// first email protection MOD End
#
#-----[ FIND ]------------------------------------------------
#
'EMAIL_IMG' => $email_img,
'EMAIL' => $email,
#
#-----[ AFTER, ADD ]------------------------------------------------
#
// first email protection MOD Start
'FIRST_EMAIL_ADDRESS' => $profiledata['user_first_email'],
'CURRENT_EMAIL_ADDRESS' => $profiledata['user_email'],
'L_FIRST_EMAIL_ADDRESS' => $lang['first_email'],
'L_CURRENT_EMAIL_ADDRESS' => $lang['current_email'],
// first email protection MOD End
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE ADD ]------------------------------------------------
#
// first email protection MOD Start
$lang['first_email'] = 'Registration-E-mail address';
$lang['current_email'] = 'current E-mail address';
// first email protection MOD End
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_german/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE ADD ]------------------------------------------------
#
// first email protection MOD Start
$lang['first_email'] = 'Registrierungs-E-Mail-Adresse';
$lang['current_email'] = 'aktuelle E-Mail-Adresse';
// first email protection MOD End
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_EMAIL_ADDRESS}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{EMAIL_IMG}</span></b></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------------
#
<!-- BEGIN switch_user_is_administrator -->
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_FIRST_EMAIL_ADDRESS}:</span></td>
<td class="row1" valign="middle" width="100%"><span class="gen">{FIRST_EMAIL_ADDRESS}</span></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CURRENT_EMAIL_ADDRESS}:</span></td>
<td class="row1" valign="middle" width="100%"><span class="gen">{CURRENT_EMAIL_ADDRESS}</span></td>
</tr>
<!-- END switch_user_is_administrator -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------------
#
# EoM