The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
juan71287 Forum Merge And Strong... 09-23-2013, 06:55 AM
juan71287 Any one can help me????? 09-24-2013, 12:20 PM
kh99 I don't know about your... 09-24-2013, 12:27 PM
juan71287 I have checked that thread... 09-24-2013, 12:52 PM
juan71287 Still waiting for some... 09-30-2013, 01:33 PM
tbworld I know this is probably not... 09-30-2013, 11:56 PM
juan71287 okay,
about the passwords... 10-01-2013, 09:25 AM
kh99 I think I might take a shot... 10-01-2013, 11:41 AM
nerbert I was thinking about this too... 10-01-2013, 03:20 PM
kh99 nerbert, if you want to do... 10-01-2013, 04:05 PM
nerbert I just can't do it without... 10-01-2013, 05:58 PM
juan71287 i'm sorry to be a noob but i... 10-02-2013, 11:13 AM
nerbert If my old vB3 dev site still... 10-02-2013, 02:22 PM
kh99 Well, I'm not much of a JS... 10-02-2013, 04:14 PM
nerbert If you do the php and html... 10-02-2013, 04:26 PM
kh99 OK, I'll see if I can get a... 10-02-2013, 04:36 PM
juan71287 i can provide you a test... 10-02-2013, 06:16 PM
kh99 I'll try to put together a... 10-02-2013, 07:24 PM
juan71287 okay thanks a lot :)
i am... 10-04-2013, 05:51 AM
jonii I can help you. Send me a PM.... 10-04-2013, 01:24 PM
ozzy47 jonii it is nice that you... 10-04-2013, 03:57 PM
kh99 Just FYI, i'm still working... 10-06-2013, 09:27 PM
ForceHSS You seem to post this same... 10-07-2013, 12:07 AM
kh99 OK juan71287, I'm attaching... 10-07-2013, 08:27 PM
nerbert Did my JS work? Or did you... 10-07-2013, 09:01 PM
kh99 This version doesn't have any... 10-07-2013, 09:04 PM
juan71287 First of all I thank you for... 10-07-2013, 09:32 PM
kh99 Interesting - do you know... 10-07-2013, 09:35 PM
juan71287 Web Server Apache... 10-07-2013, 09:38 PM
kh99 Hmm...I don't understand why... 10-07-2013, 09:46 PM
juan71287 let me do it again :)... 10-07-2013, 10:07 PM
kh99 Sorry, I'm not sure what... 10-07-2013, 11:09 PM
kh99 The default is a length of at... 10-07-2013, 11:12 PM
kh99 Also, do you see the rules on... 10-08-2013, 11:18 AM
juan71287 its working fine :)
Thank... 10-08-2013, 02:16 PM
|
#11
|
|||
|
|||
I just can't do it without being able to test it. I researched it a little and in the case of the register page there's a hook location just before you output the template, so you could just build whole new modified template called "register_advanced" and output that instead. As for the html for changing the password you could use "modifypassword_advanced" and call for that in a plugin at "profile_complete" and override the earlier call for "modifypassword". That way there's no hacking up the original templates. As for messing with the JS you would want server confirmation I suppose, just translate the JS rejex test into a PHP rejex test. But another possibility is in the new templates, have the submit buttons disabled and enabled by JS only if the password strength conditions are met.
--------------- Added [DATE]1380656685[/DATE] at [TIME]1380656685[/TIME] --------------- I may be checking for strong passwords in a project I'm planning so this is what I plan on using in the template HTML Code:
<input type="password" id="password" onkeydown="strongPassword.checkPasswords();" /> <input type="password" id="confirmpassword" onkeydown="strongPassword.checkPasswords();" /> <p id="use_strong_password" style="font-weight:bold;color:red;">You must use an upper-case letter, a lower-case letter and a number in your password</p> <script> function vB_Strong_Password() { this.newPassword = fetch_object('password'); this.confirmPassword = fetch_object('confirmpassword'); } vB_Strong_Password.prototype.checkPasswords = function() { if(this.check(this.newPassword) && this.check(this.confirmPassword)) { fetch_object('use_strong_password').style.display = 'none'; fetch_object('submit_button').removeAttribute('disabled'); // give the submit button an id and disabled="disabled" } } vB_Stong_Password.prototype.check = function(elt) { var strongPassword = (/[A-Z]/.test(elt.value) && /[a-z]/.test(elt.value) && /[0-9]/.test(elt.value)); return strongPassword; } strongPassword = new vB_Strong_Password(); </script> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|