I upgraded from a pretty old version of this module. Previously with a Flickr block (views) The images would show and open in colorbox on click, and at the bottom of the block there was a Source: Flickr link to the photoset on flickr. Now there's a "flickr" link under each photo, which is not attractive. How can I change that?

Also, though I've upgraded colorbox, when I click on the thumbnails they're going straight to flickr, rather than opening. Any ideas?

Comments

Pepper created an issue. See original summary.

lolandese’s picture

Now there's a "flickr" link under each photo, which is not attractive. How can I change that?

Pages on web sites that display content hosted on flickr.com must provide a link from each photo or video back to its page on Flickr. See https://www.flickr.com/help/guidelines/.

If you really insist, you can use the module String Overrides. It provides an easy way to replace any text on your site that is wrapped in the t() function (all user facing text of the Flickr module).

.. when I click on the thumbnails they're going straight to flickr, rather than opening. Any ideas?

Read https://www.drupal.org/node/2298239#colorbox.
If it's still not working check the correct configuration of both Flickr and Colorbox in the sandbox demo.

Pepper’s picture

Thanks. I think I would prefer the link for each image to show up once it's opened in colorbox, to point to the image on flickr. Or if they're thumbnails linking directly, can't the thumbnail itself being the link meet the guidelines? And what about the link to the photoset itself, rather than to the original photos, which used to be the link at the bottom of the block?

lolandese’s picture

Please clarify if the concerned submodule is Flickr Field or Flickr Block.

Some things you ask seem to be possible but takes reading of the module documentation, configuration page help texts (under the fields) and some fiddling with the settings. This is the trade-off of offering lots of options. It makes the configuration more complex. The sandbox demo is the example to turn to and try different kinds of settings. Use https://simplytest.me/project/flickr/7.x-1.x?add[]=stringoverrides to have the String Overrides module included.

CASE A:

I think I would prefer the link for each image to show up once it's opened in colorbox, to point to the image on flickr.

  1. ../admin/config/media/flickr
  2. GLOBAL OPTIONS
  3. Minimum image width to display a title caption: 999px
  4. Minimum image width to display date, location, photographer and optionally license info under the caption: 999px
  5. String Overrides: Replace Flickr with [nothing] (see screenshot)
  6. Clear the site cache at ../admin/config/development/performance
  7. Now you should have your desired use case (see screenshots).

CASE B:

Or if they're thumbnails linking directly, can't the thumbnail itself being the link meet the guidelines?

https://www.drupal.org/node/2298239#colorbox says:

Leave these fields empty to link directly to the Flickr photo page instead of opening the bigger version of the image.

Specifically the class and rel field.

  1. Clear the site cache at ../admin/config/development/performance
  2. Now you should have your desired use case.

CASE C:

And what about the link to the photoset itself, rather than to the original photos, which used to be the link at the bottom of the block?

Pages on web sites that display content hosted on flickr.com must provide a link from each photo or video back to its page on Flickr. See https://www.flickr.com/help/guidelines/.

********************************************************************************

String Overrides example

No caption ...

... with linking from within Colorbox

lolandese’s picture

Status: Active » Closed (fixed)

Let me know if more info is needed.

Pepper’s picture

Thanks, these are very helpful.

It looks like the major problem I have left, and I'm using flickr field in a views block to display a photoset.... is that the photoset images refuse to open in colorbox after an upgrade to the newest versions of libraries (2), colorbox and flickr.

lolandese’s picture

Compare your settings (both Colorbox and Flickr) with those of the working sandbox at https://simplytest.me/project/flickr/7.x-1.x. This always uses the latest DEV version of the module with Colorbox 7.x-2.10 (latest stable version at time of writing).

Check with a non-Flickr image as well to confirm it depends on the Flickr module.