exp:eeflickr:photos_search

This will probably be your most used tag... Return a list of photos matching some criteria. Only photos visible to the calling user will be returned. To return private or semi-private photos, the caller must be authenticated with 'read' permissions, and have permission to view the photos. Unauthenticated calls will only return public photos.

Params

    {params}
  • {col_1}: {col_2}
  • {/params}
  • sign: "yes" set to yes if you are requesting your (private,friends,family) data if this is not set only public data is returned for this tag. (about Authentication)
  • refresh: (cache time in minutes) this overrides the default time eeFlickr stores Flickr API data before requesting new data from Flickr

Full Tag

{exp:eeflickr:photos_search  user_id="47282007@N00" page="page1" per_page="30" }
    {eeflickr
:photos_search_loop} 
        {id}
        {owner}
        {secret}
        {server}
        {farm}
        {title}
        {ispublic}
        {isfriend}
        {isfamily}
        {license}
        {dateupload}
        {datetaken}
        {datetakengranularity}
        {ownername}
        {iconserver}
        {iconfarm}
        {originalsecret}
        {originalformat}
        {lastupdate}
        {latitude}
        {longitude}
        {accuracy}
        {tags}
        {machine_tags}
        {media}
        {views}
        {o_width}
        {o_height}
        {count}
{if no_results}
  some text here
{
/if}
    {
/eeflickr:photos_search_loop} 
    {eeflickr
:photos_search_paging} 
        page    
{page}
        pages   
{pages}
        perpage 
{perpage}
        total   
{total}
    {
/eeflickr:photos_search_paging}
{
/exp:eeflickr:photos_search} 


Sample Usage

in the below example we return 16 of my most recent photos and use {segment_4} as our paging variable.
The pagination links are created by placing the {exp:eeflickr:paginate} tag inside the {eeflickr:photos_search_paging} pair

     

Image List example:

{exp:eeflickr:photos_search  user_id="47282007@N00" page="{segment_4}" per_page="16"}
                
    {eeflickr
:photos_search_loop}  
        
<div style="float:left; text-align:center; height:80px; width:80px; overflow:hidden;">
          <
a href="/picture/{id}/"><img src="http://farm{farm}.static.flickr.com/{server}/{id}_{secret}_s.jpg" alt="{title}" /></a>
        </
div>
    
{/eeflickr:photos_search_loop}
    
    {eeflickr
:photos_search_paging} 
    
<div style="clear:both;"></div>
               
{exp:eeflickr:paginate page="{page}" pages="{pages}" perpage="{perpage}" total="{total}" max_links="2"}
                    Page {current_page} of {total_pages} pages {if current_page 
!= "1"}{first_page_link} <a href="{prev_page_url}">Previous</a>{/if}
                    {pagination_links}
                    {if current_page 
!= total_pages}<a href="{next_page_url}">Next</a{last_page_link}{/if}
                {
/exp:eeflickr:paginate}
    {
/eeflickr:photos_search_paging}
    
{
/exp:eeflickr:photos_search}

Video Example
:

{exp:eeflickr:photos_search  user_id="69005233@N00" media="video" sort="interestingness-desc" page="{segment_4}" per_page="3"}
    {eeflickr
:photos_search_loop}
    
<embed id="stewart_swf{id}" width="180" height="135" flashvars="intl_lang=en-us&div_id=stewart_swf{id}_div&flickr_notracking=true&flickr_target=_self&flickr_h=135&flickr_w=180&flickr_no_logo=false&onsite=false&flickr_noAutoPlay=true&photo_secret={secret}&photo_id={id}&flickr_doSmall=true" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" base="." name="stewart_swf2372328500" style="visibility: visible;" src="http://www.flickr.com/apps/video/stewart.swf.v49235" type="application/x-shockwave-flash"/>
    
{/eeflickr:photos_search_loop}
    
<div style="clear:both;"></div>
    <
div id="pagination">
       
{eeflickr:photos_search_paging}
               {exp
:eeflickr:paginate page="{page}" pages="{pages}" perpage="{perpage}" total="{total}" max_links="2"}
                    Page {current_page} of {total_pages} pages {if current_page 
!= "1"}{first_page_link} <a href="{prev_page_url}">Previous</a>{/if}
                    {pagination_links}
                    {if current_page 
!= total_pages}<a href="{next_page_url}">Next</a{last_page_link}{/if}
                {
/exp:eeflickr:paginate}
       {
/eeflickr:photos_search_paging}
     
</div>
{/exp:eeflickr:photos_search} 


     



Sample Above Will Output

Video Sample Above Will Output