Quick Flickr embed
I played with a demo of Vanilla forums but didn't find a way to do what I want and I can't either find a plugin for that.
I'd like to allow forum users to embed flickr images in their posts. However I'd like to make it the easiest possible.
They should be able to paste the image url and than find the image in the post.
Is it possible?
Best Answer
-
Kasper Vanilla Staff
Alrighty, you can download the plugin here: https://github.com/kasperisager/OEmbed/archive/master.zip
It currently supports Funny or Die, College Humor, Metacafe, Blip, Hulu, Soundcloud, Flickr and Instragram. Simply post a URL from any of the sites and the plugin will automatically turn the links into embeds on-the-fly using Javascript.
NB: You'll have to rename the folder "OEmbed" when downloading it from Github. I'll release it to VF.org soon.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
5
Answers
This would be possible but only if they post a direct url to the file (i.e. http://farm9.staticflickr.com/8342/8216042555_7940020a5b_b.jpg ). However I believe it is impossible to find out the direct url if someone simply posts a link to the website containing the file (i.e. http://www.flickr.com/photos/trondk/8216042555/ ).
This is because the URL is composed of the file ID, a secret and a server farm ID. The latter two of those are not contained in the link to the website.
Thank you for the answer, I already managed to do what you suggest, but this requires going through a couple of menus.
I hoped there was some plugin I wasn't able to find that could retrieve the jpg url from the picture url.
Do you think it could be done throught the flickr API?
I guess the easiest would be to simply use the Flickr "Share" menu:
Edit: Having looked into this a bit further, it looks like oEmbed is what you're looking for: http://oembed.com/
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Thanks, I tried Flickr Share, but no option worked. What did you use, BBCode or HTML? And did you set the size of the image or is it limited to a thumbnail?
Oembed would be a solution for a plugin not for the user, right?
I've now written a plugin that uses a jQuery OEmbed library to embed all kinds of stuff client-side - Flickr images included. I'll do some testing, finish it up and release it soon-ish!
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Alrighty, you can download the plugin here: https://github.com/kasperisager/OEmbed/archive/master.zip
It currently supports Funny or Die, College Humor, Metacafe, Blip, Hulu, Soundcloud, Flickr and Instragram. Simply post a URL from any of the sites and the plugin will automatically turn the links into embeds on-the-fly using Javascript.
NB: You'll have to rename the folder "OEmbed" when downloading it from Github. I'll release it to VF.org soon.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Oooo going to get this fired up right away.
Example of most of the above.
http://onlyanexcuse.com/forum/discussion/1720/new-website-sharing-stuff#latest
I can see that my British-english got the better of me when writing the plugin; I spelled College Humor as "collegehumour" - I've just pushed a fix to the repo addressing this: https://github.com/kasperisager/OEmbed/commit/bfeed8b734fd39d44a40bc8b7922cabee7ac45ff
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
It looks great, thanks. As soon as I have time to start playing with VF I will surely install it.
I tried the OEmbed plugin and it works awesome. Thanks a lot!