Hello.
I verified this with a fresh Drupal Install.
Drupal 6.26
emfield 6.x-2.6+0-dev
media_youtube 6.x-1.x-dev
cck 6.x-2.8+33-dev
colorbox 6.x-1.2+3-dev
I created a new content type with a Embedded Video field (Youtube) and Display type to Colorbox: Image Thumbnail -> full size video.
The link that shows up is:
http://test/?width=429&height=357&iframe=true (test is the name of the server).
And I guess it should be similar to:
http://test/emvideo/modal/55/640/385/field_youtubevideo/youtube/Uv6QrlHh...
I also tried with recommended releases of all modules involved with same results.
Thanks for any help that anyone could give me with this in advance!
Comments
Comment #1
scarvajal commentedI tested with media_vimeo and got exactly same results.
So looks like the problem its in emfield module.
Comment #2
Hubris-1 commentedHad the same issue. Both YouTube videos and Slideshare presentations when using Colorbox format it Views. Manually coded colorbox links work ok.
Drupal 6.26
Colorbox 6.x-1.3
Embedded Media Field 6.x-2.6
Media: YouTube 6.x-1.3
Slideshare: 6.x-1.0-Beta 04
Looked at the file: emfield\contrib\emvideo\emvideo.theme.inc and made the following change
Line 248: $destination = $item['data']['embedded_url'];
change to
Line 248: $destination .= $item['data']['embedded_url'];
That made colorbox & emvideo work for me.
-Chris
Comment #3
goldlilys commentedThanks, changing that line worked for me too. Recently updated colorbox and suddenly the video inside colorbox won't work. But normally the video file works. Wasn't colorbox fault, but this did the trick. Should be added to next release of emfield.
Comment #4
drupalfan81 commented@Hubris...THANK YOU SO MUCH! I was bashing my head into the wall all night trying to figure out what was going on. Finally found this in the morning when searching google. This fixed the issue. Such a simple fix with a critical issue, why has nobody bothered to comment on this open issue and 2.) why has the fixed not been put into the module?
I am changing this version to the recommend release production version so hopefully it will get attention as this bug made it's way from the dev version into production. Since colorbox has now gain traction and taking over in number of installs to lightbox2, I think this should be addressed asap. Hopefully the maintainers will get a chance to throw this into an update. Thanks again!
Comment #5
zerolab commentedAttaching #2 as a patch against 6.x-2.6
Tested the fix with the YouTube and Vimeo providers.
+1
Comment #6
ytsejam commentedWorks for me too. Many thanks! Hope this gets committed.
Comment #7
zerolab commentedComment #8
imclean commentedThanks, this is pretty major.
All patches should be against dev.
Comment #8.0
imclean commentedformatting
Comment #9
sheise commentedI'm having the same issue with an added twist.
As far as I can tell,
$item['data']['embedded_url']never gets set. So the entire line of code from comment #5 can be deleted.Additionally, colorbox is then loading twice, once within and on top of itself.
Patch attached for both problems.
Comment #10
zerolab commented@sheise, if you read the issue description carefully
$item['data']['embedded_url']does get set and in the mentioned case is?width=429&height=357&iframe=true. That last gives Colorbox indication on what needs to be done.So I would re-test.