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
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?
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}
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?
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}
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}
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?
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
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.
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:
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);
}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.