$image object
-
I’ve been trying to get nextgen gallery to do a couple of things it doesn’t do “out of the box”:
1)Link gallery thumbnails to their own page with the full image on, and
2)Integrate a hover zoom effect onto that target page.I thought I had suceeded, by tweaking the “imagebrowser.php” file ( actually a copy of it in it’s own nggallery folder in my theme folder) and using “NextEnd image magnifier” plugin.
All seemed well until I put more than 1 gallery on a page!
Now
$image-imageURLreturns multiple urls – one for each gallery!
Is there some way to “reset” the $image object so that it contains only the url of the image that gets clicked on?The “hack” I’ve used is to create the following code for imagebrowser.php:
<?php $title = $image->alttext; $description = $image->description; $image_url = $image->imageURL; echo do_shortcode('[magny image="'.$image_url.'" title="" description="" align="left" click="1" scroll_zoom="1" small_image="" canvas_mode="1" maxwidth="400px" zoom="1" dia="140px" skin="new-im-frame-photo,new-title-below,new-description-off,new-slider-below,new-im-magnifier-light" ]'); ?> <div id="single_pic_in_ng_imagebrowser"> <h1 class="title"><?php echo $title ?></h1> <div class="description"><?php echo $description ?></div> </div>I’m guessing the problem could be with the facr that I’m using the imagebrowser to display my single final image. Seemed like a good idea at the time…
Any suggestions much appreciated.
The topic ‘$image object’ is closed to new replies.