This could apply on text filters like:
[flickr-group:id=91484156@N00, size=q, geo=Alabama, license=4/5/6/7, views=20]
which reads as:
Find all photos:

  • from a specific group
  • that were made in Alabama
  • with a commercial Creative Commons license or in the Public Domain
  • with 20 views or more on Flickr.

In a block this would be:

  • a text field for geo
  • a multi-select for licenses
  • a text field for views with validation on being a positive integer.

This would limit the photos in the block sitewide. For geo a geofield attached to a node converted in a valid query could be used.

Useful info:
http://stackoverflow.com/questions/6474427/using-flickr-api-to-search-ph...

Comments

lolandese’s picture

Status: Active » Needs work
StatusFileSize
new1.92 KB

Attached patch only grabs the necessary info from Flickr. It extends the already used queries to provide this ('extras' parameter).

  • Commit b1c973d on 7.x-1.x by lolandese:
    Issue #2257689 by lolandese: Grab geo, license and number of views info...
lolandese’s picture

Use the getCurrentPosition() to create a new block "Close to you".

lolandese’s picture

Title: More filters like geo, license and # of views » More filters/sort options like geo, license and # of views

Instead of using the parameter random=true that offers only two options, random (true) or recent( false), it makes more sense to use the parameter sort with the values random and recent. It allows to add more options like sort=views to use the number of views on Flickr in descending order. The most viewed photos are probably also the most interesting.

As mentioned above, also sort=proximity would be interesting, showing the nearest photos.

lolandese’s picture

Status: Needs work » Needs review
StatusFileSize
new23.69 KB

Added sort option 'number of views on Flickr' (popularity) for the Flickr Filter submodule.
Use e.g. [flickr-group:id=91484156@N00, size=q, num=8, sort=views, tags=flowers].

lolandese’s picture

Status: Needs review » Fixed
StatusFileSize
new32.04 KB

Extended to blocks making the agnostic for sort, offering the sort option in the block configuration.

Consequence is that most blocks now exist twice identical, due to the fact that before we had a 'random' and 'recent' block.

  • Commit 3d6ca41 on 7.x-1.x by lolandese:
    Issue #2257689 by lolandese: Added sort option 'number of views' (...
lolandese’s picture

Status: Fixed » Active

Reopening for the remaining license filter and proximity sort (geo).

lolandese’s picture

Added sort options for Block and Filter:

+      'taken' => t('Recently taken (newest first)'),
+      'uploaded' => t('Recently uploaded (newest first)'),
+      'id' => t('Descending on photo ID (an alternative newest first)'),
+      'unsorted' => t('Unsorted, as delivered by the Flickr API response'),
     ),

and in addition for groups:

+        'added' => t('Recently added to group (newest first)'),

  • Commit 2e3052e on 7.x-1.x by lolandese:
    Issue #2257689 by lolandese: Added date sort options 'taken' and '...
lolandese’s picture

Status: Active » Needs review
StatusFileSize
new18.73 KB

Interestingness and relevance filter for user albums.

  • Commit d18d36e on 7.x-1.x by lolandese:
    Issue #2257689 by lolandese: Interestingness and relevance filter for...
lolandese’s picture

Status: Needs review » Active
lolandese’s picture

Better would be to make a combination possible, like 'interestingness' and 'taken'. We would have to separate the newly added filters as an own parameter, e.g. $filter.

lolandese’s picture

Status: Active » Needs review
StatusFileSize
new18.83 KB

Patch for #14, offering powerful combinations, especially useful for public photos. Plus various other improvements.

lolandese’s picture

lolandese’s picture

Status: Needs review » Active
StatusFileSize
new26.19 KB
lolandese’s picture

Correction for random with tags. Furthermore accepting tags with spaces and removing them for the API request.

lolandese’s picture

http://drupalcode.org/project/flickr.git/commit/1041b9d
http://drupalcode.org/project/flickr.git/commit/349cca7
http://drupalcode.org/project/flickr.git/commit/36476ca

Leaving it active for the geo sort.

For the license it would make more sense to introduce a Flickr permission:
Embed non CC licensed Flickr content from others in nodes (Flickr Filter)

It would compare a node author's Flickr Identifier with the ones used. To consider the performance impact.

  • Commit 1041b9d on 7.x-1.x by lolandese:
    Issue #2257689 by lolandese: Introduces a separate filter apart from the...
lolandese’s picture

Status: Active » Fixed

For geo filter we opened a new issue. See #2363665: New parameter 'location' (TODO: also for Blocks).

The other requests seem to be fulfilled.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.