exp:eeflickr:contacts_getPublicList

Get the contact list for a user.

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:contacts_getPublicList user_id="47282007@N00" per_page="16" page="page1"}

    {eeflickr
:contacts_getPublicList_loop}
            {nsid}
            {username}
            {iconserver}
            {iconfarm}
            {ignored}
    {
/eeflickr:contacts_getPublicList_loop}

    {eeflickr
:contacts_getPublicList_paging} 
            page    
{page}<br />
            
pages   {pages}<br />
            
perpage {perpage}<br />
            
total   =    {total}<br />
     
{/eeflickr:contacts_getPublicList_paging}

{
/exp:eeflickr:contacts_getPublicList} 


Sample Usage

The below code will show the icons of my contacts and use segment_4 to page through them as well as providing a link to there photos on Flickr. If the user has not set there buddy icon it will show the Flickr default.

     

{exp:eeflickr:contacts_getPublicList user_id="47282007@N00" per_page="16" page="{segment_4}"}
    
    {eeflickr
:contacts_getPublicList_loop}
        
<a href="http://www.flickr.com/photos/{nsid}/">
        
{if iconserver}
        
<img src="http://farm{iconfarm}.static.flickr.com/{iconserver}/buddyicons/{nsid}.jpg" alt="" />
        
{if:else}
        
<img src="http://www.flickr.com/images/buddyicon.jpg" alt="" />
        
{/if}
        
</a>
    
{/eeflickr:contacts_getPublicList_loop}


    {eeflickr
:contacts_getPublicList_paging}
    
<div style="clear:both;"></div>
    <
div id="pagination">
               
{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}
     
</div>
    
{/eeflickr:contacts_getPublicList_paging}
    
{
/exp:eeflickr:contacts_getPublicList} 


     



Sample Above Will Output