http://drupal.org/project/popups

How would I make the map pin "go to the node" but use the Popups module?

Comments

Setzler’s picture

Anyone? Not even a comment?

ari-meetai’s picture

I'm looking for the same. I've been using Lightbox2 (previously was using Thickbox) for the rest of the site's content, but it doesn't seem to work.

I've added [field_surname_value], [field_name_value] to the view's field's rewrite, but it doesn't work, just opens the user profile, refreshing the whole page..

still looking...

kvvnn’s picture

Subscribing,

j0k3z’s picture

Subscribing

ari-meetai’s picture

Status: Active » Fixed

OK, did this using Lightbox2 and a using it's own javascript on the 'onclick'. I can post more details, if interested.

Cheers.

kvvnn’s picture

Arielon, please post more details.

Did you add a custom link as a Gmap field with an "onclick" attribute?

Status: Fixed » Closed (fixed)

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

kvvnn’s picture

Status: Closed (fixed) » Active
kvvnn’s picture

This issue seems to be caused by the following logical *unverified* conclusion :

1) Once a Gmap is loaded, popups_add_popups() (the function that turns a normal link into a popup link) is finished scanning for classes of "popups"

It should follow that the issue can be solved by a workaround, by calling popups_add_popups() manually after the Gmap is loaded.

Keep in mind from README.TXT

IMPORTANT: You can only put popups_add_popups in module, NOT in a .tpl file or the template.php file

...which makes this task all the more difficult, since we can't just comfortably throw a function into a theme override for a GMap

I'll be making this work by Friday, Sep 11. I will post back. Wish me luck (and not too much $$$ spent) :)

zerolab’s picture

/**
 * Popups API hook_popups implementation
 * includes additional js required by gmap to load in the popup
 *
 */

function mymodyle_popups() {
  if (function_exists('_gmap_doheader')) {  
    _gmap_doheader();
    $path = drupal_get_path('module', 'gmap').'/js/';
    drupal_add_js($path .'locpick.js', 'module', 'header', false, true, false);
    unset($path);
  }
}

This is the code I am using on a site that uses the Popups module to add nodes through a popup.
It works great in Firefox and Opera, but there are some issues in Safari/Chrome (WebKit), which I suspect have to do more with the popups module than anything else.

balapalanisamy’s picture

But the node location information bubble is not showing in the popups. Is the any solution or patch available for the same.

johnv’s picture

Status: Active » Closed (won't fix)

Closing this very old issue. Please reopen if it is still valid.