Home

Your premium source for custom modification services for phpBB

  logo

HomeForumsBlogMOD ManagerFAQSearch Log in

The phpBB Doctor is currently available for private clients only. At this time we are not accepting any new work until we can clear out our current backlog. Thank you for your patience.

 

[Final] EZ Registration


 
Register or Login to Post    ForumsMOD Catalog
View previous topic :: View next topic  
Author Message
phpbbDoctor
Site Admin


Joined: 12 Apr 2005

Posts: 269

None Selected

Post Subject: [Final] EZ Registration
Tue Oct 10, 2006 8:24 pm

This MOD is extremely simple. We've seen other MODs that reduce the number of fields provided for the initial registration, but this one is probably one of the easiest.

OPEN
Code:
templates/subSilver/profile_add_body.tpl

Special Notes wrote:
On or about line 67 to 67, may not represent a complete row

FIND
Code:
<!-- END switch_confirm -->

AFTER, ADD
Code:
   <!-- BEGIN switch_edit_profile -->

Special Notes wrote:
On or about line 244 to 244, may not represent a complete row

FIND
Code:
<!-- BEGIN switch_avatar_local_upload -->

BEFORE, ADD
Code:
   <!-- END switch_edit_profile -->


This MOD has been installed at the phpBBDoctor.com
Back to top
phpbbDoctor
Site Admin


Joined: 12 Apr 2005

Posts: 269

None Selected

Post Subject: RE: [Final] EZ Registration
Tue Oct 10, 2006 8:26 pm

This code is an add-on to the EZ Registration MOD. If you apply the change steps listed in the prior post, then the web site (among other fields) is no longer available during registration. Most "bots" won't realize that and might go ahead and submit the website as part of the posted field values. This add-on looks for that, and if it's found, it rejects the registration right away.

OPEN
Code:
includes/usercp_register.php

Special Notes wrote:
On or about line 119 to 121, may not represent a complete row

FIND
Code:
         $$var = trim($HTTP_POST_VARS[$param]);
      }
   }

AFTER, ADD
Code:
   // Begin EZ Registration Add-on 1.0.0 (www.phpBBDoctor.com)
   if (( $mode == 'register' ) && ( !empty($HTTP_POST_VARS['website']) ))
   {
      message_die(GENERAL_ERROR, $lang['Spam_registration_denied']);
   }
   // End EZ Registration Add-on 1.0.0 (www.phpBBDoctor.com)

OPEN
Code:
language/lang_english/lang_main.php

Special Notes wrote:
On or about line 1021 to 1022, may not represent a complete row

FIND
Code:
//
// That's all

BEFORE, ADD
Code:
// BEGIN EZ Registration Add-on 1.0.0 (www.phpBBDoctor.com)
$lang['Spam_registration_denied'] = 'Invalid registration attempt ignored';
// END EZ Registration Add-on 1.0.0 (www.phpBBDoctor.com)


This MOD has been installed at the phpBBDoctor.com
Back to top
Display posts from previous:   
Register or Login to Post    ForumsMOD Catalog
Page 1 of 1 All times are GMT - 5 Hours

 
Jump to:  

HomeForumsMOD ManagerFAQSearch Register Log in
Not endorsed by or affiliated with the phpBB Group
Powered by phpBB © phpBB Group
Terms of Service
Web design by MomentsOfLight.com logo