twitterato 21 giorni fa while (1) { sleep(3h); eat; }

An Advanced WP FlickrRSS plugin

If you’ve already used FlickrRSS in your life, you probably remember it as a good, loyal Wordpress plugin. I agree with you: it can show you sets, groups pool, public photos, it handles caching of photos. Unfortunately it lacks of some advanced costumization options:

  • You cannot personalize the code to show up for each photo (e.g. you want to link the Flickr square thumbnail to the original image, and not to the Flickr page containing the photo).
  • What if I want to cache both the square thumb and the large image?
  • Also, the parameters to pass to the plugin function are quite dirty (we don’t like long list of unexplained parameters, do we?)

Well, I modified the FlickrRSS plugin to satisfy the above needs and as soon as possible I’ll try to contact Dave Kellam, the original FlickrRSS author, to let him know about this modified version, so hopefully these will be soon included to the trunk. In the meantime, you can download the modified source code here, as we’ll need it to continue the tutorial.

Here you have all the params you can pass to your reborn FlickRSS plugin. Please note that all of them are optional, just like the original plugin, but they are passed as an associative array, so you don’t have to remember the correct order and fill the call with all those ugly null parameters. Please note that if you do not specify them, the default values setted up the plugin Settings page will be used instead.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$settings = array(
 
  /*== Content params ==*/
 
  // What Flickr images you want to show? Possible values: 'user', 'favorite', 'set', 'group', 'public'
  'type' => 'public',
 
  // Optional: To be used when type = 'user' or 'public'
  'tags' => 'sunflowers',
 
  // Optional: To be used when type = 'set' 
  'set' => '',
 
  // Optional: Your Group or User ID. To be used when type = 'user' or 'group'
  'id' => '',
 
  'do_cache' => false,
 
  // What are the image sizes we want to cache locally? Possible values: 'square', 'thumb', 'small', 'medium' or 'large', provided within an array
  'cache_sizes' => array('square'),
 
  /*== Presentational params ==*/
 
   // The number of thumbs you want
  'num_items' => 4,
 
   // the HTML to print before the list of images
  'before_list' => '<div class="flickr_gallery">',
 
  // the code to print out for each image. Meta tags available:
  // - %flickr_page%
  // - %title%
  // - %image_small%, %image_square%, %image_thumb%, %image_medium%, %image_large%
  'html' => '<a href="%flickr_page%"><img src="%image_square%" /></a>',
 
  // the default title
  'default_title' => "Untitled Flickr photo", 
 
  // the HTML to print after the list of images
  'after_list' => '</div>'
 
);

If you have any problems with it, please report them here! In a couple of days I’ll post a tutorial on how to use this modified version of FlickrRSS plugin to create your own, beautiful, Fancyboxed, polaroid Flickr galleries inside Wordpress.

Giovedì 4 Settembre 2008

17 Commenti to “An Advanced WP FlickrRSS plugin”

  1. [...] Read the rest here: An Advanced Wordpress FlickrRSS plugin [...]

    An Advanced Wordpress FlickrRSS plugin il giorno Giovedì 4 Settembre 2008 alle 4:49 pm
  2. [...] Go to the author’s original blog: An Advanced Wordpress FlickrRSS plugin [...]

    An Advanced Wordpress FlickrRSS plugin il giorno Giovedì 4 Settembre 2008 alle 6:08 pm
  3. [...] recorded first by rybesh on 2008-09-16→ An Advanced Wordpress FlickrRSS plugin [...]

    Recent URLs tagged Plugin - Urlrecorder il giorno Mercoledì 17 Settembre 2008 alle 4:31 pm
  4. Sorry, but it doesn´t work. I always get other pictures than mine. I guess, your pics???

    Reb il giorno Mercoledì 1 Ottobre 2008 alle 2:50 am
  5. Way awesome. Much better than the old one. And I did the modified lightbox as well. That was wicked awesome too. How hard would it be to randomize the photos that FlickrRSS grabs? I’d like for my “gallery” to show a random 20 photos from my flickr account each time.

    Kjell il giorno Mercoledì 8 Ottobre 2008 alle 12:18 pm
  6. [...] of Fancybox, the jQuery lightbox-like plugin, and the pngFix plugin for IE6. Finally, download the Advanced FlickrRSS plugin for Wordpress I posted [...]

    Create Fancybox Flickr galleries inside Wordpress with FlickrRSS | Stefano Verna il giorno Mercoledì 8 Ottobre 2008 alle 10:22 pm
  7. Excellent modification to the original plugin. Being able to edit the “Item HTML” from within WP admin is very useful.

    Chuck http://www.freddibnah.co.uk/

    Fred Dibnah il giorno Venerdì 17 Ottobre 2008 alle 3:12 pm
  8. [...] 8) Advanced Flicker [...]

    16 Practical Wordpress Plugins for advanced users | StayUpdate.com - Want to stay up to date? il giorno Giovedì 11 Dicembre 2008 alle 9:43 pm
  9. This is a great plugin. However, I am having trouble when adding it to more than one widget sidebar. If it is added to one, I can’t add it to another. I have to take it off a sidebar to put it on another one.

    Craig il giorno Mercoledì 14 Gennaio 2009 alle 1:44 am
  10. Greetings. Trying to get flickrRSS to work on this POLAROID theme but no luck! I am a newbie and would also be grateful for any tips on further mods to this nice theme… Are there any great 101 tutorials online?

    Ari il giorno Giovedì 22 Gennaio 2009 alle 10:31 pm
  11. [...] Advanced Flickr RSS [...]

    Wordpress Extension Pour Contenu Autogénéré | Le Pixel Shoppe il giorno Domenica 1 Febbraio 2009 alle 3:44 am
  12. This plugin has been superceded by FlickrRSS 5.0, is that correct?

    donnacha | WordSkill il giorno Lunedì 16 Febbraio 2009 alle 11:17 pm
  13. I want to pass the post title and category name to the ‘tags’ parameter so that Flickr images are dynamically displayed based on the title and category.

    I don’t know PHP. I tried the code below but it didn’t worked.

    posttitle); $tags = thetags(”); getflickrRSS(array(’numitems’ => 12, ‘type’ => ‘public’, ‘tags’ => $tags, $title));

    I appreciate your help! ?>

    Reliance Insider il giorno Lunedì 9 Marzo 2009 alle 3:59 am
  14. Posting the code again for the above comment

    posttitle); $tags = thetags(”);
    getflickrRSS(array(’numitems’ => 12, ‘type’ => ‘public’, ‘tags’ => $tags, $title)); ?>

    Reliance Insider il giorno Lunedì 9 Marzo 2009 alle 3:59 am
  15. Hi Stefano. I use your plugin in my blogsite… it’s perfect, but i would have 22 imgi instead of 20. Where do I edit the php file?

    Thanks in advance!

    Roberto il giorno Mercoledì 10 Giugno 2009 alle 1:48 pm
  16. Hi! any answers from Reliance Insider’s questions?? I’m looking forward to it. I want flickrss to dynamically get tags from POST TAG.

    mike il giorno Giovedì 10 Settembre 2009 alle 8:13 am
  17. How the images get RANDOM mode? They are static!

    nFormas il giorno Martedì 15 Settembre 2009 alle 1:34 am

Lascia un Commento