Hello!

I'm using LightBox2 at my website to provide login box appearance.

Everything is OK, but when login form appears in [lightmodal] window, I don't see any button or link to close LightBox and cancel logging in.

It seems strange, because some users can not understand to click in any area around the form to close LB.

Esc botton doesn't work too (IE7, FF3 & Chrome tested).

Please help how to add this function.

Regars, Andrey.

CommentFileSizeAuthor
#2 lb2-18-dev.png137.53 KBMojo

Comments

stella’s picture

Category: feature » support

Can you try the latest dev release to see if that fixes the problem?

Cheers,
Stella

Mojo’s picture

StatusFileSize
new137.53 KB

Yes, now it seems like everithing is OK.

Some more bugs: LightBox window closes only if you click below or above it (see screenshot for details).

Thanks a lot fo support!

Regards, Andrey.

Mojo’s picture

By the way, Esc button still not works in login window ;-)

stella’s picture

Status: Active » Fixed

That's by design. Keyboard shortcuts can't be supported as sometimes lightmodals contain forms (e.g. login form). For example, if the keys to close the lightbox were 'c' and 'x' and their username was 'nickname', then the lightbox would close as they typed in the 'c'.

Likewise the disabling of the clicking on the overlay, either side of the modal window, to close the lightbox is also disabled, for similar reasons.

You'll find that both of these features work as expected when disabling images, videos, etc.

Cheers,
Stella

Status: Fixed » Closed (fixed)

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

ajlowndes’s picture

how did you get the login box to work using lightmodal? I have been working on this for days, but I can't figure it out from the (ONE) example given in the lightbox readme. In stella's example she references "search.php". what is in this file? what would be in a similar "login.php"?

stella’s picture

@ajlowndes: please open a separate support request for your issue. This ticket is now closed. In the example, "search.php" is just an example. If you want the Drupal login box to open in a lightmodal then please enable the option on admin/settings/lightbox2. Note it will only work with links like 'user/login' and not those like 'user'.

scott_earnest’s picture

(I know this ticket is closed, but this information may help someone)

This work for me with lightmodal:

<a href="javascript:void(null);" onclick="javascript:Lightbox.end('forceClose');">Close Lightbox.</a>