Forums

Nextgen Gallery Lightbox not working (1 post)

  1. dsmartdesign
    Member
    Posted 1 year ago #

    Hey everyone! Just updated my wordpress to version 305 and updated my nexgen gallery to the most current version. I guess I shouldn't have, because now all of my linked thumbnails (the hack i used on nextgen to link each thumbnail to a certain page) had to be re-done. The home page thumbnails link correctly to their pages, but now my other galleries in which I want Lightbox to show my photos is not loading when clicked. Here is the hack I used to link my homepage thumbnail pics:

    in the nextgen-gallery/view/gallery.php file, I changed this:
    <div class="ngg-gallery-thumbnail" >
    imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    <?php if ( !$image->hidden ) { ?>
    <img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    <?php } ?>

    </div>

    To this:

    <div class="ngg-gallery-thumbnail" >
    ngg_custom_fields["Link"]; ?>"
    <?php echo $image->thumbcode ?> >
    <img title="<?php echo $image->alttext ?>"
    alt="<?php echo $image->alttext ?>" src="<?php echo $image->
    thumbnailURL ?>"
    <?php echo $image->size ?> />

    </div>

    I changed nothing else, and the lightbox worked fine with no hack, but the linked thumbnails did not. If anyone could offer any advice or know how to fix this, I would love you!

    The URL to my site is http://www.flipuptees.com and the galleries I'm having trouble with lightbox is under the "galleries" page. Thank you!

    -Derek

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags