This is a correction/improvement on my earlier patch in http://drupal.org/node/774422 that has been committed.

With this patch width and height is set correctly and Colorbox is told to use the iframe mode.

The colorbox-load functionality needs to be activated in the Colorbox settings. Maybe this should be added to the README and/or add this setting somewhere on the Embedded Media Field settings pages.

A tips to the module maintainer is to make it possible to set $attributes and $destination in the "theme_emvideo_*box" functions so theme_emvideo_modal_generic can be made cleaner.

Comments

alex ua’s picture

Status: Needs review » Closed (fixed)

Thanks- I've committed this patch.

jcmarco’s picture

Status: Closed (fixed) » Needs work

PHP Parse error: parse error in xxxxxxxxxxxxx\sites\all\modules\emfield\contrib\emvideo\emvideo.theme.inc on line 245

In line 245: the + was lost in the commit.

frjo’s picture

Status: Fixed » Needs review
StatusFileSize
new1.25 KB

Improved patch that works well with Vimeo as well.

alex ua’s picture

Status: Needs work » Fixed

Sorry about that, not really sure how I did that... Anyway, I corrected it...

frjo’s picture

StatusFileSize
new866 bytes

Minor fix for Vimeo videos, height and width adjustments only.

This was also in patch #3 but I posted that one to late, and in the wrong language :-).

Sorry for the hassle.

aaron’s picture

Status: Needs review » Fixed

got it, thanks @frjo!

Status: Fixed » Closed (fixed)

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