diff --git a/README.txt b/README.txt index 2285c01d59a0118f0305cb58f81dd96b69c67709..6ee3ff1172d992864abd03156c113777e0aedb49 100644 --- a/README.txt +++ b/README.txt @@ -1,17 +1,15 @@ -Readme for Media: Flicker +Readme for Media: Flickr The Media: Flickr project currently offers Flickr Photoset capabilities to the -Embedded Media Field module, available at http://drupal.org/project/emfield. +Embedded Media Field module, available at https://drupal.org/project/emfield. To use it, enable the Embedded Video Field module, and add a Third Party Video field to a content type. For Thumbnails, you'll also need to apply for a Flickr -API key, from http://www.flickr.com/services/api/keys. +API key, from https://www.flickr.com/services/api/keys. After that, editors will be able to paste a URL or the embed code for a Flickr Photoset or Slideshow into the field, and it will be displayed automatically. -Additionally, that URL will be parsed automatically, so the module will know the -difference between a Flickr Photoset URL and another supported provider, such as -a YouTube video. +Additionally, that URL will be parsed automatically, so the module will know the difference between a Flickr Photoset URL and another supported provider, such as a YouTube video. Configuration: @@ -31,8 +29,8 @@ Content Creation: ---------------- (3) If you want a single image from Flickr, then use the "Embedded Image" CCK field. -Example Flickr URL: http://www.flickr.com/photos/thusthought/5156938698/in/set-72157625220814125/ +Example Flickr URL: https://www.flickr.com/photos/thusthought/5156938698/in/set-72157625220814125/ (4) If you want to use a set from Flickr, then use the "Embedded Video" CCK field. -Example Flickr URL: http://www.flickr.com/photos/thusthought/sets/72157625220814125/show/ +Example Flickr URL: https://www.flickr.com/photos/thusthought/sets/72157625220814125/show/ diff --git a/media_flickr.module b/media_flickr.module index 019ed55c77061358ced75c3fd01de6bbc4970448..8f62cd342c8d18e9e3f8d36504ba5995d66d9eb9 100644 --- a/media_flickr.module +++ b/media_flickr.module @@ -1,8 +1,8 @@ l(t('apply for a Flickr API key'), MEDIA_FLICKR_API_APPLICATION_URL), '!settings' => l(t('Embedded Media Field administration page'), 'admin/content/emfield')); + $arguments = array('!apply' => l(t('apply for a Flickr API key'), MEDIA_FLICKR_API_APPLICATION_URL), '!settings' => l(t('Embedded Media Field administration page'), 'admin/content/emfield/emvideo')); if (user_access('administer site configuration')) { drupal_set_message(t($error, $arguments), 'error'); } diff --git a/providers/emimage/flickr.inc b/providers/emimage/flickr.inc index 5d65013b4091f43c1c5028bfc28a081c4bd413c8..132546cbeb122a3e5cea0250f90ca889a8fbaa34 100644 --- a/providers/emimage/flickr.inc +++ b/providers/emimage/flickr.inc @@ -5,9 +5,9 @@ * This include processes flickr.com image files for use by emfield.module. */ -define('EMIMAGE_FLICKR_MAIN_URL', 'http://www.flickr.com/'); -define('EMIMAGE_FLICKR_API_INFO', 'http://flickr.com/services/api'); -define('EMIMAGE_FLICKR_API_APPLICATION_URL', 'http://www.flickr.com/services/api/keys'); +define('EMIMAGE_FLICKR_MAIN_URL', 'https://www.flickr.com/'); +define('EMIMAGE_FLICKR_API_INFO', 'https://flickr.com/services/api'); +define('EMIMAGE_FLICKR_API_APPLICATION_URL', 'https://www.flickr.com/services/api/keys'); define('EMIMAGE_FLICKR_REST_ENDPOINT', 'https://api.flickr.com/services/rest/'); define('EMIMAGE_FLICKR_DATA_VERSION', 1); @@ -207,7 +207,7 @@ function emimage_flickr_embedded_link($code, $data = array()) { $xml = emimage_flickr_request('flickr.photos.getInfo', array('photo_id' => $code)); $owner = $xml['photo']['owner']['nsid']; } - return 'http://www.flickr.com/photos/'. $owner .'/'. $code; + return 'https://www.flickr.com/photos/'. $owner .'/'. $code; } /** diff --git a/providers/emvideo/flickr_sets.inc b/providers/emvideo/flickr_sets.inc index a71bfa7fef143e50690d79264709220db4cec3ce..739cf6c4709df84f8825d4ceb34d2b78927ed6e7 100644 --- a/providers/emvideo/flickr_sets.inc +++ b/providers/emvideo/flickr_sets.inc @@ -48,7 +48,7 @@ function emvideo_flickr_sets_info() { */ function emvideo_flickr_sets_settings() { if (!function_exists('emfield_imagerotator_url')) { - drupal_set_message(t('You should upgrade to a newer version of !emfield if you wish support for the !player or !imagerotator.', array('!emfield' => l(t('Embedded Media Field'), 'http://drupal.org/project/emfield'), '!player' => l(t('JW Flash Media Player'), 'http://www.longtailvideo.com/players/jw-flv-player/'), '!imagerotator' => l(t('JW Image Rotator'), 'http://www.longtailvideo.com/players/jw-image-rotator/'))), 'error'); + drupal_set_message(t('You should upgrade to a newer version of !emfield if you wish support for the !player or !imagerotator.', array('!emfield' => l(t('Embedded Media Field'), 'https://drupal.org/project/emfield'), '!player' => l(t('JW Flash Media Player'), 'http://www.longtailvideo.com/players/jw-flv-player/'), '!imagerotator' => l(t('JW Image Rotator'), 'http://www.longtailvideo.com/players/jw-image-rotator/'))), 'error'); } $form['flickr_sets']['media_flickr_store_local'] = array( '#type' => 'checkbox', @@ -182,7 +182,7 @@ function emvideo_flickr_sets_embedded_link($video_code, $data = array()) { if (empty($data)) { $data = emvideo_flickr_sets_data(NULL, array('value' => $video_code)); } - return 'http://www.flickr.com/photos/'. $data['owner'] .'/sets/'. $video_code; + return 'https://www.flickr.com/photos/'. $data['owner'] .'/sets/'. $video_code; } /** @@ -194,8 +194,8 @@ function theme_emvideo_flickr_sets_flash($item, $width, $height, $autoplay, $opt $value = check_plain($item['value']); $embed = drupal_urlencode('photos/'. $item['data']['owner'] .'/sets/'. $value); $output = << - + +