Title: $image object
Last modified: August 21, 2016

---

# $image object

 *  [Robin73](https://wordpress.org/support/users/robin73/)
 * (@robin73)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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-imageURL` returns 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.
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

The topic ‘$image object’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)

 * 0 replies
 * 1 participant
 * Last reply from: [Robin73](https://wordpress.org/support/users/robin73/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/image-object/)
 * Status: not resolved