![]() |
|
Colorbox Video Problem - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: Colorbox Video Problem (/thread-11075.html) |
Colorbox Video Problem - jamesjaie - 23-05-2013 I've tried my best but I am stumped. I recently implemented colorbox into a tweaked default theme directly from album.php but I am having issues with video files. I used the guide linked in the forums found here: http://halfelf.org/2012/zenphoto-and-colorbox/ I have all images from albums loading in colorbox just as I want, except video files are not loading in colorbox. All video files are in the same folder as the image files and are not linked to a third-party site. I have tried videos in every supported format and none work. Ideally I would like the videos to load in colorbox just as images do, however it would also be fine if video files were excluded from colorbox all together. Here is what I have so far.. IN HEAD
IN BODY
I appreciate any help. Thanks! Colorbox Video Problem - acrylian - 23-05-2013 That is not possible and a colorbox limitation. To call videos you have to put them on a page and call that via the colorbox iframe mode. If I am correct at least on the Zenage theme the colorbox is disabled for non image items. Colorbox Video Problem - jamesjaie - 23-05-2013 Thanks for the reply. That's not so bad and I don't mind if videos don't show up with colorbox as long as it can be disabled for non image items as you said. I tried to adapt the code from the zenpage theme without any luck. I get a ton of errors. Any idea what part of this code I need to extract and use in my theme?
Thanks again! Colorbox Video Problem - acrylian - 23-05-2013 Well parts from all. All that needs to do is not attach the class the Colorbox triggers on on your theme to the link if you have a non image item. That is was the first if sorts out and then the result is echoed below. |