How would I go about using this to implement a modal login dialog box? I can't seem to find any documentation at all, am I missing something?

Thanks!

Comments

axlroach’s picture

Haven't tried it, but it seems like this would work:

print l("login", 'user', array('attributes' => array('class' => 'popups-form')));

Setzler’s picture

Put that in page-login.tpl.php and it did not work. Did I do something wrong?

gausarts’s picture

Category: support » feature

It's strange that we can pull all user categories forms out as a single form, even contact form, etc., but we can't get the login form to popup? Is it so by design? Well, I'd love to make it as a feature request, then. That'd be lovely.

Setzler, you have to put that anywhere you want a link to popup, mostly on node.tpl. Though page.tpl is possible, too, it depends on your need.

Thanks.

starbow’s picture

Status: Active » Fixed

Ok, I get what is going on here. The popups_get_popups() call doesn't work correctly called from the theme layer. I have updated the documentation, and added a new checkbox on the admin/settings/popups page "Scan all pages for popups links" in RC3. Checking this box should get your login box to work.

Also, use class="popups" not class="popups-form" if you want the page to reload after the user logs in.

print l("login", 'user', array('attributes' => array('class' => 'popups')));
Anonymous’s picture

Status: Fixed » Closed (fixed)

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

rajendra_banker’s picture

i want to make login dialog in popup box ?

kristen pol’s picture

Using this, my page is not reloading after login... I'm using version 1.3.
Kristen

tsi’s picture

The class should be "popups-form-reload" for the page to reload.