After using the pflickr widget v1.0 for a while, I notice that my blog does not load fast enough and I decided to implement some caching.
While I am at it, I should add some more flexibility, allowing the user to specify the update interval of the “widget photo”. Now you can have photo of the hour, photo of the day, photo of the week,…
These two changes bring us to pflickr widget v1.1.
For installation instructions see the post of version 1.0.
The new caching mechanism will create a new table in your wordpress database to cache flickr API requests (which tend to be slow). I did not do any benchmarking to see the exact benefits but I am sure that my blog loads faster, while the additional storage overhead is a lightweight (tiny) table.
For the second feature the random number generator is fed with a timestamp seed which varies according the users selection. For example the photo of the day created with the seed DD:MM:YYYY (dmY).
Here is a screenshot of the widget admin panel.

Known issues:
When you upload photos in your stream the “widget photo” changes before the day has elapsed. This occurs because your photos in your stream are indexed from [0 - total number of photos] and after you upload new photos, the “total number of photos” changes, hence the random number generator selects and displays a different photo because the range changed.
Enjoy!
Christos

29 responses so far ↓
1 create Flickr photo tag badge blog yahoo sharing wordpress plugin widget - The Beginning // Mar 26, 2007 at 8:54 pm
[…] I have chosen for the example above to have the photos with no border or background colour and displayed horizontally. It is quite popular to have the Flickr Badge vertical in blogs and displayed in the sidebar. The Wordpress Plugin Directory has a list of plugins for the blogger to use and take advantage of flickr; SimpleFlickr, Flickr Tag Cloud Widget, Photo of the Day - Flickr Widget, flickrRSS and Flickr Widget. […]
2 WordPress Plugins Database » Plugin Details » Photo of the Day - flickr widget // Sep 24, 2007 at 12:25 pm
[…] Visit […]
3 Ufuk Eskici // Oct 19, 2007 at 12:07 am
Does not work. See:
http://ufuk38.my-place.us/
4 Henrique Vicente // Mar 14, 2008 at 5:42 am
Dear westgla,
because of your username - I suppose - there’s an err on your pflickr plugin.
You’re using the people.findByUsername.
The thing is: this let you find someone by their screen name. For example, mine is Henrique Vicente.
Rather than this method I’d use flickr.urls.lookupUser, which is the appropriate one for what you wanted with it.
5 30 Free Resources for Photoblogging and Image Galleries (Wordpress) | Speckyboy - Wordpress and Design // Mar 20, 2008 at 10:22 pm
[…] 29. pflickr v1.1 Plugin (http://www.blusb.eu/blog/2006/11/22/pflickr-v11/). […]
6 Creation » Blog Archive » 30 Free Resources for Photoblogging and Image Galleries (Wordpress) // Mar 22, 2008 at 8:36 pm
[…] 29. pflickr v1.1 Plugin (http://www.blusb.eu/blog/2006/11/22/pflickr-v11/). […]
7 In a state of thixotropy » Site Updates // Mar 28, 2008 at 6:46 pm
[…] Because of this, I added the plicker v1.1 plugin as well. It should change the “random photo” every hour (though I could put second, minute, day, week, or whatever I want!) […]
8 30 Free Resources for Photoblogging and Image Galleries (Wordpress) | onguides.net // Sep 23, 2008 at 6:42 pm
[…] 29. pflickr v1.1 Plugin (http://www.blusb.eu/blog/2006/11/22/pflickr-v11/). […]
9 » Photo of the Day - flickr widget - WordPress Plugins Catalog // Dec 12, 2008 at 7:21 am
[…] Plugin Homepage » […]
10 wordpress photo gallery plugin | Manojpareta.info // Dec 13, 2008 at 5:18 am
[…] 29. pflickr v1.1 Plugin (http://www.blusb.eu/blog/2006/11/22/pflickr-v11/). […]
11 En.nicuilie.eu Blogs » Top 1000 WordPress Plugin Authors // Dec 31, 2008 at 9:41 am
[…] Photo of the Day - flickr widget […]
12 kate // Feb 27, 2009 at 8:01 am
hi cristos, while i appreciate your creating this widget, is there any way to remove the “widget by cristos” under it on the side of my blog now?
13 Christos // Feb 27, 2009 at 8:53 am
Kate, sure you can by removing the line 150 from the phpflickr.php. Enjoy
14 30 Free Resources for Photoblogging and Image Galleries (Wordpress) | Rich Magazine // Apr 8, 2009 at 11:21 am
[…] 29. pflickr v1.1 Plugin (http://www.blusb.eu/blog/2006/11/22/pflickr-v11/). […]
15 eric // Apr 11, 2009 at 9:17 pm
Thank you for the excellent widget, but I have a quick question. My Firefox Developer shows #pflickr and #pflickr-box elements but I can’t find them in any style sheet or the widget editor. Where are they so I can customize them a bit? Thank you again, Eric.
16 Pat // May 5, 2009 at 12:12 pm
Does not work for me. After entering the api, username, etc.
I get this when I save.
%BEG_OF_TITLE%Image of the day%END_OF_TITLE%
It appears where the widget would be and I have no way to remove it unless I deactivate the plugin.
17 Strob // Jun 5, 2009 at 4:17 pm
Hi, thanks!
I would like to change to color of the title. I can’t find where. It is brown when it should be white.
Also There is no space before the title like all my other widgets…. Why?
18 20 Top Flickr Plugins For Wordpress | Blogging Tools | Blogging OT // Jun 10, 2009 at 10:49 am
[…] Photo of the Day - flickr widget: display Flickr’s photo of the Day on your blog. […]
19 Street Art & Graffitis // Jun 16, 2009 at 3:34 pm
Thanks for the advice.
20 hanh // Jun 19, 2009 at 8:19 am
i used this plugin in “qtnl42b.net”, but not work
21 LMS // Jun 28, 2009 at 1:28 am
Hi Christo,
Thanks for the photo widget. I was wondering where I can insert a target=”_blank” value so that a new window pops up and not taken away from the blog entirely.
Your help is greatly appreciated!
Thanks again.
22 LMS // Jul 2, 2009 at 9:48 pm
anyone? would also like to know if Strob had his question answered.
thanks
23 Sanne // Jul 14, 2009 at 2:14 pm
Is this plugin working with Wordpress version 2.8?
When I save my settings I get a questionmark instead of a picture… Which means he can’t find a photo.
What do I do wrong?
24 Glen // Jul 28, 2009 at 5:43 pm
How do I find out what the API key is?
25 lawrence // Aug 26, 2009 at 4:43 am
Is there a way to make it so it won’t put two of the same picture? I have over 10 photos in my photostream and I am only displaying 4 photos at a time but I often am getting duplicates..
26 Dave // Sep 23, 2009 at 6:40 pm
Hi Cristos: Wondering if there is a way to tie pflickr to a Flickr group instead of an individual username. I’m setting up a Wordpress-driven site for my son’s drumline, and we have a Flickr group with about a dozen parents who have joined and contributing photos. I hesitate to tie pflickr to any one user because each of us has a lot of photos that are unrelated to the drumline. Any suggestions or solutions?
Thanks for a great plugin!
–
Dave
27 Lutworth // Sep 27, 2009 at 8:32 pm
I can’t seem to remove the text ‘widget by christos’. I looked into deleting line 150, but to no avail. Could give me a bit more info on how i can remove the text. I like this widget, but may consider changing it if i can’t delete the text.
Thank You.
28 Colby // Nov 16, 2009 at 8:47 pm
I am also looking to find a way to have the widget open up in a new window rather then have the user taken away from my blog. Any ideas?
29 Manu // Dec 11, 2009 at 10:03 am
Hi,
plugin works, but it do not show the thumbnails sqarealike. They all one below the other. What to do?
Leave a Comment