You are here

README.txt in Flickr 7

The content of this file is based on the online documentation that can be found
at https://drupal.org/node/2171249
It is recommended to read it there, as it is more detailed.

NAME
====
Flickr Block
Part of the Flickr module. Project page at https://drupal.org/project/flickr

OVERVIEW
========
Flickr images or slideshows in blocks to show for example recent or random
images from a specific user, photoset, gallery or group.

- Configure the size, media type (photo/video) and number of images to show.
- With visibility by role or path.
- Blocks can be placed in any theme region.

There are several blocks that show the Flickr photos of a corresponding node
author 'dynamically' and appear on posts written by the user and on their user
profile pages. To avoid that, change the block settings to exclude 'node/*'
pages or show them only on 'user/*' pages.

Of course you can do it also the other way around to show a block only on a node
page. You can fine-grain it even more by selecting only a certain content type
you want to show them on, for example blog posts.

- Node author favorites (what they like from others, but all together)
  optionally corresponding with a node's taxonomy term
- Node author gallery photos (arbitrary selection by author of other's photos)
  optionally with gallery title as term from node
- Node author photos optionally corresponding with a node's taxonomy term,
  location and/or date field
- Node author recent photosets

The node author has to have permission to specify a Flickr ID on their own
account (admin/people/permissions#module-flickr).

The block visibility setting for the 'Node author' blocks are not only
restricted by the sitebuilder in the block configuration but also by the module.
The block gets displayed when the first argument of the path is 'user' or 'node'
and a specific uid is available.

Furthermore several sitewide blocks are available. A user, photoset, gallery or
group needs to be specified in the block configuration.

- Favorites corresponding with a node's taxonomy term
- Group photos corresponding with a node's taxonomy term, location and/or date
  field
- Set photos corresponding with a node's taxonomy term
- User photos corresponding with a node's taxonomy term, location and/or date
  field
- User photos with specific tags
- User recent photosets

INSTALLATION / UPGRADING
========================
To have dynamic Flickr Blocks that use a node's:
- taxonomy terms to grab identical tagged photos from Flickr
- date fields to grab photos taken in the period of a node date
- location or geofields to grab photos taken near the location of a node

it is recommended to enable before installation or upgrade of the sub-module
Flickr Block:
- the core Taxonomy module. It will create a dedicated 'Flickr tags' vocabulary
  and a preconfigured term reference field. This is optional as any free tagging
  vocabulary can be used, but convenient as it saves some configuration.
- the Date Popup module (sub-module of Date). It will create a dedicated 'Flickr
  date taken' field on nodes.
- the Geofield module. It will create a dedicated 'Flickr location' field on
  nodes (latitude/longitude).

To avoid the above mentioned 'smart install':
- disable the mentioned modules before install of Flickr Block (first time
  enable or after uninstall)
OR
- enable first the Flickr main module and unselect the 'smart install' checkbox
  at admin/config/media/flickr under 'Block options', then install Flickr Block.


BLOCK CONFIGURATION
===================
Fields in the block settings that apply on all blocks.
======================================================
Block title
-----------
This is an extra block title that normally stays empty as a title is already
added that shows info about e.g. the photo order, the tags used to filter on,
the album title, location, date range and Flickr user. You can suppress this
title with CSS, e.g for the 'Flickr: User photos with specific tags' block
($delta=11):

#block-flickr-11 .flickr-album-heading {
  display: none;
}

Show n photos (field group 'Display')
-------------------------------------
The block will display this many photos.

Size of photos (field group 'Display')
--------------------------------------
Select the size of photos you'd like to display in the block.
NOTE:
For square images ('s': 75px and 'q': 150px) no real width needs to be fetched,
giving it a slight performance advantage over other sizes. Recommended if you
include many images.

Use size=x for a slideshow over the full region width (responsive). Size=y
for a basic version.

Minimum image width to display a title caption (field group 'Display')
----------------------------------------------------------------------
Small images have liitle space for a title caption. Replace it with the text
'Flickr' that links to the photo page on Flickr to comply with their Guidelines.
Set it to '0 px' to always include or '999 px' to always exclude. To give proper
attribution this should be included (space allowing).

Minimum image width to display date, location, photographer and optionally
license info under the caption (field group 'Display')
------------------------------------------------------
Suppress extra info on small images. Set it to '0 px' to always include or '999
px' to always exclude. To give proper attribution this should be included (space
allowing).

Media type (field group 'Filter / sort order')
----------------------------------------------
- all
- photos (default)
- videos

Note that for videos a still image representing the video is shown. If you use
Colorbox it can be played with the possibility to toggle to fullscreen. See
https://drupal.org/node/2226579#video.

All 'User' and 'Group' blocks.
==============================
Flickr User or Group ID
-----------------------
A valid Flickr User ID, alias, username or email address. If this is left blank,
the site's default user will be used if set. Emails or usernames (that might
change at any given time) are internally (in the variable) replaced with a
stable NSID (Flickr ID number). These are rendered in this field as Flickr
usernames. 'Maria Emanuela' is human readable, '43937662@N05' is not. Internal
the module still uses the Flickr ID number as it is more reliable.

For groups the ID (number) or alias can be used.

All 'corresponding with a node's taxonomy term' blocks.
=======================================================
Flickr tags as node taxonomy terms (choose a vocabulary to use) (field group
'Filter / sort order')
----------------------
Limit the Flickr images to those that have a Flickr tag identical to the terms
found for the node on the page the block is displayed on of a specific
vocabulary. Case insensitive, matches any tag, for photosets even partial.
Multiple tags for groups will only query the last 500 photos on Flickr (slowest
API request). For user blocks the Flickr account of the node author will be
queried. Flickr removes spaces from multi word tags (e.g. 'beach trip' becomes
'beachtrip'). Multi word tags in Drupal can be used as spaces are stripped to
make a Flickr request. For your content type, adjust the Help text of the used
taxonomy field accordingly (e.g. at
admin/structure/types/manage/article/fields/field_tags). The recommended widget
type is Autocomplete term widget (tagging) with an unlimited number of values.
If taxonomy was active at the moment of install, a vocabulary Flickr tags is
already configured right by default. You should find Flickr tags as a Term
reference field on your content type. It works out-of-the-box. If not on a node
page, all photos will be displayed. To avoid this set the visibility settings
below to Only the listed pages specified as node/*. Note that if you add this
term reference field to user profiles at admin/config/people/accounts/fields it
will filter additionally on it for user blocks. E.g. a user can set individually
that from their account only photos tagged 'website' should be used to embed,
independent from other used tags. Does apply only on user blocks, except for
favorites.

Checkbox: Extend to search for matching terms also in the Flickr photo title and
description besides Flickr tags. This limits the tag mode below to 'any' (OR).
(field group 'Filter / sort order')
-----------------------------------
Shows more results if true.

Radios: Tag mode (field group 'Filter / sort order')
----------------------------------------------------
- Any (OR)
- All (AND)
- All (AND) for public searches, any (OR) if a Flickr user ID is known.
Either 'any' for an OR operator between tags, 'all' for an AND operator or
depending on the context.

All 'corresponding with a node's location and/or date field' blocks.
====================================================================
Location or geofield (choose a field machine name to use)
(field group 'Filter / sort order')
-----------------------------------
Limit the Flickr images to those that have a geo location near to the geofield
found for the node on the page the block is displayed on. If not on a node page,
all photos will be displayed. To avoid this set the visibility settings below to
Only the listed pages specified as node/*.

Date field (choose a field machine name to use)
(field group 'Filter / sort order')
-----------------------------------
Limit the Flickr images to those that are taken on or between the dates attached
to the node on the page the block is displayed on. If not on a node page, all
photos will be displayed. To avoid this set the visibility settings below to
Only the listed pages specified as node/*.

Site wide block settings
========================
Generic block configuration settings can be found in an own section at
admin/config/media/flickr. Most options are only available if the sub-module
Flickr Block is enabled.

BLOCK SETTINGS (field group)
----------------------------

Smart install of Flickr Block
-----------------------------
A checkbox (default ON). Disabled after enabling Flickr Block.
On install of Flickr Block auto create Flickr taxonomy, date and geo fields on
all node types to grab Flickr photos related to the node on the same page as a
Flickr block based on tags, a date or a location. Enable Taxonomy (core), Date
(including date_popup) and Geofield before enabling Flickr Block for the first
time (or uninstall it first).

Hide empty blocks (no media found)
----------------------------------
A checkbox. Default OFF, mainly to make sure you can access the contextual
links. That little wheel you see when you hover over blocks to edit them in
place. It is recommended to hide empty blocks once you have set up the blocks
you need. Indispensable if you use blocks that dynamically show photos with
Flickr tags being similar to terms attached to a node.

Wrap the album title in an HTML heading tag (only for blocks)
-------------------------------------------------------------
Use 'p' for no style, e.g. 'h2' for a heading style or 'none' to not display an
album title. Use your browser inspector to see how other blocks are styled.

Refresh rates
-------------
It is recommended to set two different refresh values for random (default 23
hours) and other blocks (default 31 hours) to avoid they refresh all together.
Lower values impact performance negatively. Consider to use cache warming.

Number of photos per set
------------------------
How many photos display per set on blocks that display multiple photosets.

Node author blocks
==================
You find instructions targeted to editors that don't have block administer
permissions at https://drupal.org/node/2279003#block. They can make use of the
'Node author' blocks to show photos of their Flickr account that have Flickr
tags similar to taxonomy terms they attach to a node they write. This way they
are able to add matching Flickr photos with their posts without the hassle of
uploading them on the site. Remember to give site editors also the permission to
specify a Flickr identifier on their account.

A Flickr Block inside the node body
===================================
Use Block Inject to put a Flickr Block inside your node body.

Create new Flickr blocks
========================
You can create new Flickr blocks also through admin/structure/block/add, using
the Text format that contains the Flickr Filter. See
https://www.drupal.org/node/2171503#blocks.

File

block/README.txt
View source
  1. The content of this file is based on the online documentation that can be found
  2. at https://drupal.org/node/2171249
  3. It is recommended to read it there, as it is more detailed.
  4. NAME
  5. ====
  6. Flickr Block
  7. Part of the Flickr module. Project page at https://drupal.org/project/flickr
  8. OVERVIEW
  9. ========
  10. Flickr images or slideshows in blocks to show for example recent or random
  11. images from a specific user, photoset, gallery or group.
  12. - Configure the size, media type (photo/video) and number of images to show.
  13. - With visibility by role or path.
  14. - Blocks can be placed in any theme region.
  15. There are several blocks that show the Flickr photos of a corresponding node
  16. author 'dynamically' and appear on posts written by the user and on their user
  17. profile pages. To avoid that, change the block settings to exclude 'node/*'
  18. pages or show them only on 'user/*' pages.
  19. Of course you can do it also the other way around to show a block only on a node
  20. page. You can fine-grain it even more by selecting only a certain content type
  21. you want to show them on, for example blog posts.
  22. - Node author favorites (what they like from others, but all together)
  23. optionally corresponding with a node's taxonomy term
  24. - Node author gallery photos (arbitrary selection by author of other's photos)
  25. optionally with gallery title as term from node
  26. - Node author photos optionally corresponding with a node's taxonomy term,
  27. location and/or date field
  28. - Node author recent photosets
  29. The node author has to have permission to specify a Flickr ID on their own
  30. account (admin/people/permissions#module-flickr).
  31. The block visibility setting for the 'Node author' blocks are not only
  32. restricted by the sitebuilder in the block configuration but also by the module.
  33. The block gets displayed when the first argument of the path is 'user' or 'node'
  34. and a specific uid is available.
  35. Furthermore several sitewide blocks are available. A user, photoset, gallery or
  36. group needs to be specified in the block configuration.
  37. - Favorites corresponding with a node's taxonomy term
  38. - Group photos corresponding with a node's taxonomy term, location and/or date
  39. field
  40. - Set photos corresponding with a node's taxonomy term
  41. - User photos corresponding with a node's taxonomy term, location and/or date
  42. field
  43. - User photos with specific tags
  44. - User recent photosets
  45. INSTALLATION / UPGRADING
  46. ========================
  47. To have dynamic Flickr Blocks that use a node's:
  48. - taxonomy terms to grab identical tagged photos from Flickr
  49. - date fields to grab photos taken in the period of a node date
  50. - location or geofields to grab photos taken near the location of a node
  51. it is recommended to enable before installation or upgrade of the sub-module
  52. Flickr Block:
  53. - the core Taxonomy module. It will create a dedicated 'Flickr tags' vocabulary
  54. and a preconfigured term reference field. This is optional as any free tagging
  55. vocabulary can be used, but convenient as it saves some configuration.
  56. - the Date Popup module (sub-module of Date). It will create a dedicated 'Flickr
  57. date taken' field on nodes.
  58. - the Geofield module. It will create a dedicated 'Flickr location' field on
  59. nodes (latitude/longitude).
  60. To avoid the above mentioned 'smart install':
  61. - disable the mentioned modules before install of Flickr Block (first time
  62. enable or after uninstall)
  63. OR
  64. - enable first the Flickr main module and unselect the 'smart install' checkbox
  65. at admin/config/media/flickr under 'Block options', then install Flickr Block.
  66. BLOCK CONFIGURATION
  67. ===================
  68. Fields in the block settings that apply on all blocks.
  69. ======================================================
  70. Block title
  71. -----------
  72. This is an extra block title that normally stays empty as a title is already
  73. added that shows info about e.g. the photo order, the tags used to filter on,
  74. the album title, location, date range and Flickr user. You can suppress this
  75. title with CSS, e.g for the 'Flickr: User photos with specific tags' block
  76. ($delta=11):
  77. #block-flickr-11 .flickr-album-heading {
  78. display: none;
  79. }
  80. Show n photos (field group 'Display')
  81. -------------------------------------
  82. The block will display this many photos.
  83. Size of photos (field group 'Display')
  84. --------------------------------------
  85. Select the size of photos you'd like to display in the block.
  86. NOTE:
  87. For square images ('s': 75px and 'q': 150px) no real width needs to be fetched,
  88. giving it a slight performance advantage over other sizes. Recommended if you
  89. include many images.
  90. Use size=x for a slideshow over the full region width (responsive). Size=y
  91. for a basic version.
  92. Minimum image width to display a title caption (field group 'Display')
  93. ----------------------------------------------------------------------
  94. Small images have liitle space for a title caption. Replace it with the text
  95. 'Flickr' that links to the photo page on Flickr to comply with their Guidelines.
  96. Set it to '0 px' to always include or '999 px' to always exclude. To give proper
  97. attribution this should be included (space allowing).
  98. Minimum image width to display date, location, photographer and optionally
  99. license info under the caption (field group 'Display')
  100. ------------------------------------------------------
  101. Suppress extra info on small images. Set it to '0 px' to always include or '999
  102. px' to always exclude. To give proper attribution this should be included (space
  103. allowing).
  104. Media type (field group 'Filter / sort order')
  105. ----------------------------------------------
  106. - all
  107. - photos (default)
  108. - videos
  109. Note that for videos a still image representing the video is shown. If you use
  110. Colorbox it can be played with the possibility to toggle to fullscreen. See
  111. https://drupal.org/node/2226579#video.
  112. All 'User' and 'Group' blocks.
  113. ==============================
  114. Flickr User or Group ID
  115. -----------------------
  116. A valid Flickr User ID, alias, username or email address. If this is left blank,
  117. the site's default user will be used if set. Emails or usernames (that might
  118. change at any given time) are internally (in the variable) replaced with a
  119. stable NSID (Flickr ID number). These are rendered in this field as Flickr
  120. usernames. 'Maria Emanuela' is human readable, '43937662@N05' is not. Internal
  121. the module still uses the Flickr ID number as it is more reliable.
  122. For groups the ID (number) or alias can be used.
  123. All 'corresponding with a node's taxonomy term' blocks.
  124. =======================================================
  125. Flickr tags as node taxonomy terms (choose a vocabulary to use) (field group
  126. 'Filter / sort order')
  127. ----------------------
  128. Limit the Flickr images to those that have a Flickr tag identical to the terms
  129. found for the node on the page the block is displayed on of a specific
  130. vocabulary. Case insensitive, matches any tag, for photosets even partial.
  131. Multiple tags for groups will only query the last 500 photos on Flickr (slowest
  132. API request). For user blocks the Flickr account of the node author will be
  133. queried. Flickr removes spaces from multi word tags (e.g. 'beach trip' becomes
  134. 'beachtrip'). Multi word tags in Drupal can be used as spaces are stripped to
  135. make a Flickr request. For your content type, adjust the Help text of the used
  136. taxonomy field accordingly (e.g. at
  137. admin/structure/types/manage/article/fields/field_tags). The recommended widget
  138. type is Autocomplete term widget (tagging) with an unlimited number of values.
  139. If taxonomy was active at the moment of install, a vocabulary Flickr tags is
  140. already configured right by default. You should find Flickr tags as a Term
  141. reference field on your content type. It works out-of-the-box. If not on a node
  142. page, all photos will be displayed. To avoid this set the visibility settings
  143. below to Only the listed pages specified as node/*. Note that if you add this
  144. term reference field to user profiles at admin/config/people/accounts/fields it
  145. will filter additionally on it for user blocks. E.g. a user can set individually
  146. that from their account only photos tagged 'website' should be used to embed,
  147. independent from other used tags. Does apply only on user blocks, except for
  148. favorites.
  149. Checkbox: Extend to search for matching terms also in the Flickr photo title and
  150. description besides Flickr tags. This limits the tag mode below to 'any' (OR).
  151. (field group 'Filter / sort order')
  152. -----------------------------------
  153. Shows more results if true.
  154. Radios: Tag mode (field group 'Filter / sort order')
  155. ----------------------------------------------------
  156. - Any (OR)
  157. - All (AND)
  158. - All (AND) for public searches, any (OR) if a Flickr user ID is known.
  159. Either 'any' for an OR operator between tags, 'all' for an AND operator or
  160. depending on the context.
  161. All 'corresponding with a node's location and/or date field' blocks.
  162. ====================================================================
  163. Location or geofield (choose a field machine name to use)
  164. (field group 'Filter / sort order')
  165. -----------------------------------
  166. Limit the Flickr images to those that have a geo location near to the geofield
  167. found for the node on the page the block is displayed on. If not on a node page,
  168. all photos will be displayed. To avoid this set the visibility settings below to
  169. Only the listed pages specified as node/*.
  170. Date field (choose a field machine name to use)
  171. (field group 'Filter / sort order')
  172. -----------------------------------
  173. Limit the Flickr images to those that are taken on or between the dates attached
  174. to the node on the page the block is displayed on. If not on a node page, all
  175. photos will be displayed. To avoid this set the visibility settings below to
  176. Only the listed pages specified as node/*.
  177. Site wide block settings
  178. ========================
  179. Generic block configuration settings can be found in an own section at
  180. admin/config/media/flickr. Most options are only available if the sub-module
  181. Flickr Block is enabled.
  182. BLOCK SETTINGS (field group)
  183. ----------------------------
  184. Smart install of Flickr Block
  185. -----------------------------
  186. A checkbox (default ON). Disabled after enabling Flickr Block.
  187. On install of Flickr Block auto create Flickr taxonomy, date and geo fields on
  188. all node types to grab Flickr photos related to the node on the same page as a
  189. Flickr block based on tags, a date or a location. Enable Taxonomy (core), Date
  190. (including date_popup) and Geofield before enabling Flickr Block for the first
  191. time (or uninstall it first).
  192. Hide empty blocks (no media found)
  193. ----------------------------------
  194. A checkbox. Default OFF, mainly to make sure you can access the contextual
  195. links. That little wheel you see when you hover over blocks to edit them in
  196. place. It is recommended to hide empty blocks once you have set up the blocks
  197. you need. Indispensable if you use blocks that dynamically show photos with
  198. Flickr tags being similar to terms attached to a node.
  199. Wrap the album title in an HTML heading tag (only for blocks)
  200. -------------------------------------------------------------
  201. Use 'p' for no style, e.g. 'h2' for a heading style or 'none' to not display an
  202. album title. Use your browser inspector to see how other blocks are styled.
  203. Refresh rates
  204. -------------
  205. It is recommended to set two different refresh values for random (default 23
  206. hours) and other blocks (default 31 hours) to avoid they refresh all together.
  207. Lower values impact performance negatively. Consider to use cache warming.
  208. Number of photos per set
  209. ------------------------
  210. How many photos display per set on blocks that display multiple photosets.
  211. Node author blocks
  212. ==================
  213. You find instructions targeted to editors that don't have block administer
  214. permissions at https://drupal.org/node/2279003#block. They can make use of the
  215. 'Node author' blocks to show photos of their Flickr account that have Flickr
  216. tags similar to taxonomy terms they attach to a node they write. This way they
  217. are able to add matching Flickr photos with their posts without the hassle of
  218. uploading them on the site. Remember to give site editors also the permission to
  219. specify a Flickr identifier on their account.
  220. A Flickr Block inside the node body
  221. ===================================
  222. Use Block Inject to put a Flickr Block inside your node body.
  223. Create new Flickr blocks
  224. ========================
  225. You can create new Flickr blocks also through admin/structure/block/add, using
  226. the Text format that contains the Flickr Filter. See
  227. https://www.drupal.org/node/2171503#blocks.