Back to vBulletin 3.6 Add-ons

There is no need to confirm the password and the e-mail
Mod Version: 1.00, by cairocairo

This modification is in the archives.
vB Version: 3.6.8 Rating: (2 votes - 5.00 average) Installs: 9
Released: 15 Dec 2007 Last Update: Never Downloads: 1
Not Supported Template Edits Auto-Template Additional Files  

If you like this hack please click .
Hack name
There is no need to confirm the password and the e-mail

Hack description
This modification simply removes the password confirmation so users don't have to verify the password again and e-mail also.


Install time:5 minutes

Hack installation

Step 1: Open template register , then find and delete this:

PHP Code:
<script type="text/javascript">
function 
verify_passwords(password1password2)
{
    
// do various checks, this will save people noticing mistakes on next page
    
if (password1.value == '' || password2.value == '')
    {
        
alert('$vbphrase[fill_out_both_password_fields]');
        return 
false;
    }
    else if (
password1.value != password2.value)
    {
        
alert('$vbphrase[entered_passwords_do_not_match]');
        return 
false;
    }
    else
    {
        <if 
condition="$show['coppa']">
        
pass_copy password1.value;
        
passconfirm_copy password2.value;
        </if>

        var 
junk_output;
        
        
md5hash(password1document.forms.register.password_md5junk_output$show[nopasswordempty]);
        
md5hash(password2document.forms.register.passwordconfirm_md5junk_output$show[nopasswordempty]);
        
        <if 
condition="$show['coppa']">
        
document.forms.register.password.value pass_copy;
        
document.forms.register.passwordconfirm.value passconfirm_copy;
        </if>
        
        return 
true;
    }
    return 
false;
}
</
script
PHP Code:
<td>
                        
$vbphrase[confirm_email_address]:<br />
                        <
input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" value="$emailconfirmdir="ltr" />
                    </
td
PHP Code:
onsubmit="return verify_passwords(password, passwordconfirm);" 
PHP Code:
<input type="hidden" name="passwordconfirm_md5" /> 
PHP Code:
<td>
                        
$vbphrase[confirm_password]:<br />
                        <
input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15" value="$passwordconfirm/>
                    </
td
Open File register.php find and delete these pieces of code:

PHP Code:
'emailconfirm'        => TYPE_STR 
PHP Code:
'passwordconfirm'     => TYPE_STR,
'passwordconfirm_md5' => TYPE_STR
PHP Code:
OR empty($vbulletin->GPC['emailconfirm']) 
PHP Code:
OR (empty($vbulletin->GPC['passwordconfirm']) AND empty($vbulletin->GPC['passwordconfirm_md5'])) 
PHP Code:
// check for matching passwords
    
if ($vbulletin->GPC['password'] != $vbulletin->GPC['passwordconfirm'] OR (strlen($vbulletin->GPC['password_md5']) == 32 AND $vbulletin->GPC['password_md5'] != $vbulletin->GPC['passwordconfirm_md5']))
    {
        
$userdata->error('passwordmismatch');
    } 
PHP Code:
// check for matching email addresses
    
if ($vbulletin->GPC['email'] != $vbulletin->GPC['emailconfirm'])
    {
        
$userdata->error('emailmismatch');
    } 
Hack copyright
This may not be distributed,released or claimed as your work without author's permission

by sameh almasry

Download

No files for download.

Screenshots

Click image for larger version
Name:	1.jpg
Views:	718
Size:	33.3 KB
ID:	73212  


vblts.ru supports vBulletin®, 2022-2025