Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Registration Auth Code
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Registration Auth Code
PostPosted: 08/11/2007 10:28 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 12:34 PM
usaCa.gif
I don't see it here and putting those words in search brings up tons of stuff.

Is it worth it?  Apparently you have to play with the code according to how you want to set things up.
I know case sensitive could bug people and I wouldn't want to go looking for a word on another page so know which option I think I would prefer.

Any thoughts one whether this one is worth trying?  They say on the download support that it shouldn't be installed with EM but I think that it will install just fine with EM as long as you tweak it to do so and also set it up the way you want it to behave once installed.  Am I right?

Code:
##############################################################
## MOD Title:      Registration Auth Code (RAC)
## MOD Author:       Marshalrusty < > (Yuriy Rusko) http://www.phpbb.com/community/viewtopic.php?f=1&t=427852
## MOD Description:   This MOD is based on the "VIP Code MOD" by Martin Aignesberger. A number of improvements have been made to
##                  the aforementioned MOD including:
##                  1) Proper usage of language variables
##                  2) Proper usage of the phpBB MOD Template
##                  3) The removal of 2 unnecessary steps
##                  4) More detailed instructions
##
##                  This MOD will require users to enter an auth code during registration, which is defined by the administrator.
##                  Alternatively, the administrator may wish to ask a question, which the code would be the answer to
##                  Here are two examples of possible setups:
##                  
##                  http://www.marshalrusty.com/phpBB/spam/description.gif
##                  http://www.marshalrusty.com/phpBB/spam/question.gif
##
## MOD Version:    0.0.2
## Installation Level:   Easy
## Installation Time:   ~3 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:
##
##
## Support for this MOD can be obtained here:
## http://www.phpbb.com/community/viewtopic.php?f=16&t=552845
##
## Before installing this MOD, please visit the URI above to make sure that you are installing the latest version.
##
##
##############################################################
## MOD History:
##   2007-07-22 - Version 0.0.2
##            - More user friendly error
##   2007-01-01 - Version 0.0.1
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ DIY ]------------------------------------------
#    
This MOD requires that you choose an auth code that users will have to enter during registration.
This code should be a string of numbers, letters and/or symbols. Valid examples would be:
'y5i4b3m', '1739575', 'eyrmoskd', '!@#$%^&', '1a!2b@', etc.

Remember that you will have to display this code somewhere for users to find and be able to
explain where it is located on the registration page. Instead of using a random string, you can
use "The first two words in the description of the first forum on the index page" or "The first
two words in this board's description (under the title in the header)" or something similar.
Here is an example: http://www.marshalrusty.com/phpBB/spam/description.gif

If you wish to make it even simpler, you may change the $lang['rac_location'] (below) to a question,
such as "How many fingers do people have?" or "What color is the sky?" and make the RAC code the answer.
Here is an example of how this would look: http://www.marshalrusty.com/phpBB/spam/question.gif

If after some time you notice an increase in the number of spam registrations, bots may have been
adapted to the system. Simple change the auth code and/or its location to throw them off again.

Please note the messages after the word "Hint:" in the instructions below; they contain further
instructions.

#
#-----[ OPEN ]------------------------------------------
#    
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
   else if ( $mode == 'register' )
   {

#
#-----[ AFTER, ADD ]------------------------------------------
# Hint: Change the 'qwerty12345' to the auth code that you want to use
#   If you want the code to be case insensitive, use the following instead of the first line (without the # in front):
#   if (strtolower($HTTP_POST_VARS['RAC']) != 'qwerty12345')
#
      // RAC MOD Begin
        if ($HTTP_POST_VARS['RAC'] != 'qwerty12345')
        {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['rac_incorrect'];
        }
      // RAC MOD End

#
#-----[ FIND ]------------------------------------------
#
      'L_CONFIRM_CODE_EXPLAIN'   => $lang['Confirm_code_explain'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
      // RAC MOD Begin
      'L_RAC_CODE'       => $lang['rac_code'],
      'L_RAC_LOCATION'   => $lang['rac_location'],
      // RAC MOD End

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
// -------------------------------------------------

#
#-----[ BEFORE, ADD ]------------------------------------------
# Hint: Change the third definition to say where the code will be displayed. The link is
#   there as a guidelines; you don't necessarily need to use it.
#   You may also change $lang['rac_location'] to a question, to which the code is the answer.
#   Examples: http://www.marshalrusty.com/phpBB/spam/description.gif and http://www.marshalrusty.com/phpBB/spam/question.gif
#
// RAC MOD Begin
$lang['rac_incorrect'] = 'The authorization code you have entered is incorrect. The location of the code should be stated on the registration page. Please try again.';
$lang['rac_code'] = 'Authorization Code';
$lang['rac_location'] = 'You can find the auth code on the following page: <a href="http://wwww.yoursite.com">Location Title</a>';
// RAC MOD End

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
      <span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
     <td class="row2">
      <input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
     </td>
   </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
   <!-- BEGIN switch_user_logged_out -->
   <tr>
     <td class="row1"><span class="gen">{L_RAC_CODE}: * </span><br />
      <span class="gensmall">{L_RAC_LOCATION}</span></td>
     <td class="row2">
      <input type="text" class="post" style="width: 200px" name="RAC" size="25" maxlength="32" />
     </td>
   </tr>
   <!-- END switch_user_logged_out -->

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: Registration Auth Code
PostPosted: 08/12/2007 3:04 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:34 PM
Location: St Pete, FL
peace.gif
I can't vouch for whether the MOD will work or not, but I did clean up the MOD script and make it EM Friendly.  I see no reason for the MOD author to discourage people from using EM to install this.  He did make a mistake with the DIY INSTRUCTIONS section, but that wouldn't have adversely affected the MOD install.  It would have displayed in the Unrecognized Commands section is all.  There really isn't much to this MOD, so I can't see how it could do a lot of harm trying to install it...

rac_002_em_friendly.zip

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Registration Auth Code
PostPosted: 08/12/2007 4:33 PM Reply with quote
Citation
KeeKee
Citation
Posts 940
Word Cnt. 48,215
BDay Mar 4
Sign Pisces
Sex Sex:Female
Joined: Mar 20, 2006
Local time: 12:34 PM
usaCa.gif
Thanks.  I think the main problem with using EM stemmed from having to do something in the mod before installing it. They were saying most people with EM try to install as is and you have to make some changes according to what you wanted it to do.
Back to Top
View user's profile Find all posts by KeeKee Send private message   Visit poster's website Yahoo Messenger Phoogle Map ICQ Number
Re: Registration Auth Code
PostPosted: 08/12/2007 5:15 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:34 PM
Location: St Pete, FL
peace.gif
I didn't see anything like that in the MOD script.  All I saw is a MOD that wasn't written in an EM Friendly manner.  It really isn't that difficult to do if you know how, which may be the problem for a lot of MOD authors.  They really should make them take a class on writing EM Friendly MODs before they will accept submissions from any MOD author...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1006s (PHP: 66% - SQL: 34%) - SQL queries: 40 - GZIP disabled - Debug on