micasuh
Member
Posted 5 months ago #
NextGEN is a great gallery plugin for Wordpress, and I am especially impressed with the built-in support for Cooliris or PicLens as it's called on there.
When I click on any of the photos, I get a thickbox view. I know how to switch it so that it shows no thickbox or other js plugin as well.
What I'm interested in doing is clicking on a photo and having that photo show immediately in PicLens viewer. Is this possible?
sampep
Member
Posted 5 months ago #
I am looking for the same fonction!!
Im not sure if it is possible ATM, but it would be just the perfect setup...
Sam
micasuh
Member
Posted 4 months ago #
I guess the lack of replies means no one knows anything. Darn!
I find out the way to use PicLens by default.
You need to modify the file gallery.php (plugin/nextgen-gallery/view/gallery.php) and put this code <?php echo $gallery->piclens_link ?> in the href of the thumbnails link
<!-- Thumbnails -->
<?php foreach ($images as $image) : ?>
<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $gallery->imagewidth ?> >
<div class="ngg-gallery-thumbnail" >
<a href="<?php echo $gallery->piclens_link ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
</a>
</div>
</div>
<?php if ( $gallery->columns > 0 && ++$i % $gallery->columns == 0 ) { ?>
<br style="clear: both" />
<?php } ?>
<?php endforeach; ?>
Nice, but every time NextGen is updated this functionality will be lost. Is there a way to do this using the functions.php file? Otherwise, it'll get lost in all the updating.