Closed (fixed)
Project:
Colorbox
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2011 at 23:38 UTC
Updated:
21 Jan 2016 at 10:29 UTC
Jump to comment: Most recent
Comments
Comment #1
bryancasler commentedsame question. I tried the following based off the demo on the colorbox website
But it did not work.
Comment #2
chaloum commentedAnimelion
Dont follow the documentation as it has nothing to do this the way colorbox works in the Drupal Colorbox module. the documentation is straight from the actual colorbox site.
I think the class should read class="colorbox-load" or class="colorbox-inline"
Comment #3
bryancasler commentedThanks chaloum, I just tried all three of the following but I couldn't get any of them to work
The first one blacks out the whole screen and the second and third give me this error.
http://awesomescreenshot.com/063bddjbe
Comment #4
patrickfgoddard commentedIf you are manually just inserting html into a body field of a node, try just class="colorbox-inline". Works for me, though, I can't seem to set the title correctly in the overlay.
Comment #5
bryancasler commentedThanks for the reply thund3rbox, but if I use
The output is
and I still end up with the same "Request unsuccessful:" error.
http://awesomescreenshot.com/063bddjbe
Comment #6
bryancasler commentedFound a work around for now.
Add the following JS to your theme
Add the ".colorbox-youtube" class to your links.
ex.
Comment #7
drgrittani commentedThe following works for me.
example page is at http://kendragrittani.com/video
you also need to make sure you go into the Colorbox module configuration page and check the extra settings boxes "Enable Colorbox load" and "Enable Colorbox Inline".
Comment #8
bryancasler commentedStrange, that works for me.
How did you generate that code, or did you have to construct it manually?
Comment #9
midmood commentedI'm interested too, I tried the #7 link and it works.
Trying to manipulate it with my links stops it from working.
How can you build it?
Comment #10
tommy kaneko commentedI have made a patch for 7.x Video module which allows you to use Flowplayer with colorbox. It doesn't do any other player at the moment, but I hope someone with more time than I have could adapt the patch to accept other videos - most of the work is done, I think.
The patch for the Video module can be found here:
http://drupal.org/node/1155628
Comment #13
bryancasler commentedCheckout my recent post regarding embedding youtube videos. Feedback welcome.
#1368274: Solved: How to embed Youtube videos
Comment #14
eduserrat commentedComment #15
eduserrat commentedThanks ! It worked for me ! ;)
Comment #22
lsolesen commentedSeems to be resolved.
Comment #25
freebug commentedI have been able to play local video files by embedding the flowplayer by the following way:
Hope this helps someone.
Comment #26
jim.applebee commentedFreebug, I'm having a hard time getting this to work for me. Can you provide more details? How/where did you load that code?
I'm trying to load/run locally hosted mp4 videos from a hyperlink. Not Youtube video.
Comment #31
rastikko commentedI'm using this little piece of javascript to grab the id of the video and create an iframe in colorbox
Then just add a link in this format
<a href="http://www.youtube.com/watch?v=iCkYw3cRwLo&feature=youtu.be" class="video_youtube">Click to be cool</a>I guess that can be optimized with a drupal behaviour
Comment #32
mrpauldriver commentedI am using the method mentioned at #7 but find that this approach does not work on iPad or Android.
Any ideas out there?
Comment #33
wellsys_world commented@MrPaulDriver same issue for me. Did you find out what was causing it?
Comment #34
mrpauldriver commented@Wellsy Sorry no.
I couldn't figure it out and ended up using a workaround based on the Media module in conjunction the Media Gallery module. The site in question was already making extensive use of these so I was able to get sorted without carrying any additional overhead.
See www.redlobstermedia.com (home page)
Comment #35
wellsys_world commented@MrPaulDriver - OK, thanks.
I ended up hard coding it as a quick fix to use inline iframes which worked - www.livewellderby.co.uk
Comment #36
jordiespuny commented#31 works form mi on iPad
thanks
Comment #37
knalstaaf commentedIf you'd like to combine this with views, it's worth considering to use a link field for this purpose (how-to). This approach isn't limited to just one particular video platform (like YouTube).