Bug #746
closedCreate Pop-Up Login Overlay
0%
Description
Right now, when one visits the Commons and clicks "Login," one is taken to a completely different login page whose only purpose is to log in. I'd love to see the act of clicking "Login" pop-up a little window so that one could enter info without leaving the page. Even if the page had to be reload on login, that would cut a page load out of the process.
Files
Updated by Raymond Hoh over 13 years ago
- File mockup.jpg mockup.jpg added
- Assignee changed from Boone Gorges to Raymond Hoh
Here's something I coded quite fast.
Still need to add the javascript, but is this what you had in mind, Matt?
Updated by Matt Gold over 13 years ago
Yes, that's exactly what I had in mind, Ray -- thanks! The only change I'd make is to the color -- instead of orange, I'd use a semi-transparent black, like the dropdown menus you see on our nav bar when you mouseover "About" or when you look at the image slide on the homepage. Thanks so much for your work on this!
Updated by Matt Gold over 13 years ago
Better! I think that a little bit darker would be good, so that a bit less of the background shows through. Thank you!
Updated by Raymond Hoh over 13 years ago
- File mockup_trans_80.jpg mockup_trans_80.jpg added
I originally used the transparent black from the slider, which was 70% black.
The new background in the attached screenshot uses 80% black. Take a look and let me know if it's dark enough!
Updated by Matt Gold over 13 years ago
One other thing -- should/could it include a "Forgot your password?" link? My worry is that if we change the login link to just this pop-up, there will be no way for people to reset their passwords if they need to.
Updated by Raymond Hoh over 13 years ago
I'll include a "Forgot your password" link next to the "Remember me" checkbox.
Don't worry about the login link! I never actually change the link; I use a little javascript to check if someone clicks on the login link and when the link is clicked the popup login form appears.
So if someone does have an unsuccessful login or if that someone attempts to reset their password, wp-login.php will still be used.
Updated by Matt Gold over 13 years ago
Sounds great to me! Thanks, Ray. Boone, what do you think.
Updated by Raymond Hoh over 13 years ago
Add login form to adminbar:
https://github.com/castiron/cac/commit/78c99ea5fd90c845cbd805061bbf2d6ae5a133b4
Boone, I've added the javascript inline in wp_footer to save a server request. If you're not a fan of this, let me know and I'll add it to an external JS file.
The login form is basically a duplicate of the BP sidebar login form; I wish this login form was a template tag!
Updated by Raymond Hoh over 13 years ago
- Status changed from Assigned to Resolved
Updated by Boone Gorges over 13 years ago
Mighty purty.
Inline JS is fine. We're making so many HTTP requests on the front page already, it's probably good not to add anymore.