Sorry for the late reply (been away), but many thanks for your amazing efforts. I think this is probably 95% of what I'm looking for, but based on what you wrote, I think my original post wasn't clear enough.
Rather than always display one particular PP thumbnail in my Joomla site, I'd like to be able to change that ID based on where the PP viewer came from.
For example: a viewer browsing a photo from two weeks ago (say, ID=37) clicks on the PP link and gets taken back to my Joomla page with that thumbnail ID=37 embedded in it. But then going back to PP and seeing another photo (ID=17) and clicking that same link goes back to the same Joomla page with the thumbnail for ID=17.
I essentially want to remember the ID number of the PP photo and use that to generate the thumb. Is there a way to add that into your code?
Thank you so much already for your help!