Closed rekliner closed 11 years ago
In playing around with it for a bit I was able to achieve partial success by adding in the following lines to shashin.js at about line 190:
var shashinPhotoId = shashinGetParameterByName('shashin_photokey');
if (shashinPhotoId && !isNaN(shashinPhotoId)) {
var shashinSelectedPhoto = '#shashinThumbnailLink' + shashinPhotoId + '_' + shashinAlbumId;
$(shashinSelectedPhoto).click();
}
View the results here: http://www.chriskline.com/?page_id=109&shashin_album_key=4&shashin_photo_key=32 ...
It will link to a specific picture number in an album but you have to make the link yourself. This raises the issue of how to generate such a link since shashinThumbnailLink_#'s are added incrementally if multiple albums are viewed. There will need to be a variable with the relative count of the picture number within an album...does one exist already? And how do we pass these variables for album and picture number to prettyPhoto.js for the social_tools section?
Done - included in version 3.4. When viewing a picture in prettyPhoto, click the link icon, which will give you a direct link for that photo
Currently, when displaying multiple albums via the type="album" attribute, a particular album can be selected using the querystring variable "shashin_album_key". I am looking for the ability to link a specific picture in an album through the query string as well.
An example in my context: I have a page that displays multiple albums: http://www.chriskline.com/?page_id=109. I can generate links to the albums (http://www.chriskline.com/?page_id=109&shashin_album_key=4 ), but not the pictures within. I would like share a link that would go to say the 6th picture in the above album with a photo number or unique photo identifier if available. A url would look something like this: http://www.chriskline.com/?page_id=109&shashin_album_key=4&shashin_photo_id=6 or http://www.chriskline.com/?page_id=109&shashin_album_key=4&shashin_unique_id=5756268624730566177
It would allow the social sharing links to be customized to reference an individual picture rather than just the page that they are hosted on, but that's another issue. It may also open up the ability to link photos from a random set to a gallery page.