The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Plugin: Yet Another Related Posts Plugin] Does YARPP play nice with timthumb? (21 posts)

  1. Arneby
    Posted 6 years ago #

    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?

  2. @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.

  3. Arneby
    Posted 6 years ago #

    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 :)

  4. 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.

  5. Arneby
    Posted 6 years ago #

    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="">

  6. 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.

  7. Arneby
    Posted 6 years ago #

    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.

  8. Best of luck.

  9. archondigital
    Posted 6 years ago #

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


    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

  10. clarklab
    Posted 6 years ago #

    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.

  11. archondigital
    Posted 6 years ago #

    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.

  12. @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.

  13. clarklab
    Posted 6 years ago #

    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.

  14. @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.

  15. archondigital
    Posted 6 years ago #

    @mitchoyoshitaka thanks for the tweet

  16. @archondigital no, thank you! :)

  17. SAkErFA
    Posted 6 years ago #

  18. SAkErFA
    Posted 6 years ago #

    hello mitcho, I've got a high content site - dprogram.net and I'm wondering what the best strategy would be for this plugin. Fully activated this guy has the site in a crawl..

  19. yashmistrey
    Posted 5 years ago #

    i tried all related post thumbnail but no any plugin work

    i tried yarpp
    similar post
    related post thumbnail
    related posts
    but no plugin work

  20. Sorry to hear that, yashmistrey. I assume post thumbnails are working for you in general?

Topic Closed

This topic has been closed to new replies.

About this Topic