I changed imagebrowser.php original
<div class="pic"> in order to:
1. Remove Link to file;
2. Upon click, Image links back to gallery.
I have it like this:
<div class="pic"><a href="<?php echo "?album=3&gallery=". $image->galleryid ."&nggpage=". ceil($image->number/9) ?>"> <img src="<?php echo $image->imageURL ?>" /></a></div>
(thanks to kasxx)
Now, that I activated NextGen Permalinks, the image link back to gallery stopped working. Take a look here:
Anyone can help with a fix?
How to have the image link back to gallery thumbs. with permalink structure on NextGen?