I got the lightbox2 formatting of the login working ... GREAT!! Thankyou.

thats the good news.
bad news ...

seems that it only works for registered users. I'm guessing that this is because the normally available
"request new password" and "register" links that are available if the login isnt working actually trigger links that don't include the word "login".

Is this true? Is there any way that I am missing to get these links active in the lightbox2 format of the login? If not, what is a user who doesnt remember the password ... or a new user ... supposed to do when he/she arrives at the lightbox2 takeover of the login function?

Any ideas or workarounds would help.

Is this a bug or a feature request??

Thanks

Jack

Comments

stella’s picture

Lightbox2 is only designed to work with the login form. It's not designed to show the "create account" or "request new password" forms.

Cheers,
Stella

jackspiv’s picture

Category: support » feature

Thanks for getting back so quickly,

I guess I'll change this to a feature request. The lightbox for login feature is really nice, but it seems almost useless if it takes over the login process and prevents the large number of people who forget their passwords from using the site.

stella’s picture

Status: Active » Postponed

postponed until after the next release.

wdrupal100’s picture

yes this feature would be great! in the meantime i got around the issue by adding one line to lightbox2.module on line 1454

print "<a href=\"user/register\">Create New Account</a><br><a href=\"user/password\">Request New Password</a>";

the new function looks like this...

function lightbox2_login() {
  print drupal_get_form('user_login');
  print "<a href=\"user/register\">Create New Account</a><br><a href=\"user/password\">Request New Password</a>";
  exit;
}

works great!

stella’s picture

Status: Postponed » Fixed

I've implemented a solution similar to yours, where links to "create account" and "reset password" are displayed under the login box. However, it also takes into account user settings and permissions and allows the text to be translated. The size of the login modal box has been modified to account for these changes. This will be included in the next dev release, available later today.

Cheers,
Stella

jackspiv’s picture

That's really exciting. Thanks so much for doing the work to incorporate this feature!! Awesome.

stella’s picture

Ok, just be aware that it doesn't add support for "user/register" or "user/password" links - those links are now just displayed under the login form.

jackspiv’s picture

Not sure that I'm clear on what you mean.

Do you mean that the links don't work ... that they are just displayed?

or that the pages that they take you to "break" you out of the lightbox? That is, that the lightbox functionality doesnt stay active during registration or password retrieval?

or do you mean something else?

thanks

stella’s picture

They are normal links, displayed in a lightbox. Clicking on them will bring you to the page, but will break you out of the lightbox.

stella’s picture

Released in Lightbox2 6.x-1.9 and 5.x-2.9.

Cheers,
Stella

Status: Fixed » Closed (fixed)

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