Right, I’ve been tearing my hair out, and have come up with a solution (and am now bald).
I installed the Custom Fields plugin, and entered a Link attribute to each and every image to tell it what album/gallery it was in.
I then hacked the nextgen-gallery/widgets/widgets.php page a little, replacing $image->imageURL in the anchor tag href for the following on line 319:
$out = ‘pid, “Link”) . ‘?pid=’.$image->pid . ‘” title=”‘ . $description . ‘” ‘ . $thumbcode .’>’;
That seemed to do the trick.
I also edited nextgen-gallery/view/singlepic.php to link to the image page, by replacing line 22 with this:
ngg_custom_fields[“Link”] . ‘?pid=’.$image->pid ?>” title=”<?php echo $image->linktitle ?>” <?php echo $image->thumbcode ?> >
Soooo hopefully there should be no links directly to the image now.
If there are please let me know, as image theft is rife on the web, so I wouldn’t want to make it easier for folk to nick my work.
Enought prattle now. Bye!