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 - ZH - Don't Require Password Confirmation (https://vborg.vbsupport.ru/showthread.php?t=134444)

Ziki 12-19-2006 10:00 PM

ZH - Don't Require Password Confirmation
 
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Don't Require Password Confirmation

~Hack description
Requested by Floris.This modification simply removes the password confirmation so users don't have to verify the password again.

~Hack options
None

~Hack info
File uploads: 0
Template edits: 4
Templates: 0
File edits: 3
Plugins: 0
SQL Queries: 0
Phrases: 0
Settings: 0

Install time: 3 minutes
Install level: Medium

~Hack installation

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

Code:

<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>

Code:

onsubmit="return verify_passwords(password, passwordconfirm);"
Code:

<input type="hidden" name="passwordconfirm_md5" />
Code:

                                        <td>
                                                $vbphrase[confirm_password]:<br />
                                                <input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15" value="$passwordconfirm" />
                                        </td>

Step 2: In the register.php file find and delete this parts of code:

Code:

                'passwordconfirm'    => TYPE_STR,
                'passwordconfirm_md5' => TYPE_STR,

Code:

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


~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki 12-20-2006 04:42 PM

Reserved

Floris 12-20-2006 05:59 PM

*sweet* :)

Floris 12-20-2006 06:04 PM

* Installed, works fine so it seems * :)

Ziki 12-20-2006 06:22 PM

Pleased :))

Kirk Y 12-20-2006 08:24 PM

Just out of curiosity, why wouldn't you want Verification?

Floris 12-20-2006 09:57 PM

The people who are going to use this forum are unexperienced with the internet and forums. They have to be provoked to join and the less things / steps to do / take the better. It is a thing they simply don't understand (why do i need to type it twice?) .. we thin kfrom admin point of view, but this forum is a all end-user view perspective. The spam issue,.. is issue for the hired mods, not for the users. We even skip the forum rules using &amp;agree=1

http://www.vraaghetaantom.nl/forums.php

Click on register to see how the registration page looks like now.

That said, don't register, we drop the userbase jan 1st..

Pyrix 12-20-2006 10:19 PM

[[OFFTOPIC]]

Floris,

Your link isn't working properly at the moment.....

register.php??do=register&agree=1

There are two '?' so the 'do' and 'agree' arguments are lost and you get the forum rules again :D

Just thought i'd let you know :)

Ollie

Kirk Y 12-21-2006 01:41 AM

I suppose that makes sense Floris; I guess I'm just stuck thinking from an administrative point of view and the endless number of people asking why there password isn't working.

DPSR 12-21-2006 01:43 AM

very nice ziki, now installed both hack :D

DementedMindz 12-21-2006 02:59 AM

Quote:

Originally Posted by acidburn0520 (Post 1142590)
I suppose that makes sense Floris; I guess I'm just stuck thinking from an administrative point of view and the endless number of people asking why there password isn't working.

why wouldnt there password work?

Hornstar 12-21-2006 04:41 AM

Quote:

Originally Posted by DementedMindz (Post 1142606)
why wouldnt there password work?

Because they could easily misspell it and not know because there would be no check in place. and these users would then have no idea how to reset their password if they are not very forum based people in the first place.

YeşiLMeN 12-21-2006 05:57 AM

Clicks İnstall Thanks :)

Ziki 12-22-2006 01:16 PM

Quote:

Originally Posted by hornstar1337 (Post 1142626)
Because they could easily misspell it and not know because there would be no check in place. and these users would then have no idea how to reset their password if they are not very forum based people in the first place.

well yeah that is a problem but I still thinks it saves a bit time by registration


All times are GMT. The time now is 12:51 AM.

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.01770 seconds
  • Memory Usage 1,751KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete