Hi, will it be possible to show the "email this" page as modal popup dialog box without any blocks, site logo etc.?

Comments

jcnventura’s picture

Status: Active » Postponed

Hi,

Not for the moment. It might be an idea for the future.

João

chandrabhan’s picture

I am planning to give it a shot using lightbox2, but not sure how to close the popup automatically after the form submit.

jcnventura’s picture

Status: Postponed » Postponed (maintainer needs more info)

Hi,

I think what you need is the Popup Dialogs module (http://drupal.org/project/popups).

Give it a try, and tell me if it worked for you.

João

spiffyd’s picture

Does any one know how to configure the popup dialogs module with the email link?

I'm assuming you add the class "popups-form" to the email links. Any pointers on how to go about doing that?

jcnventura’s picture

In the advanced link settings for each of the print modules, there's a input field where you can specify which class(es) you want the link to have..

João

chandrabhan’s picture

Nope, not able to make it work with 'popups' module. The popup itself is not coming up. Looks like the js and css files that come with module are not getting included (even after calling popups_add_popups method in the pag template)

jcnventura’s picture

Project: Printer, email and PDF versions » Popups API (Ajax Dialogs) [D7]
Version: 6.x-1.0 » 6.x-1.1-beta5
Component: User interface » Miscellaneous
Category: feature » support
Status: Postponed (maintainer needs more info) » Active

Yes I also had a lot of trouble getting it to work.

However, once you do get it working it really does what you want.

I am moving this to the popup module issue queue and asking starbow what is the correct way of enabling the popups on a form: is it adding a popups class or via the hook_popups?

João

starbow’s picture

Status: Active » Fixed

This should be much easier now.
Either use the "Scan all pages" checkbox in the popups setting, and just add the 'popups-form-noreload' class to the link, or use the '*' wildcard rule in a your_module_popups hook.

For example, if you wanted to add this to the core print module

function print_popups() {
  return array('*' => array('a.print-mail'=>array('noReload'=>TRUE)));
}
jcnventura’s picture

Thanks!

I already allow the site admin to set a class for the link, so I will be recommending that one.

João

chandrabhan’s picture

Working fine for me. thanks a lot guys.

spiffyd’s picture

@starblow, can you clarify where you added the php print_popups function?

starbow’s picture

That function would go in the print.module. A cleaner solution would be to put it in your own module:

function yourmodule_popups() {
  return array('*' => array('a.print-mail'=>array('noReload'=>TRUE)));
}
spiffyd’s picture

Any suggestions on what's the easiest way to enable popup modal dialogue support for the Contact form (from the core contact module) when clicked from a primary link?

starbow’s picture

wrong issue queue for new requests.

chandrabhan’s picture

I thing though regarding the 'email' popup. When I click cancel in the popup, the window does not get closed and the resulting page is shown within the popup only. What do I need to do so that the window closes automatically? The class that I am using for the email link is "popups-form-noreload".

starbow’s picture

chandrabhan’s picture

Thanks. It is working in RC7. I also liked the way you are shwing any error message in the popup.

Status: Fixed » Closed (fixed)

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

spiffyd’s picture

Does someone have a link to a demo of how email modal popups look like?

beckyjohnson’s picture

Version: 6.x-1.1-beta5 » 6.x-2.0-alpha6

I can't get this to work with 6.x-2.0-alpha6. I am using the right class and putting it in the right area. I also scanned pages for popups too. No dice, is anyone else having this issue?