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

109 Comments.

  1. Hello! I installed automatically your great plugin in my WordPress blog and it said successfully activated. But when I tried to activate it it gave me an error message:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/l/e/t/lettya7/html/naive/wp-content/plugins/fidgetr/fidgetr.php on line 28

    should i install it manually?

    Thank you!

    Leah

  2. Leah,
    It looks like something is wrong with the main plugin file on your installation for some reason. I would definitely try a manual install first (just download it from here and use that zip to install). If that doesn’t work then if you could send me a copy of the fidgetr.php file that throws that error I’d appreciate it. (You can just copy/paste the whole file and put it on http://pastie.org/ and give me the link it provides.)

  3. It’s a very cool plugin. When I use all the themes except for ‘gride’ I see an ‘undefined’ error at the bottom of the photo gallery. I had it set to show 6 Flickr pictures and right after the 6th one it said, ‘undefined’. When I used the normal view, then it had ‘undefined’ listed about 6 or so times underneath the last picture.

    Any idea what it could be?

  4. Rolando, it sounds like some of the javascript is failing on objects it can’t locate. Is there any way you can show me an example of this problem in action? If you add the widget, then save a copy of your homepage via your browser that should help me out quite a bit. The browser you’re running would also be helpful info!

  5. Hi Paul,

    I just reactivated the plugin. You’ll see it on the right sidebar. I am currently using the latest version of FireFox. I get the same ‘undefined’ error using IE and Safari.

    Let know when you are done looking at it so I could disable the widget.

    Thanks,
    Rolando

  6. I just saw your comment and pulled down all the data I need from your site. At the moment I’m not sure what is causing it, but you can remove the plugin. Hopefully I can get an updated version out to correct the bug soon. Sorry about the issue you’re seeing!

    Edit: The issue is related to prototype attaching some other indexes into the object. I have a fix and I’ll be uploading/tagging 0.31 shortly.

  7. Thanks for your quick reply Paul. Appreciate the help. I really like your plugin.

  8. Just committed up 0.31. Should appear soon! Changelog is in this post.

  9. Excellent, works like a charm Paul. Thank you! and thanks for the honorable mention.

  10. Hi Paul,

    I’ve just installed your Fidgetr plugin, and it was working fine, but all of the sudden I started getting this error:

    Warning: Invalid argument supplied for foreach() in /home/.expresso/pedrocustodio/blog.pedrocustodio.com/wp-content/plugins/fidgetr/flickrApi.class.php on line 67

    any idea on what might be causing it?
    my flickr user is pedrocustodio.

    thanks, I’ve already uninstalled and installed it again, but don’t seem to be able to locate the origin of this.. :(

    thanks for any help.

  11. Pedro,

    The bug is related to it trying to loop through a returned photo array from Flickr, but not getting any results. Fidgetr should have refused to do that, so I’ll have to investigate a bit on that end. However, it appears that your Flickr username is actually “pedro.custodio”. This should work around the issue and allow you to use the plugin.

    The username and URL path can be different in Flickr and it’s somewhat difficult to find your real username… In fact, the only 100% reliable way to find the Flickr username seems to be to load your own profile page. I will modify it to allow using your email address as well to reduce confusion.

  12. Just installed this plug-in — love it. Thanks for building it! I would like to be able to resize the photos on the “default” viewing option, would I need to do that by editing the CSS? Any guides for this?

  13. You can change the size of the photos by altering the max-width CSS rule to be “width:xx%”. Bear in mind that if your sidebar is wider than 240px then it will size the photo beyond its native size. This CSS file is located in the fidgetr/themes/theme_includes/default/ directory.

  14. Here’s my error (WP 2.7, php 5):

    Parse error: syntax error, unexpected $end in /usr/local/psa/home/vhosts/xxxxxx.com/httpdocs/wordpress/wp-content/plugins/fidgetr/fidgetr.php on line 333

  15. Wow, wibbler, could I get a copy of that file zipped and sent to my email? (paul at victoly dot com). Parse errors are obviously fatal, and absolutely shouldn’t be happening. The current release checked out from SVN has no parse errors on the PHP instances I have available to me!

  16. I tried installing your awesome plugin two different ways; once by installing it from the dashboard and again by uploading it FTP, but I get a fatal error message;

    “Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/plugins/fidgetr/fidgetr.php on line 34″

    I hope this helps.

    thanks

  17. Hi Paul!

    sorry it took me a few days to check this back. I downloaded it and installed it manually but I’m still getting the same error.

    here is the fidgetr.php file installed:

    http://pastie.org/390642

    Hope this helps :)

  18. I forgot to add this is the message i got:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in/wp-content/plugins/fidgetr/fidgetr.php on line 34

  19. Excellent!

    I’ve got everything working now.

    What file(s) do I tweak to adjust the width and the height?

  20. Hi there, really nice plugin you have there…

    I installed it and it worked.

    But the only problem I encounter is the username will not change no matter what I do.

    It’s always Paul Kehrer instead of my username or my e-mail.

    Maybe I missed something? Please tell me what should I do.

    Tq.

  21. At the moment Fidgetr goes back to my name whenever the username or email does not return as valid from Flickr. The easiest way to get your “true” Flickr username is to look at your profile (http://flickr.com/people/paulkehrer/) and see what it says (in my case the first “Paul Kehrer” is my username).

    At some point soon I am going to improve the error handling so it will be more obvious!

  22. Hey, I really like your plugin, but when I tried to install it I got this error.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nfs/c01/h02/mnt/33603/domains/treehouse-nyc.com/html/wp-content/plugins/fidgetr/fidgetr.php on line 34

    Any suggestions?

  23. This is a PHP4 issue. Fidgetr unfortunately does not work with PHP < 5.0.

  24. nice plugin…simple but eye-catching.
    doesn’t work for me when “fetch comments” is set though.
    nothing appears on the page at all…no error message…nothing but the header.
    despite that i think it’s a great addition to my blog.

  25. paul…
    the updated version (v0.41) displays the comments correctly.
    cheers for the extremely fast fix.

  26. In the version just previous to this one I had the Parse error which I was able to get rid of by only removing the trailing space after the closing php tag. This version has the same error message and same trailing space but after removing the space the error remains only up one line from what it had been. Have not the time just yet to look into this further and find out where the issue is but the plugin ver. 0.5 does not work on WP ver 2.7.1
    Parse error: syntax error, unexpected $end in /home/user/web/wordpress/wp-content/plugins/fidgetr/fidgetr.php on line 392

  27. Looks like that fixed it Paul. Works again :)

  28. I am using your plugin and I get the following error, and no matter which user name I am using it tells me the user is invalid, my flickr user name is bryanbuchan

  29. Apologies to those whose comments have disappeared. I foolishly deleted 20 legitimate comments while pruning some spam. Sorry!

  30. Is there a way to change the amount of time before the next picture is displayed in the crossfade theme?

    I tried changing the cache time setting but that didn’t change it. What does this setting do?

    Thanks.

  31. Very nice widget, does the job perfectly.
    I tried to figure out how to hide or omit the title of the image, placed in the upper left corner.
    Can you help on this?

  32. I really really really want this plugin, but when I tried to install, I got the following error message:
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in …janefancher/TheCaptainAndLime/wp-content/plugins/fidgetr/fidgetr.php on line 45

    Can you help? PLEEEEEase?

  33. Fixed Jane, apologies.

  34. Hey, you’re quick! Thanks. It’s up and running beautifully. I love it!

  35. Hi Paul,

    Widget looks great, unfortunately I have the same problem as Bryan above; it says my username is incorrect – but it isn’t!

    http://flickr.com/trouter42 is my link, username is aaron465, but fidgetr tells me its wrong! (I have also tried my email for flickr)

    Any help appreciated :D

    Aaron

  36. Hi, again!

    I just got feedback from a viewer that says the slideshow isn’t showing up in her sidebar. Of her system she says:

    “I’m using Firefox (the just superceded version, I keep getting a message to update) on an Intel Mac with OS 10.4″

    Is this to be expected? Should I put a message up to that effect?

    Thanks again!

  37. Oh, I forgot. She does get the widget banner that says “New at Flicker”, just not the slideshow, if that helps.

  38. Is there a way to pull the Fidgetr out of the sidebar and into a div into the main template file ( index.php)? Is so, what would the code be? I have tried somethings, pretty basic and I get error.

    Thanks in advance.

  39. This is a great plugin. Seems to work perfectly on Linux/Apache. Not so sure about Windows/IIS.

    I moved this blog to client’s windoze server at their insistence. Bad idea.

    Now some of the fidgetr CSS’s are throwing 404 errors, which causes a minor hiccup in Chrome. I’m not good enough with PHP to debug it myself.

    Thanks for looking into this.

    RJ

  40. The issue is now resolved, thanks for reporting it RJ.

  41. just updated to the latest version…no longer expands when the mouse hovers over it :(

  42. actually scratch that…clearing firefox’s cache seemed to get it working…sorry for the above post.
    decided to give the theme you’re using a try…nice clean look. cheers,

    col

  43. I love fidgetr. If we could have a place in the settings to set the number of seconds the pictures display, my world would be complete. Okay, not really, but it sure would be great!

  44. I think this would work well for my blog if I could just get it to work. It doesn’t recognize my username, email, or ID as being valid. I have triple checked them and all are correct. Do you know what might be causing this?

  45. Hey Paul.
    Thought I emailed a reply to your question but I’ve been so busy that I could have forgotten. My flickr id is lifeglance and I am over 18. Thanks.

  46. im using fdgtr on one blog and it has a lightbox effect. but i cant get it to do lightbox on another blog. what should i check?

  47. I’ve installed the plugin and it shows up on plugins page, but there is no settings page anywhere. Where do I go to add my flickr info?

  48. Hi Paul,

    I’m wondering if it would be possible to have the flickr photo popup right from wordpress rather than leaving the site to goto flickr site. I would like to use lightbox or shadowbox to display the photo on the my wordpress site.

    Thanks for any thoughts and for the plugin!

  49. Hi, the Plugin works well!
    Is it possible to show the description of the Picture in the template?

  50. I’m trying to resize the Figetr widget using the crossfade setting. I have tried changing the maxwidth in the css file but it doesn’t seem to effect the size. Any advice?

    Thanks,
    Jim Grant

Leave a Reply


[ Ctrl + Enter ]