OK,
I have successfully created a test gallery using the Thickbox script and it does not conflict with the jQuery nav system I am using.
I am attempting to create another test gallery using the Fancybox script (see:
http://fancy.klade.lv/). AFAIK, to use this script you need the noConflict addition to get the jQuery to behave with the Mootools system. I think I got this part to work. After trying a couple of changes I can now click on the new Fancybox gallery items and not get the jQuery conflict. But the Fancybox is not activating. When I click on the thumbnails the full size images appear in a blank window.
* I created a new template using the Fancybox script
* I added the Fancybox CSS to my template CSS file.
* I added all the Fancybox images to my template images folder.
* I added the Fancybox js to my template js folder.
I am using the following in the head of the Fancybox gallery template:
<script src="assets/templates/phototest/jq/jquery-1.2.6.js" type="text/javascript"></script>
<! nav javascript starts here! >
<script>
jQuery(function() {
// set opacity to nill on page load
jQuery("ul#topnav span").css("opacity","0");
// on mouse over
jQuery("ul#topnav span").hover(function () {
// animate opacity to full
jQuery(this).stop().animate({
opacity: 1
}, 'slow');
},
// on mouse out
function () {
// animate opacity to nill
jQuery(this).stop().animate({
opacity: 0
}, 'slow');
});
});
</script>
<! nav javascript ends !>
<script type="text/javascript" src="assets/templates/phototest/js/jquery.fancybox.js"></script>
<script type="text/javascript" src="assets/templates/phototest/js/jquery.pngFix.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
$(document).pngFix();
$(div.image_thumb a").fancybox({ 'hideOnContentClick': true });
});
</script>
The call I am using on this test page is the following: [!MaxiGallery? &galleryPictureTpl=`mg_fancybox_galleryPictureTpl` &pics_in_a_row=`3` &max_thumb_size=`110` &max_pic_size=`0` &thumb_use_dropshadow=`1`!
I have a chunk called mg_fancybox_galleryPictureTpl with the following code:
<li>
<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="fancybox" rel="gallery">
<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+]
[+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
</a>
[+maxigallery.picture.title:isnot=``:then=`
<p style="width: [+maxigallery.picture_width_thumb+]px;">
[+maxigallery.picture.title:htmlent+]
</p>
`+]
</li>
Again, I know I am missing something? I am using the same kind of chunk and call that I am using with the Thickbox script. The test images I uploaded into this test gallery with the Maxigallery function are all there with no problems. The problem is that clicking on the thumbnails will open the full size images in a blank window instead of with the Fancybox effects...
Thanks!
Max