flickr block images loading from non-existant flickr subdomains
| Project: | Flickr Block |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
I was having problems with my images not appearing, they appear to be loading from subdomains like photos140.flickr.com which doesn't exist
Google got me to this page which says
The previous Flickr photo URLs were like photos21.flickr.com/338.. but the new URLs are of the form static.flickr.com/21/338
So changing
http://photos142.flickr.com/327513165_b20518140d_s.jpg to
http://static.flickr.com/142/327513165_b20518140d_s.jpg
seemed to fix the problem
Changing line 95
return 'http://photos' .$server. '.flickr.com/' .$id. '_' .$secret. ($size ? '_' .$size : '') . '.' .($size == 'o' ? $format : ' jpg'); to
return 'http://static.flickr.com/' .$server. '/' .$id. '_' .$secret. ($size ? '_' .$size : '') . '.' .($size == 'o' ? $format : ' jpg');
Worked for me although I'm not sure if this is the best solution.
Thanks
