I'd like to request Flickr incorporate a patch developed by Josh Koenig as he was helping me with this issue.

The overview page (~/Flickr) shows your Flickr photosets; however, in the page that loads photoset pictures locally ("view locally"), the link to the picture shows that photo on Flickr as part of your regular photostream - i.e. not grouped into your photoset. Josh helped edit the code so that it adds the necessary url / setid to place the photos in the right context.

Here is the section that was fixed (the fix is only on line 161):


151 {
152 	$output = "<h2>An error occurred</h2> Somehow we were unable to parse the response. Please contact the site owner for investigation.";
153 } 
154 else {
155 unset($settree['rsp'][$setid]['primary']);
156 unset($settree['rsp'][$setid]['secret']);
157 unset($settree['rsp'][$setid]['photos']);
158 $output = "<div style='text-align: center'>";
159 foreach ($settree['rsp'][$setid] as $photo_id => $photo_details) {
160 $image = "http://static.flickr.com/".$photo_details['server'].'/'.$photo_id."_".$photo_details['secret']."_s.jpg";
161 $output .= "<a href=\"". variable_get('flickr_proot', 'http://www.flickr.com/photos/').variable_get('flickr_uname', 'jluster')."/$photo_id/in/set-$setid\"><img src=\"$image\" class='".variable_get('flickr_class','flickr')."'/></a>";
162       }

Comments

wnoronha’s picture

I have applied the fix.

Thanks
Warren.

wnoronha’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)