We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

eeFlickr : Flickr photo gallery

Development and Programming

Erin Dalzell's avatar
Erin Dalzell
790 posts
16 years ago
Erin Dalzell's avatar Erin Dalzell

I had an image in a set, then I deleted it and added 7 others and I couldn’t see the images until I removed all the cache data.

Any ideas?

       
glamorous_be's avatar
glamorous_be
19 posts
16 years ago
glamorous_be's avatar glamorous_be

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?

       
Lunchbox Collective's avatar
Lunchbox Collective
75 posts
16 years ago
Lunchbox Collective's avatar Lunchbox Collective
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.

       
goodcompany's avatar
goodcompany
51 posts
16 years ago
goodcompany's avatar goodcompany

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
       
goodcompany's avatar
goodcompany
51 posts
16 years ago
goodcompany's avatar goodcompany

Anyone see 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?

       
aircrash's avatar
aircrash
293 posts
16 years ago
aircrash's avatar aircrash

goodcompany, can you post the code that’s giving you problems? You shouldn’t need to authenticate, unless you are trying to load photos that are restricted to friends or family.

       
goodcompany's avatar
goodcompany
51 posts
16 years ago
goodcompany's avatar goodcompany

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>
       
aircrash's avatar
aircrash
293 posts
16 years ago
aircrash's avatar aircrash

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.

       
goodcompany's avatar
goodcompany
51 posts
16 years ago
goodcompany's avatar goodcompany

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.

       
goodcompany's avatar
goodcompany
51 posts
16 years ago
goodcompany's avatar goodcompany

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.

       
lumis's avatar
lumis
119 posts
16 years ago
lumis's avatar lumis

@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}
       
gocal's avatar
gocal
8 posts
16 years ago
gocal's avatar gocal

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.

       
lumis's avatar
lumis
119 posts
16 years ago
lumis's avatar lumis

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

       
gocal's avatar
gocal
8 posts
16 years ago
gocal's avatar gocal

Thanks Lumis and Simon Clayson. I cleared eeFlickr cache and am able to see what Lumis saw. Cool! I have 4 photosets total. Now if I can only get the other 2 to show. I’m new to Flickr also. Thanks for your help.

       
lumis's avatar
lumis
119 posts
16 years ago
lumis's avatar lumis

you can try changing your cache time in the module CP to a lower value I believe the default is 1 day

       
First 8 9 10 11 12

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.