Nextgen Imagebrowser back to gallery link (2 posts)

  1. ColourPainter
    Posted 5 years ago #

    Hi all.

    I've looked everywhere and can't seem to find a solution to this. I'm at my wits end :( can you help?

    How can i add a link back to the main gallery from imagebrowser (In nextgen gallery)? The previous and next links just browse the images so there is no way back to the main gallery you came from. I can see people have asked this before but theres never been a resolution. Wouldn't it just be a case of echoing and linking the nggallery ID. Does anyone know how to do this? Javascript -1 doesn't work either (and its probably not a good idea anyway) If there are any coders out there I can sling you a few bob! :) .. It doesn't look like this is going to be implemented soon on the plugin itself because people have been asking for a while as far as i can see.

    Please help someone!



  2. Hélio Cristóvão
    Posted 5 years ago #

    Hi, try to add this code in imagebrowser.php file, below the <div class="pic"> (........) </div>

    <div class="uptothumbs">
    <a title="This is a new feature that will return you to the correct thumbnail page if you have been browsing through a large number of images on this page" href="<?php echo "?nggpage=". ceil($image->number/12) ?>"> Up to Gallery</a>

    From this other topic:

Topic Closed

This topic has been closed to new replies.

About this Topic