The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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> |
#12
|
|||
|
|||
i'm sorry to be a noob but i don't know how can i use it
please explain me how can i use it or please make a modification xml so i can use it easily. Thank You All. |
#13
|
|||
|
|||
If my old vB3 dev site still worked I'd do it but I think you'll have to talk kh99 into it. I'm just helping out.
|
#14
|
|||
|
|||
Well, I'm not much of a JS person. When I talked about doing something for this I was thinking of checking it on the server side and displaying an error if it didn't meet some criteria. But I've thought about it more and I can see how that might be annoying for users.
|
#15
|
|||
|
|||
If you do the php and html I'll do the JS. Post the html for the part of the register form containing the password fields and the same for the change password form and I'll paste it in to one of my projects and test my JS. I see I have the id's wrong in my earlier post so be sure the id's match the correct names. I think the <p> needs to be below the password fields so they don't jump when the <p> goes blank.
|
#16
|
|||
|
|||
OK, I'll see if I can get a chance to look at it later today.
BTW, you mention not having a vb3 setup - have you considered installing xampp on a local computer and installing it there? That's what I do these days for all my development. (But it is work - maybe it's not worth the effort just to answer a few questions here). |
#17
|
|||
|
|||
i can provide you a test board for it bro but i don't understand what you are saying
i am super noob i think... |
#18
|
|||
|
|||
I'll try to put together a product you can install, but it will just check the password when submitted as opposed to having a fancy javascript control that would tell the user how good the password is as they type it. Then maybe I or someone else can add some javascript later.
|
#19
|
|||
|
|||
okay thanks a lot
i am waiting.... |
#20
|
|||
|
|||
I can help you. Send me a PM.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|