I’m running into problems with the eeFlickr-module. On a other (older) site it worked to get some pictures…
Now I’m working on a new website but the same code will not work, none of the code will.. When I look at my error-logs the only thing I can see is this notice:
[25-Mar-2009 16:06:38] PHP Notice: unserialize() [function.unserialize]: Error at offset 0 of 22 bytes in *************\modules\eeflickr\mod.eeflickr.php on line 352
Somebody an idea?
Is there any way to sort photosets_getPhotos in ascending order? Everything else works perfectly but I can’t seem to find any reference to it apart from for the photos_search tag.
The Flickr API does not provide sorting capabilities on this API method. It returns the photos in the order they are arranged in the set (which can be edited in Flickr). If you have some PHP knowledge you can likely modify mod.eeflickr.php to reverse the data that’s returned/parsed from the flickr API, effectively giving you newest to oldest as they were added to the set assuming you did not do any organization within the set in Flickr.
I simply switched to using photo search and tagging my photos with a specific tag and finding them via that method (searching by user id and tag) and sorting date-posted-desc. You’ll need to use the auth method to get a Token and then put that in the eeFlickr Module config in EE CP but it’s only a one time process.
Probably missing something obvious, but I’ve read all the documentation and can’t get anything returned from any tag set except the title. I mostly see a block of tags like this:
{iconfarm} {originalsecret} {originalformat} {lastupdate}
etc, etc.
Any ideas? Do I need to authenticate first? When I add this to the template I get the URI script error previously described:
Notice: Undefined index: SCRIPT_URI in /path/to/site/system/modules/eeflickr/mod.eeflickr.php on line 1216
Sure. For example..
<div class=“codeblock”>
{exp:eeflickr:photosets_getPhotos photoset_id="72157615797281883" per_page="30"}
{eeflickr:photosets_getPhotos_loop}
http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{o-secret}_o.(jpg|gif|png) /
{/eeflickr:photosets_getPhotos_loop}
{/exp:eeflickr:photosets_getPhotos}
</div>
Your code looks okay.
It may actually be a permissions/authentication issue, since you are loading the original version. Does the code work if you swap out the original image with one of the smaller sizes?
http://farm{farm-id}.static.flickr.com/{server-id}/{id}_{secret}.jpg
I’ve never used authentication with eeflickr, so I’m not sure I can help if that’s the issue though.
Thanks aircrash, but no matter what I try I can’t do anything to get tags like farm-id to write out…I can get image titles, but that’s about it.
Still seeking info on a scenario in which the image title could be returned fine, but other variables such as farm-id don’t get parsed or returned at all. Feel like I am missing something obvious but don’t know where to start.
I’ve tried everything I can think of - I might be out of luck on this but I thought I’d ask one last time for some input from anyone in the community using this for ideas on what could be going wrong.
To reiterate, I’m troubleshooting what might cause the image title to be returned fine, while other variables (such as farm-id) don’t get parsed or returned at all. The loop just prints farm-id, in EE brackets of course. STUMPED.
@goodcompany you variables for that tag are all wrong see my example below also have a look at the doc page http://www.lumis.com/eeflickr/tag/photosets_getphotos/
also {originalsecret} is only available if you have authenticated your install to the flickr API and you have specified to return it in the extras param
{exp:eeflickr:photosets_getPhotos photoset_id="72157615222230294" extras="license,date_upload,date_taken,owner_name,icon_server,original_format,last_update" page="page1" per_page="30" sign="yes"}
{eeflickr:photosets_getPhotos_loop}
<img src="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}.jpg" alt="" />
<img src="http://farm{farm}.static.flickr.com/{server}/{id}_{originalsecret}_o.jpg" alt="" />
{id}
{secret}
{server}
{farm}
{title}
{isprimary}
{datetaken}
{datetakengranularity}
{ownername}
{iconserver}
{iconfarm}
{originalsecret}
{originalformat}
{lastupdate}
{/eeflickr:photosets_getPhotos_loop}
{/exp:eeflickr:photosets_getPhotos}
Thanks for creating eeFlickr.
I am trying to pull all my photosets from Flickr with my user id. I only get one photoset returned. It behaves as if it is getting either the first photoset or the last one. I am at a loss. I’ve read this full thread and your docs.
Here’s my dev website: http://02d86f4.netsolhost.com/index.php/photos
EE: Build 1.6.7
And, here’s the code I’m using:
{exp:eeflickr:photosets_getList user_id="39326283@N02"}
<div>
<a href="#">_ <img src="http://farm{farm}.static.flickr.com/{server}/{primary}_{secret}_s.jpg" alt="" /></a>
{title}
{description}
</div>
{/exp:eeflickr:photosets_getList}
Thanks for the help.
when i put in
{exp:eeflickr:photosets_getList user_id="39326283@N02"}
{title}
{/exp:eeflickr:photosets_getList}
I get 2 sets the same 2 sets that i see if i go to this URL http://www.flickr.com/photos/39326283@N02/
If you have more than 2 sets then the photos in them are all private so if you wanted to show them you would need to auth eeFlickr
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.