Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Friday, May 16 2008 @ 02:31 AM EDT
   

Flickr plugin

Plugins

The Flickr plugin displays thumbnails of Flickr photos on your site and links the thumbnails to their photo pages.

All the plugin does is to implement a [flickr:] autotag. You simply add the photo's id and it does all the rest. What is a photo id? When you view a photo on Flickr, the URL looks something like this:

http://www.flickr.com/photos/dhaun/71877803/

So here "71877803" is the photo's id. Now you simply add that id in the [flickr:] autotag after the colon:

[flickr:71877803]

When the story is displayed, it will show the photo's thumbnail instead of the autotag. Clicking on the thumbnail will take you to the photo page on Flickr (the above URL, in this example).

The plugin will get the photo's title from Flickr and display it as a title attribute when you hover your mouse over the thumbnail. If you'd rather provide your own title, simply enter it after the id:

[flickr:71877803 How to make a penguin fly]

And that's pretty much everything the plugin currently does.

The plugin uses Dan Coulter's phpFlickr class (version 1.4.3 is included with the plugin) which does all of the hard work of communicating with Flickr. It also provides caching options, as the use of [flickr:] autotags may significantly slow down your site otherwise (see the plugin's README for details).

Yes, I can imagine a lot more things that this plugin could do with the Flickr API. But currently it doesn't. It's pretty much only a proof-of-concept that I hacked together last night. I released it because I thought people would find it useful. If you have any grand plans for this plugin, then by all means grab the source and run with it (it's GPL, after all).

Oh, and because I'm lazy the included installation script only really works with Geeklog 1.4.0 although there's nothing in the plugin itself that would prevent it from working with 1.3.10 or 1.3.11. If you create the entry for the plugin in Geeklog's gl_plugin table manually, then it should work just fine on those versions.

Story Options

Trackback

Trackback URL for this entry: http://www.geeklog.net/trackback.php/flickr-plugin

Here's what others have to say about 'Flickr plugin':

Upgrades
Tracked on Tuesday, January 17 2006 @ 02:57 AM EST

Flickr plugin | 10 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Flickr plugin
Authored by: drshakagee on Sunday, January 08 2006 @ 05:24 PM EST
Awesome, this is really handy.

---
Yes I am mental.
Flickr plugin
Authored by: n4th4n on Tuesday, January 10 2006 @ 06:18 PM EST
Cool! What version of GL do I need to be at to use this plugin? Also, I'm hoping I can use this since I still can't upload images to my site now that my host is running PHP 4.4.1.
Flickr plugin
Authored by: n4th4n on Tuesday, January 10 2006 @ 06:20 PM EST
oops, didn't scroll down far enough to see the version stuff, but my other comment still holds regarding teh PHP issue.
Flickr plugin
Authored by: Dirk on Tuesday, January 10 2006 @ 06:37 PM EST

The whole point of the plugin is that you don't need to upload your photos to your Geeklog site - they are on flickr.com and stay there ...

bye, Dirk

Flickr plugin
Authored by: d404 on Tuesday, January 10 2006 @ 09:37 PM EST
wow thank's man
Flickr plugin
Authored by: ischaefer on Friday, January 13 2006 @ 01:28 AM EST
Hi there,

the plugin works well and can even be installed automatically in geeklog 1.3.11 - without any error.

One should load a newer version of the phpflickr library from the authors page to get the desired PEAR classes - if they are not already installed by another package.

Follow the installation instructions from the readme, open the admin panel and click "install" and you are done.

You should tune the configuration for caching and so on, please note that filesystem caching needs a little patch to work on php versions lesser than 4.3.0

Regards,
Ingo
Flickr plugin
Authored by: destr0yr on Tuesday, January 17 2006 @ 04:02 AM EST
this is pretty sweet. great work Dirk.

... now if i can only wrap my simple mind around track and pingbacks. weee.

---
-- destr0yr
"Light travels faster than sound. That is why some people appear bright until you hear them speak."
Flickr plugin 0.2 available
Authored by: Dirk on Sunday, April 02 2006 @ 04:25 AM EDT

Version 0.2 of the Flickr plugin is now available (from the same URL as above).

The new version introduces an extended syntax for the [flickr:] autotag that lets you choose alignment and size of the photo thumbnail:

[flickr:71877803 align:right size:square How to make a penguin fly]

See the included README for details. The img tags now also get a class="flickr-photo" to allow further styling. And the included phpFlickr class has been updated to version 1.5.1.

bye, Dirk

Flickr plugin
Authored by: cestcri on Wednesday, April 25 2007 @ 04:17 AM EDT
Nice plugin, although I had to remove it as it heavily slows down the page creation (instead of about 1 second, it often raises up to 10 seconds!). This might be due to the mentioned two calls to the Flickr API. A pity, but I just can't effort to let my visitors wait this long. Interestingly it also slows down when the images are not directly shown, i.e. when they're in the description of a post and only the abstract is shown as on the home page for instance.

Anyway, keep up the good work,
Christian
Flickr plugin
Authored by: Dirk on Wednesday, April 25 2007 @ 01:57 PM EDT

Try the caching options mentioned in the README.

bye, Dirk