Solved. This was a conflict with the Lightview Plus plugin.
@catohcat you can set up something like this using s2member.
Using the s2 shortcodes you can create a link to a page with the username and it would be protected for only them to see. A bit tricky but can be done.
After uploading images for the page via the media uploader I click ‘gallery’ and at the bottom of that page I have ‘Link thumbnails to:’ with radio buttons that say ‘Image File’ or ‘Attachment Page’.
Here’s a screenshot of the feature: http://kenduret.com/wp-content/uploads/2011/04/gallery.jpg
I’ve used this many times in the past and now after the upgrade to 3.1.1 it’s broken.