Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

jamesjaie on "Colorbox Video Problem"

$
0
0

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
<script type="text/javascript">
// <!-- <![CDATA[
$(document).ready(function(){
$(".colorbox").colorbox({inline:true, load:true, href:"#imagethumb"});
$("a[rel='showcase']").colorbox({maxHeight:"100%" });});
// ]]> -->
</script>
IN BODY
<div id="images">
<?php while (next_image()): ?>
<div class="image"><div class="imagethumb">
" rel="showcase" title="<?php echo getBareImageTitle();?>"><?php printImageThumb(getAnnotatedImageTitle()); ?>
</div></div>
<?php endwhile; ?>
</div>

I appreciate any help. Thanks!


Viewing all articles
Browse latest Browse all 2917

Trending Articles