PDA

View Full Version : Miscellaneous Hacks - There is no need to confirm the password and the e-mail


cairocairo
12-14-2007, 10:00 PM
If you like this hack please click Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=165203).
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/attachment.php?attachmentid=73212&stc=1&d=1197709802

Install time:5 minutes

Hack installation

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

<script type="text/javascript">
function verify_passwords(password1, password2)
{
// 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(password1, document.forms.register.password_md5, junk_output, $show[nopasswordempty]);
md5hash(password2, document.forms.register.passwordconfirm_md5, junk_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><td>
$vbphrase[confirm_email_address]:<br />
<input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50" value="$emailconfirm" dir="ltr" />
</td> onsubmit="return verify_passwords(password, passwordconfirm);" <input type="hidden" name="passwordconfirm_md5" /> <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:

'emailconfirm' => TYPE_STR'passwordconfirm' => TYPE_STR,
'passwordconfirm_md5' => TYPE_STR,OR empty($vbulletin->GPC['emailconfirm'])
OR (empty($vbulletin->GPC['passwordconfirm']) AND empty($vbulletin->GPC['passwordconfirm_md5']))// 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');
}// 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
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

adhmwagde
12-17-2007, 09:56 PM
Oh thanx you Mr sameh the hack is very very nice :D
gooood job :D

Install :D

C.ooder
12-17-2007, 10:25 PM
Thank you

basketmen
11-19-2008, 10:31 PM
dear cairocairo, can you add no need to enter email too, so email is optional to entering when register

i had asking for this before but still cant do it
https://vborg.vbsupport.ru/showthread.php?t=162509&highlight=email
https://vborg.vbsupport.ru/showthread.php?t=196462


if you can do this please add this feature too, no need email when register i will donate if you can

nerofix
11-26-2008, 10:34 PM
Could you please update this for vb 3.8 beta 4 ???

Seems they changed the register.php completly :-/