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

Comments

stella’s picture

Status: Active » Fixed

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 a window.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

stella’s picture

Released in Lightbox2 5.x-2.8 and 6.x-1.8.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

scottrigby’s picture

Version: 5.x-2.7 » 6.x-1.x-dev
Status: Closed (fixed) » Active

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

stella’s picture

Category: support » feature
Status: Active » Postponed

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.

stella’s picture

Status: Postponed » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

hankpalan.com’s picture

Status: Closed (fixed) » Active
StatusFileSize
new25.25 KB

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?

stella’s picture

Status: Active » Closed (fixed)

That's already been raised in #356834: Introduced bug in Lightbox2 login?. Closing this issue once more.

krishna_softprodigy’s picture

StatusFileSize
new24.27 KB

HI,

I have created a custom module for users login & registration in Drupal 6X using light box.

The developer can use the module to accomplish the requirement of light box login & registration.

The JS,CSS, templates files, & Zipped module code will be provided.

Thanks

doublejosh’s picture

koushal’s picture

Priority: Normal » Critical
StatusFileSize
new97.89 KB

I am using ajax login- register module, its working fine , but when I am trying to create user through admin panel its showing errror, "Ajax.moudle:An unknown ajax error occurred".

Please see the snapshot.

Joyy’s picture

Status: Closed (fixed) » Active

Hi,
Any chance of porting the code in [#10] into the Lightbox2 module?
Or is there a better way to accomplish User register form in a lightbox / ajax?

Regards,
Joyy

  • stella committed aca425b on 8.x-1.x
    #265422 - added in support for modal/inline content and logging in...

  • stella committed aca425b on 7.x-2.x
    #265422 - added in support for modal/inline content and logging in...
joseph.olstad’s picture

Version: 6.x-1.x-dev » 7.x-2.0
Issue summary: View changes
Status: Active » Fixed

fixed in 7.x-2.0
if you want this fix then please upgrade to 7.x-2.0

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.