WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Yet Another Related Posts Plugin] Does YARPP play nice with timthumb?

[Plugin: Yet Another Related Posts Plugin] Does YARPP play nice with timthumb?

  • I believe that related posts are more likely to be clicked if they show up with nice thumbnails.

    That said, Is it possible using a yarpp-template to get it to show say 3 related posts with thumbnails by invoking timthumb.php?

Viewing 15 replies - 1 through 15 (of 20 total)
  • @arneby I don’t know what timthumb.php is. There’s a yarpp-template included which uses Yet Another Photoblog thumbnail code… maybe you could modify that.

    Mitcho, Timthumb is a on-the-fly thumbnail generator by WP superstar Darren Hoyt. http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/

    It it slowly but steadily becoming the de facto standard for generating thumbnails whenever you need them and not a minute before. And since my theme already uses timthumb all over the place it would be really nice if YARPP could too.

    And I do believe you will like it when you have a look at it 🙂

    Hmm. FYI, WP 2.9 added native thumbnail support and I just added a new YARPP template for those native thumbnail functions (in YARPP 3.1.6)… does timthumb work with that? If so, I’d love to hear what you think if you try it out.

    Mitcho, the way I understand it WP thumbnails are permanent and made beforehand whereas timthumb.php makes them on the fly to your specific needs – size and compression – and then trashes them.

    Since my 5 year old installation now has some 15 000 images in it, generating multiple sets of thumbnails in different sizes just really dont seem like a good idea.

    The syntax of timthumb.php is simple but still too hard to implement in your code for a non coder like myself.

    <img src="/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1" alt="">

    Sorry, I’m not going to be able to install another plugin and get it working in order to write a template. I don’t want to create a template and distribute it without testing. Hopefully someone else can help out.

    Mitcho, its not a plugin, its just a piece of php code that you invoke. Like a Javascript.

    But I understand your point. Thanks for answering my questions.

    Best of luck.

    archondigital
    Member

    @archondigital

    Here’s a template for YARPP I made using timthumb to display thumbnails

    http://archondigital.com/studio/wordpress/plugins/linkwithin-inspired-yarpp-template/

    I decided to use timthumb on this since I was already using it extensively on my theme.

    The next time I upgrade my blog’s theme design I’d try to use the built-in post thumbnails released with wordpress 2.9 on the entire blog and use that as well to generate thumbnails on YARPP

    Just solved this today and was coming here to share it with others, glad to see someone beat me to it!

    Mitch, been enjoying the plugin, the templating definitely sets it apart from other plugins.

    The next time I upgrade my blog’s theme design I’d try to use the built-in post thumbnails released with wordpress 2.9 on the entire blog

    Just went through exact ordeal, then through reversing it because I didn’t like it, haha. I think if I was starting from scratch it would easy to support but having hundreds of posts using a custom field for the post image and needing all my thumbs in like a half dozen sizes it ended up being a logic nightmare. Got it completely working then decided it was too heavy and yanked it, back to timthumb.

    archondigital
    Member

    @archondigital

    After a painful attempt at using the default post thumbnails, I now prefer to keep using timthumb even on new blogs. It’s just easier and more flexible and I wish it was adapted officially by WordPress.

    @archondigital, thanks for the timthumb template. I just linked to it on twitter.

    @clarklab glad you’re enjoying the templating. 🙂 I’m personally pretty proud of that feature.

    Well, bad news. I’d been using the plugin on the sandbox and I finally rolled the rebuild live tonite and this plugin absolutely killed my server. Not sure why or how but I tested it half a dozen times, on and off, with multiple users. With YARPP active and called in my templates the site slowed to a crawl, was throwing database connection errors, etc. Deactivating the plugin and removing the function immediately fixed the problem every time.

    As sad as I am to see it go, I’ve gotta drop YARPP.

    @clarklab sorry to hear. Note that you can make YARPP less database intensive by not considering nor excluding tags and categories, and not cross-relating posts and pages… also, due to the caching system, that initial spike of relatedness computation should slow down dramatically over time.

    archondigital
    Member

    @archondigital

    @mitchoyoshitaka thanks for the tweet

    @archondigital no, thank you! 🙂

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Does YARPP play nice with timthumb?’ is closed to new replies.