MobileMe Gallery


Jump to MobileMe Gallery

|
WP Widget: tumblr. Recent Photos

something like this

•Description

Display tumblr’s recent photos on your sidebar.

•Requirements

PHP version 5.1 or later version requires.
note: if you do not understand what version your server uses, please ask your server administrator for its detail.

•Install

Place the widget_tumblr_recent_photos.php file in your /wp-content/plugins/ directory and activate through the administration panel, and then go to the widget panel and drag it to where you would like to have it!

•Settings

Title: Title text for sidebar
Tumblr ID: Your tumblr ID (requires)
Number of photos to show: maimum 100, but maybe 2-10 is reasonable.
Img CSS: CSS string how you want to show photos, default is:

  • float:left; margin-right:12px; margin-bottom:8px;

Img Size: Photo’s horizontal pixel size (only 75x is square.
Display tumber link: If you check, link to your tumblr site will appear at bottom.

•Download

via WordPress.org

•Versions

* Fri Sept 19 2008 – v0.0.1
- Initial release
* Sun Sept 20 2008 – v0.0.2
- bug fixed – max number of photos
* Tue Dec 30 2008 – v0.0.3
- compatibility fix
* Jan 03 2009 – v0.1.1
- upgrade, no requires JSON lib, from this version, we are using XML
- requires PHP 5.1 or later version
* Fev 01 2009 – v0.1.2 – non release
- add: additional HTML box
* Fev 09 2010 – v0.1.3
- fixed: float bug
- adjusted: argument of image size at XML – 4:75 -> 5:75 and so on

Note for 0.0.x user: Please open option panel and re-enter options.

•If you like this

If you like this widget, writing small entry on your blog and trackbacking to this entry makes me really really happy!


14 Responses to “WP Widget: tumblr. Recent Photos”

  1. KaiaK

    Hi, V.J.Catkick,

    It’s a very nice work of widget you wrote here, well done and thanks.

    I’ve got a problem of useing it for my blog.
    Since my Tumblr uses custom domain name such as “tumblr.kaiak.tw” instead of “kaiak.tumblr.com”, I’ll receive warning messages.
    http://kaiak.tw/wp-content/uploads/2009/02/error.jpg

    Could you please let me know how can I fix it? Thank you very much.

    Best Regards,

    KaiaK

  2. V.J.Catkick

    OK, I’ve checked both your blog and tumblr page and here’s how to fix.

    open widget_tumblr_recent_photos.php and search “tumblr.com” (there’s 3 of them) and replace from

    $_tumblrurl = ‘http://’ . $tumblr_userid . ‘.tumblr.com/api/read?start=’

    to

    $_tumblrurl = ‘http://tumblr.kaiak.tw/api/read?start=’

    and replace from

    $output .=’<a href=”http://tumblr.kaiak.tw/” target=”_blank” >’;

    to

    $output .=’<a href=”http://tumblr.kaiak.tw/” target=”_blank” >’;

    Save and upload it, then open widget panel and press ‘done’. That’s all you need to do.

    Plz try.


  3. vic

    I’m not using widgets – do you have a code I can manully enter on to my sidebar?
    Thanks.

  4. V.J.Catkick

    I do not prepare non-widget version of any of my plugins because of maintenance reason. I believe that it is better to use widget-ready themes or templates fore future use.


  5. Matthias

    Hi there,

    I use this plugin for my Website. But since I installed v2.9.1 for Wordpress the plugin doesn’t work anymore.

    Warning: simplexml_load_file(http://kleinstbiotop.tumblr.com/api/read?start=0&num=1&type=photo) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable in /www/htdocs/w009dcfe/blog/wp-content/plugins/tumblr-recent-photo-widget/widget_tumblr_recent_photos.php on line 87

    Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity “http%3A%2F%2Fkleinstbiotop.tumblr.com%2Fapi%2Fread%3Fstart%3D0%26num%3D1%26type%3Dphoto” in /www/htdocs/w009dcfe/blog/wp-content/plugins/tumblr-recent-photo-widget/widget_tumblr_recent_photos.php on line 87

    Warning: Invalid argument supplied for foreach() in /www/htdocs/w009dcfe/blog/wp-content/plugins/tumblr-recent-photo-widget/widget_tumblr_recent_photos.php on line 89

    Any conclusions? Thanks for your help.

    Greetings
    Matthias

  6. V.J.Catkick

    Hi Matthias

    Ah ha, its maybe security issue on server. the error said “simplexml_load_file() cannot load data from external server” . This means the plugin tried to load data from tumblr server, but the server which you installed WordPress said ‘data is not located on my server so it will be dangerous’ or something like this.

    - or just traffic had been very heavy -

    I will chek this issue, too and will (hopefully) fix this on next version.

    thank you notice me.


  7. Brett

    Hi there,

    I have the same problem as the poster above – constantly get the error…

    Warning: simplexml_load_file(http://domain-name-removed-by-me.tumblr.com/api/read?start=0&num=1&type=photo) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Temporarily Unavailable in /home/dir/public_html/wp-content/plugins/tumblr-recent-photo-widget/widget_tumblr_recent_photos.php on line 87

    Maybe almost half of the time i load a page I get this error – and the other half it works correctly.

    Any ideas? Any way to print a simple tumblr link if the thumbnail can’t load instead of all the error code which breaks the theme?

    Great plug-in if we can just get this fixed. thanks!

  8. Jason

    Hi there,

    I am having the same problem as described above too.
    Keep getting that simplexml_load_file error.

    Any ideas?


  9. V.J.Catkick

    I’ve got reason why it happens, and it is due to heavy traffic on tumblr site. In these days, tumblr site is sometimes really heavy and it returned 503 error from its server. I started to think about new tumblr loading logic so plz wait until next version for this (or cross fingers when you load).

  10. Anton Trollbäck

    Hi, Thanks for this great plugin! I’m using it on my website currently hosted at http://trollback.se/urskog (the left box). I’m also getting this error on maybe one of three page loads.

    It’s happening whit other Tumblr plugins to so I understand that there is nothing you can do about it. So it would be great to be able to use an “alt=”url”. I tried adding this to the img tag inside the php file but when the tumbler fails to load the whole img tag disappears as well as the alt url.

    I got another problem whit this plugin. In IE6 and 7 the widget somehow creates a gap after it making my other widgets jump down and out from the container. It’s not css related as it’s the same without it.

    If you could help whit any of these problems it would be much appreciated. Thanks, Anton


  11. V.J.Catkick

    Hello Anton,

    If you want to add alt=”…” on this, change line 93:

    current code:
    $output .= '<img src="' . $photourl . '" border="0" style="' . $img_style . '" />';

    to this:
    $output .= '<img src="' . $photourl . '" border="0" alt="' . $linkurl . '" style="' . $img_style . '" />';

    *if you cannot read code due to text-wrap:
    add following code into img tag (between border=”0″ and style=”…,

    alt="' . $linkurl . '"

    And also IE6/7 problem, by removing two ‘/’ at beginning of line will (maybe) fix this issue. I will check this issue later, too.

    Thanks!

  12. Anton Trollbäck

    Thanks for the fast reply!

    It seems like the widget is crashing less now, but that might be because Tumblr is less overloaded at this time. I added the alt=”…” like you sad but it doesn’t seem to work. When it fails to load the img tag is not present and there by not the alt=”" inside it ether(?). I trying to replace the Tumblr image whit a local hosted image when the widget fails to load.

    I came up whit another question ;), is it possible to use thumbnails like in the “Tumblr Widget” plugin by Gabriel Roth? It would remove a lot of loading time. As for now I have just set a width and height on the image.

    Thanks


  13. V.J.Catkick

    Hi,

    Thanks for checking again, and I will see those issues carefully and will include in next update for this. And if you only wanted to see one image from tumblr as your site, you can use this plugin, too.
    http://www.vjcatkick.com/?page_id=7015

    Anyway, I will re-code this plugin because it is little bit old :-)


Trackbacks

  1. links for 2008-12-16 » 246 quotes

Leave a Reply

*First time to comment? Please comment in English or Japanese to avoid your comment as spam.

retaggr

TrackBack URL : http://www.vjcatkick.com/blog/wp-trackback.php?p=3008