Fidgetr

Fidgetr is a WordPress widget that displays the latest photos from your Flickr photostream in an attractive manner.  It features support for themes along with very simple setup and broad compatibility. You can see two examples of the themes Fidgetr contains on the right sidebar.

Please note that Fidgetr requires PHP 5. If you are receiving an error that reads “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION” then you need to upgrade your PHP installation to use Fidgetr

Download

You can download Fidgetr from the wordpress.org plugin repository homepage for Fidgetr.

Release History

v2.5.3 – 8/17/2010
- Fixed randomized array truncation. Oops. Thanks to everyone who reported.

v2.5.2 – 8/3/2010
- Fixed links back to flickr for non-photo pools. Previous fix needed to be fixed a different way. Awesome.

v2.5.1 – 7/11/2010
- Improved CSS for crossfade and default themes
- Fixed links back to Flickr when using group pools.
- Updated French translation (credit: Sebastien Violet)

v2.5 – 6/12/2010
- Expanded randomization. (fetches 250 now)
- You can now specify NSIDs of photo pools in addition to regular users.

v2.4 – 6/5/2010
- Added option to randomize the images chosen from a photoset or latest images. This will pick randomly from the first 100 photos in the chosen set. Works with all themes.
- Crossfade theme now attempts to center its images within the sidebar.
- Changed the Flickr NSID regex to be more reliable. Credit Jeff Wishnie for the bug report.
- Fixed includes to handle HTTPS properly.
- Another AJAX username check fix (using jQuery.live to live bind events when adding new widgets in the admin panel)

v2.3.1 – 5/31/2010
- Fixed AJAX username check
- Compatible with WP 3.0!

v2.3 – 2/1/2010
- Added French localization (credit: Sebastien Violet). More translations are welcome, please contact me if you’d like to help!
- Corrected some HTML validation problems and other small coding style fixes (credit: Sebastien Violet)

v2.2 – 1/12/2010
- Slimbox (lightbox) option for all themes. Check it on a per widget basis to have users go to a larger version inside Slimbox instead of being taken to the Flickr page.
- Centered default theme when sidebar is larger than the images and other small CSS fixes.
- Several improvements for Opera 10.5 pre-alpha (shadows, rounded corners)

v2.1.4 – 12/31/2009
- The CSS change caused some trouble for many users. This should fix it (added the old rules in addition to the new + slightly more specificity)

v2.1.3 – 12/27/2009
- Improve CSS specificity for all themes. This should improve the look of the widget in many cases.
- Changed some JS load timing (faster when other page elements hang)
- Upgraded slimbox to 2.03
- Further simplified flickrApi class to solely use Snoopy (removed curl)

v2.1.2 – 12/2/2009
- Improve title behavior when default theme shrinks/grows (white-space:nowrap)
- Other small CSS fixes

v2.1.1 – 11/5/2009
- Completely forgot to actually include the function and hook that did the photoset AJAX
- Modified the flickrApi class to use Snoopy for data fetching. This should broaden compatibility.

v2.1 – 11/1/2009
- Changing user updates available photosets via AJAX in the widget admin.
- Refactored some functions.
- Tested with WP 2.9.

v2.0 – 10/28/2009
- Fidgetr now uses the multi-widget API. This was a very large rewrite so please let me know if you run into bugs you didn’t see in previous versions. Layout bugs are the most likely (especially in multi-widget scenarios).
- Improved/fixed some more encoding behavior related to json_encode (and dramatically improved the behavior of the non-native function for those on older PHP5 installs)
- Added timeout to prevent Flickr outages from hanging your blog. This may require additional error handling in the future.
- Upgraded grid to slimbox 2.02
- There would be more bullet points but the first one covers changes to nearly every file in the entire widget so what more can I say!

v1.3.5 – 10/23/2009
- Better UTF-8 fix. Re-enabled native json_encode and removed an erroneous stripslashes. This should allow UTF-8 through, but also parse newlines in comments without a JSON parse failure.

v1.3.4 – 10/16/2009
- UTF-8 fix. Disabled native json_encode until I can investigate why it’s hex encoding chars it shouldn’t be…

v1.3.3 – 8/18/2009
- Tested against the latest WP
- URL updates

v1.3.2 – 6/11/2009
-Fixed a JS problem with the AJAX username check exposed by 2.8.

v1.3.1 – 6/10/2009
-A few UI fixes
-WP 2.8 compatibility

v1.3 – 5/16/2009
-Altered AJAX user check to run through the standard WP AJAX hooks. This prevents a potential security issue.
-Fixed a URL pathing mistake related to the spinner animation for the AJAX.

v1.2 – 5/13/2009
-Added support for directly specifying your NSID. Some users can’t locate their NSID via search due to privacy settings or age restrictions. If you are having trouble locating your nsid you can obtain it here: http://idgettr.com/

v1.1.2 – 4/30/2009
-Fixed a bug that prevented the CSS from loading on Windows servers. (Credit RJ Howard for reporting the issue)

v1.1.1 – 4/11/2009
-Fixed an array_merge warning for new users (thanks Jane)

v1.1 – 4/10/2009
-Added support for showing/hiding photo title.
-Various other small code improvements.

v1.0 – 3/15/2009
-Numerous CSS fixes to improve the consistency of the default and crossfade themes across different WP themes.
-Incremented version to 1.0 to catch users stuck at versions earlier than 0.6.1. Welcome back to the cutting edge!

v0.6.1.1 – 3/8/2009
-This release IS due to a bug introduced in 0.6.1. Sigh…
-Fixed fatal error due to non-numeric assignment of version number.

v0.6.1 – 3/8/2009
-This release was not due to bugs introduced in 0.6, I swear!
-Reworked the crossfade theme JS to fix some bugs and dramatically simplify the code.

v0.6 – 3/7/2009
-Photoset support! Display your latest photos or photos from a photoset.
-Removed requirement for allow_url_fopen. Fidgetr now tries to use the cURL libraries first.
-A few small bugfixes.

v0.51 – 2/28/2009
-Quick fix for a short_tags mistake. Thanks to Brian for reporting the problem.

v0.5 – 2/28/2009
-Added an AJAX check to warn the user if their Flickr username/email is invalid.
-Fixed a foreach warning that could crop up if no comments were present (bug introduced in 0.41).
-Added some advanced CSS in the default theme (visible in Safari 4 only)

v0.41 – 2/24/2009
-Fixed a quote issue with fetching comments, thanks lupinehorror!

v0.4 – 2/15/2009
-Preliminary i18n support
-Better compatibility

v0.32 – 2/4/2009
-You can now use Flickr username or email to obtain your photostream. Previously only Flickr username was allowed.
-Substantial improvements to look and feel of the widget control in wp-admin. This should help reduce confusion.
-Several optimizations to reduce DB writes and queries to the Flickr API

v0.31 – 1/30/2009
-Reworked how the themes loop through the JSON object to avoid a bug with “undefined” entries. Thanks to Rolando for spotting the issue.

v0.3 – 1/29/2009
-First public release!
-Default and crossfade now support right sidebar themes with comments.
-Many small CSS fixes for various themes.
-Comment support for crossfade and other improvements.
-Continued refactoring of core code.

v0.23 – 1/26/2009
-Most of the core widget code has been refactored to make it easier to update/maintain going forward.
-Addition of crossfade theme.  This theme is not fully functional yet.

v0.2 – 1/25/2009
-Major expansion of the theming capability.  Themes can now enqueue JS and CSS.
-Addition of the “grid” theme.
-Readme.txt added
-Preliminary theme documentation added.

v0.13 – 1/22/2009
-New CSS rule in default theme to fix margin/padding inherited from promiscuous themes.

v0.12 – 1/20/2009
-Added enqueue for jQuery.

v0.11 – 1/20/2009
-width fix and other IE fixes.

v0.1 – 1/20/2009
-Initial release.  Private distribution only.

Leave a comment

110 Comments.

  1. Hi,

    I was wondering if you could tell me why my Fidgetr widget won’t show my photos. It was working fine two days ago and now it won’t show them. Please e-mail me? I’d appreciate it.

  2. TREVOR: yes!
    I too needed to do this for a client.

    I used ThickBox for the presentation. Make sure the ThickBox scripts are loaded (I just added the nice “Auto ThickBox” plugin, as I use it elsewhere too. I am sure you could do it with other lightbox-like libraries… adjust accordingly.)

    modify the appropriate theme file for fidgetr.
    i like the crossfade look, so I edited /wp-content/plugins/fidgetr/themes/crossfade.theme.php

    right after the <script … tag, incorporate this:

    for(x=0;x < fidgetrObject.photo.length;x++) {
    	if (x==0) {
    		document.write('<span style="">'+fidgetrObject.photo[x].title+'');
    	} else {
    		document.write('<span style="">'+fidgetrObject.photo[x].title+'');
    	}
    

    (I hope that makes it through the posting process!)

    basically, incorporate class=”thickbox” in the anchor tag, change the href to be the fidgetrObject.photo[x].url_med…

    I think this would be a great feature to incorporate into fidgetr in the future. i will happily send my code along if Paul would like to see. right now its ‘dumb’ (no toggle switch in the widget admin panel, no test for thickbox libraries) but that shouldnt be a big deal.

    cheers,
    Will

  3. Hi,
    It seems fidgetr is not working correctly with special characters such as öäå. Is anyone else experiencing this problem?
    /Robert

  4. Fixed, thanks for the report Robert!

  5. Hi, the Plugin works very well!
    Is it possible to use it to show two or three Flickr set in the same homepage?

  6. Fidgetr 2.0 supports this feature, thanks for the suggestion Giovanni!

  7. Hi Will,

    I am trying to get auto thickbox to work with this, could you please advise in more detail, where to add the code to the theme file? I tried to replace the original code, with your suggested code, but it did not seem to work?

    Please help, thanks!

  8. Hullo Paul!
    We’re trying to use this on our blog and it’s throwing up this on the (cloned) test blog:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /users/webs/www.usembassy.org.uk/data/testblog1/wp-content/plugins/fidgetr/flickrApi.class.php on line 100

    Warning: file_get_contents(http://api.flickr.com/services/rest/?method=flickr.people.findByUsername&username=Paul+Kehrer&api_key=37718025c9d25aaa2f1199d8886d43a4&format=php_serial) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /users/webs/www.usembassy.org.uk/data/testblog1/wp-content/plugins/fidgetr/flickrApi.class.php on line 100

    (it has two of these in the Widget panel; file permissions are fine for this – and other! – plugins so not sure why it’s moaning?)

    Any info appreciated :-)

    Cheers,
    Oliver

  9. I’ve decided to fix this url_fopen issue once and for all and migrated to using snoopy (a PHP class that wraps fsockopen in a more elegant way). Fidgetr 2.1.1 is now released and should resolve your problem!

  10. And it works beautifully – merci buckets!

  11. Can you help me make fidgetr look better on this theme?

    I want it centered, with two images per row, with padding around each image, and a space put down below the last row so that corner image doesn’t overlap.

    Thank you so much for making this widget and for helping.

  12. Hey Paul, Love the plugin! By far the best flickr plugin around.

    Quick question… I have implemented the plugin on two sites in a widget (both in the grid template).

    When I click on the images on one site, it takes me to a black lightbox where the fullsize image comes up and I can scroll through the defined gallery — this is what I want.

    When I click on an image on the other site, it takes me to the actual image on flickr – I don’t want this…

    How can I get the lightbox functionality to occur on the site that is taking me to the flickr photo page…

    any hints?
    thanks
    Dave

  13. It’s a shame, I have php5 running, yet I’m getting the same parse error as others have gotten. :/ Seems like a cool plugin, but if it won’t work… c’est la vie.

  14. Hello, thank you for designing this plugin widget. It looks great!
    Been trying to see how to delay the crossfade time between photos. Is there a relatively easy way to do this for non-tech people like me? :)
    Thank you so much!

  15. Oh, I’m interested to know if it’s possible to to click on the images to a light/thickbox versus linking to the flickr gallery too. Thanks Paul! Appreciate your time to help me. :)

  16. If you look inside the fidgetr plugin directory you’ll see a directory called themes. Inside that there is a file called crossfade.theme.php. Find this line:

    timeOutId_number; ?> = setTimeout(‘imageRotator_number; ?>(‘+(index+1)+’)', 5000);

    5000 is the number of milliseconds between each crossfade. Change it to whatever you’d like! If you want to change how long it takes to crossfade look for the lines with “2500″ in them above this line. There are two of them, so be sure to change them both if you want to change the transition duration.

  17. Hi Paul,
    Your plugin seems great.
    Do you think I have a chance to integrate it into WP 2.05 (my current blog) ? I can tweak some php or JS but not so much.

  18. Hi Paul, thanks for your plugin, it’s just great!
    Is there a way to show pictures right in my site (using thickbox for instance) rather than showing them in flickr site?
    It works fine with the grid theme, but not with the crossfade one.

    Will you help me on this, please? :-)

  19. After last upgrade, plugin do not work well. It shows two or three pictures; not one. Why?

    look at: http://www.parrocchiasansilvestropapa.it/

  20. This was working great until the latest upgrade, now the image does not resize correctly and pushing out into my main content area. :/

    is there away to go back a version?

  21. @ kat

    .. the image does not resize correctly and pushing out into my main content area.

    I Confirm. The same for me

  22. The layout issue should be resolved now (hopefully). Let me know if anyone is still experiencing the issue after upgrading to 2.1.4.

  23. Now it’s ok. Thanks

  24. Thanks for this wonderful flickr plugin, i’m not sure if someone has asked this before, but i cannot get the images to auto sync with my blog when i add them to flickr, is there a time limit or should they sync automatically

    (If i go into the widget settings and click “save” this solves the problem and puts the latest images in) – but i’d rather have them auto sync

    Thanks

  25. Hi Paul

    Thanks for the reply to my mail. Happy that it autosyncs every 2 hours by default.

    Thanks for your help, great plugin

    Lisa

  26. hi there
    thanks for the great plug in design. im just wondering if is possible for fidgetr to change to display random picture from the set everytime i go to the site, rather than display the latest photos?

  27. I’ve added this feature request to my list. I like the idea!

  28. I really like your plugin, but my site already has shadowbox installed, I prefer it to the others. Now with your plugin loaded the images get displayed twice once by slimbox then by shadowbox, even if I’m not using the Slimbox option in your widget. So can your plugin use an already installed shadowbox.

    Cheers

  29. Hi all,

    I just release a french translation of the plugin.. the question is how can I send you the .po/.mo files so you will be able to include it in a future release?
    Thanks again for this great plugin.
    Regards.
    Sebastien

  30. Hello not sure if someone asked this before but as my site is in Italian language only,I woud love to have translated the ”Image n% of N%” when view a foto to my language.
    Any hints? thank you and great widget thanks

  31. Slimbox is, unfortunately, not localizable at this time. I’ll look into altering it though. The big changes required would be a way to pull locales into JS, the translation itself, and new graphics for the previous/next labels.

  32. Hi,

    great plugin !

    It would be nice being able to choose the size of the image displayed… (the size from flickr)

    A workaround I’ve found is to change the “_m+” with _t+” manually in the plugin editor (to reduce the size for example) but it’s overwritten on each update.

  33. Hi Paul,

    Using version 2.3 and having 2 issues. 1 is that despite having the slimbox option checked, it is taking me to the flickr homepage for any of the widget types. 2) the crossfade widget shows only the first photo in the set and never changes. I’ve tried it with wordpress 2.9.1 and 2.9.2 with the same issues.

  34. I installed version 2.3 but when I tried to activate it I got the following error message:
    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/j/c/o/jcowlin/html/wp-content/plugins/fidgetr/fidgetr.php on line 24
    Is there an easy way for me to fix this?

  35. Hi: I can’t configure the widget. After I add my user ID and click save it reverts back to your name.

    How can I fix this?

  36. Fidgetr refuses to take NSID’s (Using WP 2.8.4 with Fidgetr 2.3.1)

    When I enter an NSID into the “Flickr Username/Email Address/NSID” field in the widget and hit save, the widget rejects the NSID and redisplays the default username “Paul Kehrer”

    I’ve verified the NSID is valid.

    Any idea what’s happening?

  37. This bug is resolved in 2.4 (along with numerous other improvements!)

  38. Thanks Paul–2.4 worked fine with my user account NSID and 2.5 is working like a charm with a group pool NSID.

    Great plugin, thank you for the effort

  39. Hi, Paul,

    I’m having a problem with Fidgetr linking to my Group pool. I’ve entered my group’s NSID and the widget is grabbing the photos that are in the pool. But when you click on the images, I get sent to a link like this:

    http://www.flickr.com/photos/NSID/4724906082

    and I get this error:

    Page Not Found
    Oops! Looks like you followed a bad link.

    instead of my group page or the photographer’s page that the image is diplayed.

    I’ve removed the widget for now. ist here anything I can tweak to get this to work? Thanks, Paul

    =M=

  40. Hi – I am a rookie that needs some help. I have the page published and the widget is working perfectly. I’d like to move it over to a PAGE rather than the navigation. How would I do this? Thanks.

  41. An awesome enhancement to this would be to allow a user to select a Tag to pull from instead of (or in addition to) a Set. Actually, what I would love is “Latest Sets”, but Flickr makes pulling a feed of sets hard. What I do is tag the picture I want to be the “cover” of the set, and this is easily pulled as a feed.

  42. And actually, getting the list of sets isn’t that hard anymore, it just doesn’t quite match up to the structure of a getPhotos call. You get a “photosets” collection of “photoset”s, with the id of the main photo being “primary”.

    I tried tweaking the plugin, but I would have to add a new class to your Api class file to call the photosets.getList call, and then modify or add a new class to build the photo urls using “primary” instead, and then call it from the plugin file itself – I got a bit too down in the weeds for a quick mod.

  43. Hey,

    as you can see I have a problem with the hspacing in the grid view. It’s not there. I can’t find the right place to put it in, too. Could you help me? I want the same space between the pictures for vertical and horizontal space. Thank you!!

  44. Is there anyway to make this configurable since the URL need not match the userid? This would break the links when giving an nsid.

    private function buildPhotoUrlArray($photo) {
    if(is_array($photo)) {
    //this SHOULD mean it is a photo pool since the user_id and owner don’t match.
    /*if($this->user_id != $owner) {
    $flickrUrl .= “/in/pool-{$this->user_id}/”;
    }*/

  45. Ok, I feel like an idiot but I cant get my photos to display. If I leave the default info(Paul’s) I see photos but when putting in my own user id it doesnt give me a list of photo sets to choose from. Only Latest photos, and nothing displays. Do u have to be a pro mbr to make this work?

  46. Hi,
    I can’t seem to get the grid view to only show a few images I’ve set via your widget :(

    The other hemes work… the default, and the fader, but not the grid.

    Otherwise it’s awesome.

    i do have other plugins to display flickr in my posts and pages, but I’ve turned them all of and it doesn’t seem to have an effect.

    any ideas?

  47. The grid show ALL my images when set to random, I just want a few to show. All other features seem to work just fine though :)

  48. Just released 2.5.3 to fix this bug. Oops! Thanks for the heads up. It should appear as an update in the next few hours for you.

  49. I’m recieving a “Fatal error: Call to a member function fidgetr_images() on a non-object in…”

    I want to show the images on a single page and this is the code I’ve written:

    fidgetr_images(); ?>

    What’s wrong there?

    Thanks a lot, it’s a great widget!

Leave a Reply


[ Ctrl + Enter ]