User Sign-in/ Register
aerodog - June 2, 2008 - 00:21
| Project: | Lightbox2 |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hello!
Great module!
I need to integrate the drupal register/signup (and perhaps log in) capabilities with the lightbox module. Since Lightbox seems only to take in html, I was wondering how I could integrate the two so that one could sign up, with captchas, where the submit button would close the box and take one back to where they came from.
Any and all help is tremendously appreciated!
-aerodog

#1
I've added functionality to the lightbox2 module so users can now log on to the site through a lightbox. If the option on the general settings page is enabled, then all "user/login" links will be re-written so that they will open in a lightbox. The login form is loaded as a modal/inline content so when the user submits the form, the entire page will change.
Unfortunately I haven't found a good method for doing the same for registration links. I tried using a modal/inline type setup but it wasn't suitable because the registration form can vary in length depending on the number of contrib modules that modify it. Those same contrib modules may also require javascript to be added to the page (e.g avatar selection module is one example) but since the js needs to be added at page generation time (i.e. before lightbox is triggered), there's no easy way of doing that.
The alternative solution was to load the registration form in an iframe - just add
rel="lightframe"to the registration links. The form could be easily themed for opening in a lightbox but the problem is that when the user submits the form the lightbox won't close. If you wanted to you could add awindow.parent.Lightbox.end()onclick event to the submit button, which would close the lightbox, but if the form validation failed the user would never know.Cheers,
Stella
#2
Released in Lightbox2 5.x-2.8 and 6.x-1.8.
Cheers,
Stella
#3
Automatically closed -- issue fixed for two weeks with no activity.
#4
Hi Stella,
Have any new developments since July made Lightbox registration more likely?
Not sure about the JS problem, but about loading as modal/inline content, perhaps the height could resize to fit the screen (and just use a scroll bar)?
It would also be great to do the same with user/password ;)
Thanks in advance for your thoughts on this,
Scott
#5
The loading modal content and having a scrollbar issue is fixed in the dev release.
Postponing registration feature request until after next release, will access then.
#6
Actually this last request is a duplicate of #312886: Lightbox2 login only for registered users?.
Moving this back to fixed as was the status of the original issue.
#7
Automatically closed -- issue fixed for two weeks with no activity.
#8
Has anybody tried to login but deliberately not do it correctly? It send you to this url /user/login/lightbox2?destination=
It looks like the attached image.
In addition to that, if the contact page has recaptcha installed it starts to load the module then turns the browser blank and trys to reload.
Anybody else having these issues?
#9
That's already been raised in #356834: Introduced bug in Lightbox2 login?. Closing this issue once more.