I noticed that swf objects overlay and hide fancy login window. This task was solved in lightbox module, so i just copied special function from there and slightly modified fancy_login.js file.

the fuction which hides < object > elements:

  // toggleSelectsFlash()
  // Hide / unhide select lists and flash objects as they appear above the
  // lightbox in some browsers.
  toggleSelectsFlash = function (state) {
    if (state == 'visible') {
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show();
    }
    else if (state == 'hide') {
      $("select:visible, embed:visible, object:visible").addClass("lightbox_hidden");
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide();
    }
  };

the code added to function fancyLogin.showLogin() after line 32:

toggleSelectsFlash('hide');

the code added to function fancyLogin.hideLogin() after if statement at line 64:

toggleSelectsFlash('visible');

modified .js attached to this issue.

Needs community review. For me it works perfectly. Hope it will be included to the next release of fancy_login.

CommentFileSizeAuthor
#1 fancy_login.js_.txt5.22 KBtntclaus

Comments

tntclaus’s picture

StatusFileSize
new5.22 KB

attachement with js code.

tntclaus’s picture

Status: Needs review » Needs work

afaic this code will work only if lighbox is installed =) so it needs work =) special css class should be written and added to fancy_login.css

smth like this:

.fancy_hidden {
display: none;
}
jaypan’s picture

I think this should be solvable by adding the param:

wmode=transparent

To your flash. If that doesn't work, let me know, and I'll put together a test environment with some flash on it and see what I can come up with.

jaypan’s picture

Status: Needs work » Postponed (maintainer needs more info)
jaypan’s picture

I've tested this a little more, and as I thought, you need to change the wmode for your flash movies. This is not something I can do from within the module.

jaypan’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)
jaypan’s picture

Status: Closed (won't fix) » Active

Actually, I may have spoken too soon. I have some ideas that may help with this.

jaypan’s picture

Status: Active » Fixed

Ideally, you should sett he wmode to transparent - this will give the login the best feel when people use it, as the site truly will dim out.

However, as this may not be possible, I have added a new setting to the settings page in version 1.5-RC1. Go to the settings page, expand the 'Display' fieldset, and add a check to the box that says 'Hide Objects' (it's at the bottom). Save this page. Now, when you try to log in, any flash should be hidden while the login box is on the screen, and shown again when the login box is closed.

I hope this helps.

Status: Fixed » Closed (fixed)

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