vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - There is no need to confirm the password and the e-mail (https://vborg.vbsupport.ru/showthread.php?t=165203)

cairocairo 12-14-2007 10:00 PM

There is no need to confirm the password and the e-mail
 
If you like this hack please click Installed.
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.
https://vborg.vbsupport.ru/attachmen...1&d=1197709802

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

FreshFroot 12-15-2007 07:31 AM

why would you want to remove it? I think it actually helps members NOT type a wrong pass or email. Otherwise, they have to create another account... I also don't like to do file edits either sadly..

I guess someone can still use the hack though....

chuchukuttie 12-15-2007 01:28 PM

Hmm... not interested in this, I agree with FreshFroot. It's good to have the confirms.

Derek Chai 12-15-2007 03:30 PM

Translate please? (Image)

iogames 12-15-2007 04:48 PM

Whaaat?

good job by the way ;)

FreshFroot 12-15-2007 06:11 PM

Quote:

Originally Posted by Derek Chai (Post 1401611)
Translate please? (Image)

why do you need it translated, he explained WHAT it does...

Amman-DJ.CoM 12-15-2007 11:35 PM

Not very usefull addon ,
i beleive u should make sure members has not written wrong e-mails , or pass.

Thanks

mktrilogy 12-16-2007 12:55 AM

some site do need this type of set up though :) i dont need it but hey, cool hack :)

Losha 12-16-2007 03:56 PM

شكرا يا صحبي هاك رائع فعلا
Very good Sameh Oh God

kollam003 12-17-2007 02:34 PM

i dont think its a nice idea


All times are GMT. The time now is 11:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,772KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete