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

cuebit's avatar
cuebit
28 posts
16 years ago
cuebit's avatar cuebit

Lumis,

again a great extension. But we are being a bit dim here. We have the Flickr api talking to EE, and we have started putting tags into a template, and have managed to pull info in from a PhotoSet.

Here’s the really embarrasing bit.

We can’t dispaly any pictures.

The only information displaying on the page, is the file name, for all of the images in the PhotoSet. We are also getting the EEFlickr tags repaeting on the page as well.

Is there a tag to display either phots or thumbnails, or is there something up with our config?

Many thanks Antony

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

Antony,

It sounds like you aren’t building your image tags properly. The plugin gives you tags for pieces of the image tag, but you have to use them to build the actual tag yourself. This way, you can control what photos are displayed by the way you build your image tags. For example, here is the code I use to display a list of thumbnails (note the “_t” in the image url:

{exp:eeflickr:photos_search per_page='9' user_id='{flickr-id}' extras='owner_name'}
<ul class="thumbnails">
    {eeflickr:photos_search_loop}
    <li class="meta"><a href="http://{path={embed:path}}" title="Photo by {ownername}">http://farm{farm}.static.flickr.com/{server}/{id}_{secret}_t.jpg</a>
    {/eeflickr:photos_search_loop}
</ul>
{/exp:eeflickr:photos_search}

The thumbnails link to another template that uses this code to display the larger image:

{exp:eeflickr:photos_getInfo photo_id="{photo_id}"}
<a href="http://www.flickr.com/photos/{nsid}/{id}/" title="View this photo on Flickr">http://farm{farm}.static.flickr.com/{server}/{id}_{secret}.jpg</a>
{/exp:eeflickr:photos_getInfo}

Hopefully, this helps to clarify things a bit. If not, can you post a sample of the code you are using that you are having trouble with?

       
cuebit's avatar
cuebit
28 posts
16 years ago
cuebit's avatar cuebit

Air Crash,

now it makes sense. We’re now getting images displaying, and can target a particular group we run, changing the user_id to group_id.

Thank you.

       
srosenow's avatar
srosenow
15 posts
16 years ago
srosenow's avatar srosenow

I cannot get the no_results tag to work. The rest of the module is working fine, but if there are no results, nothing is returned.

{eeflickr:photos_search_loop}
<img src="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}_m.jpg" alt=""  />
{if no_results}
/img/nopic.gif
{/if}
{/eeflickr:photos_search_loop}
       
Manoj Thomas's avatar
Manoj Thomas
185 posts
16 years ago
Manoj Thomas's avatar Manoj Thomas

Nice plugin. Is there a way to setup pagination for the template that displays the larger, single image? Someway so the user can click NEXT or BACK to see the next/previous image?

Thanks! Manoj

       
srosenow's avatar
srosenow
15 posts
16 years ago
srosenow's avatar srosenow

Ok, I actually figured out my problem. I’m not sure exactly why this happens, but the eeflickr {if no_results} only worked for me if I already had an {if no_results} for the ee:weblog:entries tag. Once I put that in, the tag worked perfectly.

       
Jon @ Kernel's avatar
Jon @ Kernel
122 posts
16 years ago
Jon @ Kernel's avatar Jon @ Kernel

I posted this elsewhere but haven’t had a response yet - this thread is probably a better option:

I have this working to pull a list of sets using my user ID, however I’m not having any luck pulling the thumbnails when viewing individual sets. The following code pulls the names of all the images in the set fine, but the img src link doesn’t generate properly - it can’t seem to pull the {primary} tag, despite this getting pulled down fine when I list set thumbnails. The image URLs all read like this:

http://farm1.static.flickr.com/223/{primary}_eee087331e_s.jpg

Code is as follows:



Any ideas?

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

vanquished {primary} is not part of the exp:eeflickr:photosets_getPhotos tag you will need to use the exp:eeflickr:photosets_getInfo tag to get at the primary image

something like this should work for you



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

manoj382

yes you would want to use the exp:eeflickr:photos_getContext tag this creates paging for a individual photo

{exp:eeflickr:photos_getInfo photo_id="{segment_3}"}
<img src="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}.jpg" alt=""  />

{exp:eeflickr:photos_getContext photo_id="{id}"}
    {if prevphoto_id}
        <a href="/{segment_1}/{segment_2}/{prevphoto_id}/">{prevphoto_thumb}</a>
    {/if}
    {if nextphoto_id}
        <a href="/{segment_1}/{segment_2}/{nextphoto_id}/">{nextphoto_thumb}</a>
    {/if}
{/exp:eeflickr:photos_getContext} 

{/exp:eeflickr:photos_getInfo}
       
lumis's avatar
lumis
119 posts
16 years ago
lumis's avatar lumis

aircrash you would need to user the exp:eeflickr:people_getInfo tag inside the exp:eeflickr:comments_getList tag

{exp:eeflickr:comments_getList  photo_id="{segment_3}"}
<div>

{authorname}


{exp:eeflickr:people_getInfo  user_id ="{author}"}
    <a href="http://{profileurl}">_        {if iconserver}_            <img src="http://farm{iconfarm}.static.flickr.com/{iconserver}/buddyicons/{nsid}.jpg" alt=""  />_        {if:else}_            <img src="http://l.yimg.com/g/images/buddyicon.jpg" alt=""  />       _        {/if}    _    </a>
{/exp:eeflickr:people_getInfo} 

    {comment}
    
</div>       
{/exp:eeflickr:comments_getList}
       
Nico Smit's avatar
Nico Smit
48 posts
16 years ago
Nico Smit's avatar Nico Smit

Hi,

I’m trying to use a global variable for the user_id {flickr_account), but this doesn’t seem to work. Any idea what I’m doing wrong?

{exp:eeflickr:photosets_getList user_id="{flickr_account}"}
{photos}

{title}<hr >
{/exp:eeflickr:photosets_getList}
       
David Webb's avatar
David Webb
62 posts
16 years ago
David Webb's avatar David Webb

Hey Lumis.

I’m still in the early stages of figuring this all out. I’ve used EEFlickr to make a mini gallery for a wedding I’ve shot but I’d like to use it for my whole website but I’m figuring out how to organise Flickr to get the best out of it.

Looking through your docs it’s very easy to grab sets but what about collections?

I’m imagining having collections such as “Music” “Nature” “Events” and then having Sets under them such as “Explosions in the Sky” “”London Zoo” etc etc

So basically using Collections as my top level Categories and Sets as my sub-level categories.

All this boils down to a simple is this possible?

Well a quick look at the Flickr API docs it would appear there is not collections tags… But a lot of people asking for them…

In that case how do we organise our photos into Top level Categories?

       
David Webb's avatar
David Webb
62 posts
16 years ago
David Webb's avatar David Webb

Well as Flickr seem to not be bringing collections to the API I’ve been looking around how people have been getting around it with their sets.

Now what I’ve found is the suggestion to use a Sets description field to insert a formatted description (for lack of a better word) that could then be used for filtering.

The example I’ve found is http://www.imagicweb.com/flickrsite/ but he doesn’t go into detail about how to limit it. and the site is in Italian so I might be losing it slightly…

The other way I’m thinking of is using a specific tag and calling that tag. But it would have to be on only one photo per set and we’d have to be able to link to the rest of the set on the next page.

Ah but we only have

exp:eeflickr:tags_getListPhoto

exp:eeflickr:tags_getListUserRaw

Which only give tag lists from photos/user not photos from tags.

But flickr.photos.search allows us to search via a tag. So can we get the set from a photo and link to said set…

Hmm I think I need to get some thinking going on and work out some “collection” tags and see if the search works the way i hope it works…

If anyone else reading this would like collections within the api maybe you can lend some weight to this thread…

http://tech.groups.yahoo.com/group/yws-flickr/message/4523

and we’ll see if we ever get a reply.

       
radarmaker's avatar
radarmaker
5 posts
16 years ago
radarmaker's avatar radarmaker

hiya i’ve installed eeflickr, and it’s working perfectly (amazing job on this one). i’m using the plugin to pull galleries dynamically on individual posts based on a custom field - that (again) is working perfectly.

I can’t display the title though - it’s only displaying the title of the post, not the image. ownername works, as do all the fields i need to build the image tags, just not title.

i’m just wondering if the tag has changed or if there’s an issue using it within a template?

i’m new to EE, but I can’t get it to work as a standalone embedded template (i’m guessing as the custom field that’s used to build the search tag doesn’t get passed).

any help would be appreciated.

my code is here:



						
       
Richard Frank's avatar
Richard Frank
200 posts
16 years ago
Richard Frank's avatar Richard Frank

Just posting this for everybody’s information.

The text=”” parameter on eflickr:photos_search, which does a full text search on Flickr, was not working with more than one word. For “Joe Soap”, it would search Joe OR Soap, not Joe AND Soap. This was to do with the URL encoding.

At around line 1679 add the following:

if($key == "text")
     {
     $value = urlencode($value);
   }
       
First 6 7 8 9 10 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.