Just wondering if there are plans to add support for overlay modules such as shadowbox?

CommentFileSizeAuthor
#8 media-integration-1262794-8.patch1.43 KBjoelstein

Comments

erikwebb’s picture

Title: Shadowbox/overlay integration » Media integration
Project: D7 Media » Shadowbox
Version: 7.x-1.0-beta5 » 7.x-3.0-beta6
Component: User interface » Code
Priority: Minor » Normal

This should be required for the Shadowbox formatter to support the media field type. Media is only handling the storage and basic presentation. In fact I believe File Entity is actually what Shadowbox needs to integrate with, not Media at all.

manfer’s picture

Assigned: Unassigned » manfer

I have released a new 7.x-4.x-beta1 version that has moved shadowbox image field format to a new module and has added a new shadowbox file field format.

It does not require Media module because file field is included in drupal core but can be used in combination with Media if you want to use media module as widget for the file field.

It supports all image and video formats that can be rendered with shadowbox. For videos that would be: wmv, mov, swf, flv, and for www videos it supports youtube and vimeo. I don't know if there are more modules that allow to upload this kind of videos (youtube and vimeo), but the once I tried and work fine were Media: youtube and Media: Vimeo. Those ones store the file with the corresponding mime, video/youtube and video/vimeo and the video ID as the filename. If there is any other module that store those files with those two characteristics will work fine either.

Images, youtube and vimeo videos are shown with a thumbnail linked to the corresponding image or video. Any other file will be shown as an icon linked to the corresponding file. The format can be configured to show icons in all cases included images, youtube and vimeo. If you upload any other file not supported by shadowbox then it will be rendered as a generic file icon linked to the file.

If anyone tries it please read UPDATE.txt as there is not automatic upgrade path from 7.x-3.x version to 7.x-4.x version but the manual upgrade is not difficult at all.

manfer’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

LeviThomason’s picture

I have done the 7.x-4.x update and installed the modules as you outlined (went smoothly btw, thanks). I am trying to display a YouTube thumbnail preview which opens in shadowbox and autoplays.

When you say "Images, youtube and vimeo videos are shown with a thumbnail linked to the corresponding image or video." What is providing the thumbnail and the link? Currently, I have a "video" content type with a Media file using Media: YouTube. All of Media's display format options are working correctly both when viewing the node directly and in a View. However, I cannot figure out how to link this field to shadowbox.

Thanks in advance!!!

P.S. My images are working great in shadowbox via the automatic options ;-)

UPDATE:
1. install or upgrade to shadowbox 7.x-4.xbeta4: http://drupal.org/project/shadowbox
2. enable "Shadowbox: File formatter" in modules list
3. install this patch: http://drupal.org/node/1490082#comment-5753712

File field display settings, change the formatter to "shadowbox", choose settings, and enjoy.

nodecode’s picture

Version: 7.x-3.0-beta6 » 7.x-4.x-dev
Status: Closed (fixed) » Active

The instructions in #5 are not working for me with VIMEO videos. Using latest 7.x-4.x-dev I get the following message:

Warning: file_get_contents(http://vimeo.com/api/v2/video/MAN.php) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in _get_vimeo_thumbnail() (line 377 of /home/mysite/sites/all/modules/shadowbox/file_shadowbox/file_shadowbox.module).

I've tried several videos (the error above is for http://vimeo.com/56093731). On line 263 of file_shadowbox.module I think the module is trying to grab the Video Title and not the Video ID. Right?

YouTube works fine, however, the thumbnail images are unprocessed (they're not using the image style I selected in the display settings) but that doesn't look like it's implemented yet anyway.

I would absolutely love to see this module be able to successfully handle videos as well as it does images because I use Colorbox now and Colorbox sucks. Please let me know if I can help test anything.

nodecode’s picture

Category: feature » bug
joelstein’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

I was having the problem where the YouTube thumbnail was not using the image style I selected. Here's a patch which fixes this for Media YouTube and Media Vimeo installations. It will properly grab the thumbnail using their media wrappers (so that the images aren't coming down from YouTube and Vimeo all the time), and this gives us the added ability to the use the selected image styles.

manfer’s picture

Status: Needs review » Fixed

This last patch that makes use of local thumbnails have been pushed and the issue with media vimeo videos shadowbox output have been fixed on 7.x-4.x-dev version.

Status: Fixed » Closed (fixed)

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