• Hello,

    I would like to customize the display effect of my gallery by having one large image always displaying, and thumbnails below it – when you hover over OR click (either would be OK) a thumbnail, the large image would change to that image. By default, the first image in the gallery would be the first one to display.

    Is this possible? Does anyone know where I could find custom code or a plug-in to make this work?

    Thanks in advance!
    Raeanne

Viewing 3 replies - 1 through 3 (of 3 total)
  • athenagold,
    did you find a solution? Please share, I would really want this for my blog!
    If anyone knows of such a plugin or even just a code to paste in the template, I would be really grateful!
    Thanks.

    Hello,
    here is how I do it:
    1. Go into nggfunctions.php in the nextgen-gallery plugin folder
    2. Go to line 229 (or there abouts). You want function nggShowGallery($galleryID).
    3. Look for “//1st look for ImageBrowser link” and put “//” in front of every line in that bit. Like so:

    // 1st look for ImageBrowser link
    //		if (!empty( $pid))  {
    //			$out = nggShowImageBrowser($galleryID);
    //			return $out;
    //		}

    4. Save the file.
    5. In your template put the following: `
    <?php
    $pixGallery = ‘[gallery=123]’;
    $pixGallery = apply_filters(‘the_content’, $pixGallery );
    echo $pixGallery;
    if ( function_exists(“nggShowImageBrowser”) ) {
    echo nggShowImageBrowser(123); } ?>
    `
    6. Mess about with CSS to get it all looking the way you want it to look.

    Have fun with it.

    cam_r_on

    (@cam_r_on)

    Thanks for this bit of code. However, I am unable to get an image selected from $pixGallery to display in the nggShowImageBrowser portion. Is there something I’ve missed? Instead, the images is opened in the shutter/lightbox/thickbox manner.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] Custom Effect – Swap Image?’ is closed to new replies.