In the latest version of Acidfree Albums (6.x-1.x-dev) and Lightbox2, videos stored in an acidfree album, when clicked, pop a lightbox iframe to the video node, instead of a lightbox containing just the flash player and video from the node.

Comments

bkat’s picture

I'm seeing this also.

bkat’s picture

I've done some digging around in this and have a pretty good idea what is going on:

1. auto_image_handling.js adds /lightframevideo to the acidfree url. However, these URL's have a GET argument in the album list to identify the page. e.g http://site/node/123?pid=2 if its on page 2. This means that lightbox2 rewrites the url as http://site/node/123?pid=2/lightframevideo. So it never sees the /lightframevideo as part of the path.

I tweaked lightbox2_init_acidfree_video() do delete everything from the '?' to the end before adding the "/lightframevideo"

2. Now that we have the URL fixed, we'll find that we're getting 404's when trying to access the */lightframevideo URLs. This occurs in lightbox2.module in the lightbox2_menu() function.

it defines the following:

  if (module_exists('acidfree') && module_exists('video')) {
    $items['node/%nid/lightframevideo'] = array(
      'page callback' => 'lightbox2_acidfree_video',
      'page arguments' => array(1),
      'access callback' => 'user_access',
      'access arguments' => array('play video'),
      'type' => MENU_CALLBACK,
    );
  }

I think the problem here is that there is no nid_load() function defined anywhere so it should just be $items['node/%/lightframevideo'] = ...

3. With those two changes, clicking on a video thumbnail in an acidfree album will display the video in the lightbox except for when the video node has a URL alias defined. In those cases drupal is not mapping http://site/path/lightframevideo to the menu item set up above. It's returning HTTP 404.

I don't know enough about URL aliases and menus to have an instant idea what is going on there but I'll keep researching.

Does anyone else have any suggestions?

magoo.sk’s picture

Hi,

I have the same problem. Everything related to Acidfree and Lightbox2 works perfect except of this one feature. When I click on video in album, it does not open lightvideo, i.e. lightbox with video inside, but instead it opens lightframe with the whole webpage.

Any workaround?

THX

magoo.sk’s picture

Status: Active » Needs work

Is there any chance to fix this? Or could it be at least marked as postponed or something so that we know, that there is some problem to fix it?

Thanks a lot.

stella’s picture

Status: Needs work » Active
stella’s picture

Status: Active » Postponed (maintainer needs more info)

I'll consider patches for comment #2, however it is by design that it opens in a lightframe rather than a lightvideo. It does the same thing for the emfield videos too.

magoo.sk’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

As the Acidfree module is currently maintained again (thanks to mwheinz), I am testing its integration with the Video module and Lightbox2 module. (I am using Video 6.x-4.x i.e. the newest one based on CCK and Fieldfield which works correctly with Acidfree.)

Lightbox on Video opened from Acidfree gallery still does not work correctly. It opens the lightbox, but it is empty (empty white frame).

Here is the code I have found using "Inspect element" in Chrome:

<iframe id="lightboxFrame" style="z-index: 10500; " src="http://test1.magoo.sk/node/11/lightframevideo" width="600" height="400" scrolling="auto"></iframe>

If someone can look at this issue, you can look at it here: http://test1.magoo.sk -> Gallery -> Fractal movie 02.

EDIT 1: (Obsolete, see EDIT 2) The information I wrote above is only true in Chrome! Behavior is different in IE and FF!

EDIT 2: Another finding: The behavior does not depend on browser, but depends on permissions. Admin does see empty white frame as I wrote above. Any other authenticated or anonymous user does see frame containing page saying "Access denied. You are not authorized to access this page."