mod adı: Add a VIP code during registration
sürüm: 1.2.1
özelliği: kayıt formuna yeni bir değer ekler, bu değer bir şifredir ve bu şifreyi siz forumunuzda belli bir başlık altında yayınlarsınız ve üye olmak isteyenlerin o başlıktaki metni okumaları gerekir... mesela agreement veya kurallar sayfası! kuralları okuyan kişi o şifreyi de görür ve ordaki şifreyle ilgili alanı doldurur... basit ve mantıklı bir spam canavarı...
bir çeşit gizli soru mantığı
not: sitede link olarak verilmişti... başlık olarak yeni alanda buraya ekliyorum... güvenlik artık gündemimizde...
- Kod: Tümünü seç
##############################################################
## MOD Title: Add a VIP code during registration
## MOD Author: Username < email@domain.com > (Martin Aignesberger) http://www.aignes.com
## MOD Description: User has to enter a VIP-Code during registration, otherwise the
## registration fails. You can display such a VIP-Code for example
## on the support page of your website or in the About-Box of your
## application (then a spammer has to download and install your
## software first :)
##
## MOD Version: 1.2.1
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: includes/usercp_register.php
## language/lang_english/lang_main.php
## templates/subSilver/profile_add_body.tpl
## 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/
##############################################################
## Author Notes:
## Works perfectly for me
##############################################################
## MOD History:
## 2006-08-11 - Version 1.0.0
## 2006-08-14 - Version 1.2.0 - VIP code works independently from visual confirmation
## 2006-08-14 - Version 1.2.1 - minor fixes
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
rawurlencode($website);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start myVIPcode mod
if ( ($mode == 'register') && ($HTTP_POST_VARS['myVIPcode'] != '2486') )
{
message_die(GENERAL_MESSAGE, $lang['vip_spam_invalid']);
}
// End myVIPcode mod
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_confirm', array());
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Start myVIPcode mod
if ($mode == 'register')
{
$template->assign_block_vars('switch_myvipcode', array());
}
// End myVIPcode mod
#
#-----[ FIND ]------------------------------------------
#
'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_VIP_CODE' => $lang['vip_spam_vip_code'],
'L_VIP_LOCATION' => $lang['vip_spam_location'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['vip_spam_invalid'] = 'Sorry, but your <b>VIP code</b> is NOT correct.<br><br>You can find a valid <b>VIP code</b> on the WebSite-Watcher Support page.';
$lang['vip_spam_vip_code'] = 'VIP code';
$lang['vip_spam_location'] = 'You can find a valid <b>VIP code</b> on the WebSite-Watcher Support page!';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END switch_confirm -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_myvipcode -->
<tr>
<td class="row1"><span class="gen"><b>{L_VIP_CODE}:</b> *</span><br />
<span class="gensmall">{L_VIP_LOCATION}</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="myVIPcode" size="25" maxlength="32" value="" /></td>
</tr>
<!-- END switch_myvipcode -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM