Tim Widget

We’ve just created a new widget, one that displays recent posts from a selected category, with TimThumb-resized images extracted from the Media Library.

Here are a couple of screenshots:

screenshot-1

screenshot-2

Download it via the official WordPress plugins repository.

This entry was posted in WordPress Plugins and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

24 Comments

  1. Posted February 20, 2010 at 3:15 pm | Permalink

    hi, can you add support for png images? great plugin btw!

    • Posted February 20, 2010 at 6:40 pm | Permalink

      Hey, jacob. It already supports PNG images, because TimThumb does as well. I just tested it here.

      • Posted February 20, 2010 at 7:07 pm | Permalink

        Thanks for the prompt reply. I checked documentation and I found out that it supports png, jpg and gif. Unfortunately I’m getting this error:
        PHP Warning: imagecreatefrompng() [function.imagecreatefrompng]: '/home/androbo1/public_html//android/wp-content/uploads/2010/02/011.png' is not a valid PNG file in /home/androbo1/public_html/android/wp-content/plugins/tim-widget/scripts/timthumb.php on line 297
        which results in not showing only pngs on my website. Any ideas what might be causing it?

        • Posted February 22, 2010 at 12:33 pm | Permalink

          I have no idea. It looks to me like a TimThumb problem…

          • Posted February 23, 2010 at 5:19 pm | Permalink

            Thanks for your reply. I’ll try to use it with a different version of timthumb, see if it’ll work. Again, great work on your plugins! Keep up the good work!

  2. Posted March 22, 2010 at 12:50 am | Permalink

    Nice plugin!
    Is there any way to make it display all posts regardless of category?

    Thanks!

    • Posted March 22, 2010 at 12:11 pm | Permalink

      Thanks!
      Right now there’s no way to do it. And the plugin is no longer in development, we just used it for a client and thought we might as well release it to the public domain. A simple workaround would be adding a category that contains all the posts.

      Cheers!

  3. Posted April 4, 2010 at 10:39 am | Permalink

    Hi! thanks for plugin.
    But how can i use it in the template?

    • Posted April 4, 2010 at 11:21 am | Permalink

      It’s a widget. Simply place it inside a widget area…

  4. Posted April 13, 2010 at 7:27 pm | Permalink

    When I try to modify the size and excerpt length nothing changes.

    • Posted April 14, 2010 at 10:19 am | Permalink

      I don’t really know what the problem might be. We used it for a project and it worked properly. So we also released it to the public domain, and others seem to have used it successfully.

      Try looking into the database and see if the options get updated…

  5. Posted April 15, 2010 at 9:50 pm | Permalink

    This is really great. It’s almost exactly what I’ve been looking for. One thing though. I am trying to figure out how to, once this widget is in place, exclude that category from the main area so as to avoid redundancy. It doesn’t do any good for me to have the same post in grand scale and then in smaller scale just off to the side. Any thoughts?

    I’ve tried combining this with a few other plugins which can exclude certain categories from the front page, but they aren’t compatible, and mostly turn off your widgets functions instead.

    Thanks.

    • Posted April 16, 2010 at 11:26 am | Permalink

      Just add to your WP_Query “cat=” followed by a negative sign and whatever category id you want to exclude like this:

      new WP_Query(“showposts=10&cat=-22,-12,-6″)

      • Posted May 7, 2010 at 9:42 pm | Permalink

        Oh but what a world it would be if I had any understanding of how to modify the code (I am still, slowly, understanding this).

        Meanwhile, now I’ve found that this widget is pretty perfect for a new site I’m developing for my company.

        The only problem: When I have the excerpt set to ‘0′ it ends up showing all the text of the post. If I set it to, say, 1, then it just shows the 1 word. I’d really like to have no text at all under the thumbnail if possible.

        • Posted May 7, 2010 at 10:05 pm | Permalink

          Meanwhile. I was able to look into the plugin’s code and just delete the excerpt display manually. It’s not idea, because now there is no opportunity to show any excerpt, which might come into play if I wanted to use this widget in another instance, but it’s a pretty good, easy fix for now.

          • Posted May 9, 2010 at 9:30 am | Permalink

            Well, I’m glad it finally worked out for you :)

            We haven’t thought about the option of removing the excerpt completely, and if we were to release a new version, we’d probably include this option, but since the new WordPress thumbnail feature (in 2.9), TimThumb is no longer really necessary, so developing plugins that use it doesn’t make much sense…

            Cheers!

  6. George Sully
    Posted April 18, 2010 at 5:06 pm | Permalink

    Gabriel, enjoying the plugin! Just one thing maybe you can help me with….
    How can I make the thumbnail a button link as well as the title text?

    • Posted April 18, 2010 at 8:40 pm | Permalink

      Hey George!

      You need to edit the tim-widget.php file.

      Just look for the line where it says

      echo '<img class="tim-widget-post-thumbnail" src="' . the_img($instance['width'],$instance['height']) . '" />';

      and change it to

      echo '<a href="' . get_permalink() . '" rel="nofollow"><img class="tim-widget-post-thumbnail" src="' . the_img($instance['width'],$instance['height']) . '" /></a>';
  7. Thijs
    Posted June 26, 2010 at 6:25 pm | Permalink

    Hello,

    The widget is nice, but i don’t see a thumb in the widget.
    When i look at the source code i don’t see a source at the image tag.
    I don’t know why, can someone help?

    Thanks

    • Posted June 27, 2010 at 4:40 pm | Permalink

      I’ve no idea. Taking a look at the code might help. The image is added in tim-widget.php, line 58.

  8. Posted July 21, 2010 at 3:50 pm | Permalink

    Hello, greetings from Colombia.
    I like the plugin, but if I put it in the outside column index which is the script called?
    Thank you very much.

  9. Posted August 18, 2010 at 12:46 am | Permalink

    Hi, this plugin is nice, but, if no want use how widget, only want the function and add in my theme, how do it’s ?, any idea ?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*