I made some dirty improvements, because I wanted to use “alttext” and link to a page at the same time.
Enter your alternative text and URL separated by the “#” character.
Replace the mentioned lines in gallery-copy.php to
<?php $a = explode("#", $image->alttext, 2);
if (empty($a[1])) { ?>
<a href="<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
<?php } else { ?>
<a href="<?php echo $a[1] ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
<?php } ?>
<?php if ( !$image->hidden ) { ?>
<img title="<?php echo $a[0] ?>" alt="<?php echo $a[0] ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
<?php } ?>
</a>
Besides the nggallery short code, you can also insert [album id=2 template=extend] to be able to navigate in an album. For this in nggfunctions.php->function nggShowAlbum you can change the line
$out = nggShowGallery( intval($gallery) );
to
$out = nggShowGallery( intval($gallery), 'copy' );
to hardcode the usage of the gallery-copy.php template.
Great hack! Thanks a lot, you saved my day!