{"id":2270,"date":"2012-03-04T00:00:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?e=2270"},"modified":"2023-12-16T13:56:20","modified_gmt":"2023-12-16T13:56:20","slug":"simple-flickr-search-update","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/simple-flickr-search-update\/","title":{"rendered":"Simple Flickr Search Update"},"content":{"rendered":"<p>Last week I was in a class doing another setup a blog\/eportfolio session using Glow blogs. The process is a bit long winded due to the way glow blogs are set up. Usually there is little time to do much more than set them up and get the pupils to do a quick test post. I usually just get pupils to use a bit of clipart to show tem how to add an image. O this occasion there was a fair mix of machines and operation systems in the room and not all had clip art. I decided to use <a href=\"http:\/\/johnjohnston.info\/flickrCC\/\">A flickr CC search toy<\/a> to let the pupil download photos with attribution stamped on. This worked fine, but there was a little confusion about naming saved files, the file name suggested is <em>stamp.php.jpg<\/em> as the images, with attribution, are generated on the fly.<\/p>\n<p>This weekend I had a quick google to see if I could find out how this can be improved. I am now using:<\/p>\n<p><code>header('Content-Disposition: inline; filename='. $title .'.jpg' );<\/code><\/p>\n<p>To give the files a title derived from the flickr image title. I also found I could cause the image to be downloaded by using <em>Content-Disposition: attachment<\/em> but decided against that at the moment. Now when pupils right click on an image they should see something like this:<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/johnjohnston.info\/blog\/images\/2012-03\/2012-03-04_flickrcc_file_dialog.jpg\" alt=\"Flickrcc File Dialog\" width=\"500\" height=\"500\" \/><\/p>\n<p>Another alternative would be to show the image on a page with instructions on right clicking to get the save dialog. Again I&#8217;ve not implemented that either.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week I was in a class doing another setup a blog\/eportfolio session using Glow blogs. The process is a bit long winded due to the way glow blogs are set up. Usually there is little time to do much more than set them up and get the pupils to do a quick test post. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[21,88,1772],"post_format":[],"class_list":{"0":"post-2270","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-wwwd","7":"tag-classroom","8":"tag-flickr","9":"tag-my-flickrcc","10":"kind-article","12":"h-entry","13":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-AC","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=2270"}],"version-history":[{"count":2,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2270\/revisions"}],"predecessor-version":[{"id":18685,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/2270\/revisions\/18685"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=2270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=2270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=2270"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=2270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}