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!
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
Comment #1
axlroach commentedHaven't tried it, but it seems like this would work:
print l("login", 'user', array('attributes' => array('class' => 'popups-form')));
Comment #2
Setzler commentedPut that in page-login.tpl.php and it did not work. Did I do something wrong?
Comment #3
gausarts commentedIt'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.
Comment #4
starbow commentedOk, 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.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
rajendra_banker commentedi want to make login dialog in popup box ?
Comment #7
kristen polUsing this, my page is not reloading after login... I'm using version 1.3.
Kristen
Comment #8
tsi commentedThe class should be "popups-form-reload" for the page to reload.