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

jaimes's avatar
jaimes
7 posts
17 years ago
jaimes's avatar jaimes

Hi Lumis, great module, really useful for getting at Flickr within EE…

I’ve got one request…

Is it possible to have a total tag within results so you can test for no results? Is there some way to do this already?

Thanks! Jaimes

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

This module is excellent. I’ve wanted something like this for a long time, but haven’t had the time (or skill) to do it myself. One problem I’ve run into is in trying to use an EE global variable for my flickr id. If I put my Flickr ID into the code manually, it works fine, but if I do something like this:

{exp:eeflickr:photosets_getList user_id="{flickr_id}"}
or
{exp:eeflickr:photosets_getList user_id={flickr_id}}

I get a “User not found” error.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

How are you defining that variable, aircrash? Is it a User Defined (from the Global Variables link in the Template page), path.php, or assigned variable? Or a Fresh Variable?

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

Sorry, forgot that part. It is User Defined.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

Did you see the note on User Defined Global Variables?

Also note that Global Variables are one of the last things parsed in your Templates. This means that you cannot use a Global Variable as the value for an EE Tag parameter.

This is an EE-wide caveat to those types of global variables. The way around this is path.php global variables, assigned global variables, or the module Fresh Variables. =)

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

Doh! I should have known that. Thanks.

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

I’m having trouble getting pagination to work (or maybe I’m just not understanding how the pagination urls work). My url structure is set up like this: template_group/template/set_id/page#, and my {exp:eeflickr:photosets_getPhotos} tag and {exp:eeflickr:paginate} tag both specify page=”{segment_4}”. this works fine at first, but every time i click a pagination link, it just reloads the first page (or whatever number is in segment_4, and adds another page number segment to the url, so after a few clicks, I end up with a url like this: http://nd75.com/photography/albums/72157603861260957/page1/page-1/page5/

I think that I’m not fully grasping how pagination works, so any help would be appreciated. You can see an example here: http://nd75.com/photography/albums/72157603861260957/

edit: also, a second question: is there a way to selectively exclude a specific set from the {exp:eeflickr:photosets_getList} tag? In general, I want to display all of my sets, but there are a few that I have just for reference, but I’d prefer that they not show up in ee, and I’d rather not make them private in flickr.

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

I figured out the pagination issue. The problem that I was using page=”{segment_4}” in the {exp:eeflickr:paginate} tag, when it should have been page=”{page}”.

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

jaimes i am going to work on a no_results vatiable soon but if you want you could always wrap your code block in an if statement

something like this

{exp:eeflickr:photos_search  user_id="47282007@N00" page="{segment_3}" per_page="30" }
    {eeflickr:photos_search_loop} 
        {if id}
        your code here
        {/if}
    {/eeflickr:photos_search_loop} 
{/exp:eeflickr:photos_search}
       
Garrulus's avatar
Garrulus
10 posts
17 years ago
Garrulus's avatar Garrulus

Thank you for this plugin. I’d hate to see you stop developing it, because of some ‘politics’.

       
fender21's avatar
fender21
36 posts
17 years ago
fender21's avatar fender21

Love this plugin! I’m having a refresh issue which I can’t seem to figure out. I’m trying to do a flicker wildcard search on one of my weblog custom fields. It never refreshes as I go page to page? Am I doing this right? I’m passing in a text value for text?



						
       
Simon Clayson's avatar
Simon Clayson
38 posts
17 years ago
Simon Clayson's avatar Simon Clayson

A pretty impressive module/plugin and I think lumis should be patted on the back for this work. I’m still slightly hesitant over it’s beta status, but it’s more highly evolved than a lot of Flickr integration scripts out there. Nice work.

If you are having refresh issues, make sure your code doesn’t include anything commented out. I got stung by that.

       
Richard Flynn's avatar
Richard Flynn
14 posts
17 years ago
Richard Flynn's avatar Richard Flynn

OK, I’ve been fiddling with this Module all day, and think it’s great (thanks, Lumis!). However, I’ve just purchased a licence to be able to post here (I’ve been playing with Core for about a month with sites in development, and was of course going to purchase anyway, but not having full forums access accelerated my acquisition…).

I had a bit of difficulty getting Authorization to work: I never got the Auth Token automatically, but was able to hack away a bit using the Flickr API explorer and produce something which seems to have worked.

My question (for now) is, is there any baked-in way of displaying a random set of photos? Perhaps even random photos conforming to some criteria (like how in the Weblog Module you can order by ‘random’)? This is going to be something of a deal-killer for at least one of the sites I’m working on, yet I can’t see any obvious way of doing this by looking at the available template tags (and boy have I spent a long time staring at those pages…).

Thanks in advance!

Richard

       
Richard Flynn's avatar
Richard Flynn
14 posts
17 years ago
Richard Flynn's avatar Richard Flynn
My question (for now) is, is there any baked-in way of displaying a random set of photos?

I’ve looked a bit further and have come across no obvious way of showing random photos: is there really none?

Also, I just tried using the {datetaken} in the {photos_search_loop}: this and some of the other documented variables appear not to work (they only show the tag name in the rendered template). I was able to get round this by putting a {photos_get_info photo_id="{id}”} inside my {photos_search_loop} and then use the {taken} variable available to the {photos_get_info} variable tag pair. I suspect I was doing something wrong originally…

I’m currently trying to work out the best way to do a count within the {photos_search_loop): I'm trying to use a PHP numeric variable which is increased by 1 each time the loop is passed (like I used to do in WordPress), but can't work out where to put my while and endwhile statements in relation to the EE loop tags. In the Weblog module there's the {count} variable, which makes things very easy, since you can use a conditional statement based the current value of {count}. What I’m trying to do here (for now) is to show the six latest photos in my stream on my homepage, where the first photo (the most recent) is shown medium-size, and the others are square thumbnails. If anyone can give any ideas about how to achieve this, I’d be very grateful to hear them!

       
FullCreamMilkMan's avatar
FullCreamMilkMan
67 posts
17 years ago
FullCreamMilkMan's avatar FullCreamMilkMan

I’ve just installed eeFlickr and I’m very impressed with its functionality. It’s working fine, in that it’s displaying exactly the images I want, but I’m receiving the following errors at the top of the page:

Notice: Use of undefined constant MAGPIE_DEBUG - assumed ‘MAGPIE_DEBUG’ in /path/to/ee/control/panel/modules/eeflickr/mod.eeflickr.php on line 2130 Warning: Cache unable to open file for writing: ./path/to/ee/control/panel/cache/eeFlickr_cache/a5bd326ce0fe2483b155556ce72891fe.xml in /path/to/ee/control/panel/modules/eeflickr/mod.eeflickr.php on line 2131

Does anyone know what’s causing the error? I have checked the cache permissions and they’re correct (777).

Many thanks.

Update: OK, problem solved by deleting the eeFlickr_cache directory and replacing it.

       
First 3 4 5 6 7 Last

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.