{"id":166,"date":"2014-05-23T23:16:07","date_gmt":"2014-05-23T23:16:07","guid":{"rendered":"http:\/\/szapp.com\/?p=166"},"modified":"2014-05-23T23:16:07","modified_gmt":"2014-05-23T23:16:07","slug":"using-wp-flickr-plugins","status":"publish","type":"post","link":"https:\/\/wsbj.com\/sorabji\/2014\/05\/23\/using-wp-flickr-plugins.html","title":{"rendered":"Using WP Flickr Plugins"},"content":{"rendered":"<p>\t\t\t\tA small furor erupted some weeks ago when Flickr announced its API was changing to all SSL.\u00a0On account of this the myriad of WordPress plugins which allow\u00a0viewing of Flickr photos through WordPress had to change their code just a bit. This happened at the same time I first started exploring WordPress\/Flickr plugins,\u00a0so many of the\u00a0plugins abandoned by their developers no longer worked. After exploring one Flickr plugin after another at wordpress.org I eventually discovered that the leading plugin of this genre, which appeared to have been abandoned by its developer had actually moved its updates to github. This was on account of some kind of licensing issue.<\/p>\n<p>Adapting the Awesome Flickr Gallery (AFG) (wish I didn&#8217;t hate the &#8220;awesome&#8221; name for it) with the Divi theme\u00a0returned a decent, clean look, but\u00a0as for content must use\u00a0two\u00a0approaches.<\/p>\n<p>Everything at sorabji.com\/pictures should eventually make it to flickr, and thus to\u00a0pictures.sorabji.com.\u00a0Everything under sorabji.com\/pictures\u00a0uses the\u00a0Gallery2 software, a well-made package I always respected but which has seen its developers move on to Gallery3 with no path to migrate Gallery2&#8217;s very sophisticated (if somewhat bloated) \u00a0system of item-level permissions. That was key to me and why I stuck G2 as long as I did.<\/p>\n<p>Gallery2 is equipped with a plugin allowing me to move all photos over to Flickr, though that comes at the expense of losing the original filenames to Flickr&#8217;s\u00a0unreadable filenames. I may use this option anyway, since there is no reason the EXIF data (including original filename) should not carry over to Flickr.<\/p>\n<div class='et-box et-warning'>\n\t\t\t\t\t<div class='et-box-content'>Holy crap, I&#8217;m wrong, EXIF data does not include the filename. Dang.<\/div><\/div>\n<p>Additionally, of the thousands of images I have stored on Flickr I want to make some available at pictures.sorabji.com\u00a0but leave most of them private (most of the thousands of images I store on Flickr are private. As\u00a0a long-time paying Pro customer I was grandfathered in with\u00a0unlimited storage as long as I keep paying, which I don&#8217;t mind doing.)<\/p>\n<p>There are most likely\u00a0other ways to do it, but one\u00a0solution to the public\/private thing\u00a0actually works well for me.<\/p>\n<p>I created an invitation-only group at Flickr, copied selected\u00a0photos marked &#8220;private&#8221; from my\u00a0photostream into that group, and voila, I was able to access them through AFG by selecting &#8220;Group&#8221; and then the group name as the gallery source.<\/p>\n<p>This required that I fix a strange bug that I could not figure out. To access my invitation-only group through AFG I would need access to my private photos. This required that I enter my &#8220;Secret&#8221; Flickr API key. I entered the secret key and clicked &#8220;Grant Access&#8221; but\u00a0only received\u00a0the unhelpful error message &#8220;<span style=\"color: #444444\">You do not have sufficient permissions to access this page.&#8221; Very odd, since I could find no mention of this error under this circumstance anywhere in the support forums.\u00a0<\/span><\/p>\n<p>Only by chance did I happen to notice something wrong with the URL which returned this error. The URL, in part, looked like this:<\/p>\n<div class='et-box et-shadow'>\n\t\t\t\t\t<div class='et-box-content'>admin.php?page=rfg_plugin_page<\/div><\/div>\n<p>The letters &#8220;rfg&#8221; are what\u00a0caught my attention.\u00a0I don&#8217;t know how or why this was wrong but that part of the URL query string should read afg, as in Awesome Flickr Gallery. RFG\u00a0was the abbreviation for Responsive Flickr Gallery, a product which I also installed and used for a bit, and which looks virtually identical to\u00a0AFG on both the front and back ends. The only difference\u00a0I can recall between the two is the AdSense integration in RFG. I don&#8217;t know how the two installations could have gotten mixed up, or if it&#8217;s some weird caching thing, but I&#8217;m glad to say I figured it out all by my bad self.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #444444\"><style type=\"text\/css\">#map_1 {clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; left: 0px; border-radius:0px;\nbox-shadow: none;}#map_1 img{clear: both; padding: 0px; margin: 0px; border: 0px; width: 100%; height: 100%; position: absolute; margin-top:0px; margin-right:0px;margin-left:0px; margin-bottom:0px; border-radius:0px;\nbox-shadow: none;}<\/style><div id=\"map_1\" class=\"OSM_Map\" style=\"width:600px; height:450px; overflow:hidden;padding:0px;border:none;\"><script data-jetpack-boost=\"ignore\" type=\"text\/javascript\">\/* <![CDATA[ *\/(function($) { OpenLayers.ImgPath = \"https:\/\/wsbj.com\/sorabji\/wp-content\/plugins\/osm\/themes\/ol\/\"; map_1 = new OpenLayers.Map (\"map_1\", {            controls:[              new OpenLayers.Control.Navigation(),              new OpenLayers.Control.PanZoom(),              new OpenLayers.Control.Attribution()              ],          maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),          maxResolution: 156543.0399,          numZoomLevels: 19,          units: \"m\",          projection: new OpenLayers.Projection(\"EPSG:900913\"),          displayProjection: new OpenLayers.Projection(\"EPSG:4326\")      } );var layerMapnik = new OpenLayers.Layer.OSM.Mapnik(\"Mapnik\");var layerCycle  = new OpenLayers.Layer.OSM.CycleMap(\"CycleMap\");map_1.addLayers([layerMapnik, layerCycle]);map_1.addControl(new OpenLayers.Control.LayerSwitcher());var lonLat = new OpenLayers.LonLat(142.837,-4.221).transform(map_1.displayProjection, map_1.projection);map_1.setCenter (lonLat,13);var lonLat = new OpenLayers.LonLat(142.837,-4.221).transform(map_1.displayProjection, map_1.projection);map_1.setCenter (lonLat,13);})(jQuery)\/* ]]> *\/ <\/script><\/div><\/span><\/p>\n<p>&nbsp;\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A small furor erupted some weeks ago when Flickr announced its API was changing to all SSL.\u00a0On account of this the myriad of WordPress plugins which allow\u00a0viewing of Flickr photos through WordPress had to change their code just a bit. This happened at the same time I first started exploring WordPress\/Flickr plugins,\u00a0so many of the\u00a0plugins [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[32],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-unrepentant","et-doesnt-have-format-content","et_post_format-et-post-format-standard"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paumAn-2G","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":0,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wsbj.com\/sorabji\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}