timthumb.php fix for blogs.dir directory on WordPressMU

If you’re using timthumb in your wordpress theme on WordPressMU and it’s not finding certain files, this may be why:

WordPressMU uses the blogs.dir directory to store uploads. timthumb’s search routine when looking for images to resize doesn’t include this directory.

Here a modified version I created that does include the dir:

https://markmaunder.com/timthumb.txt

You will need to add the following query param to all your timthumb.php URL’s when using this version:

blogid=<?php echo get_current_blog_id(); ?>

That way timthumb knows which blogs.dir directory to look in for images.

Comments

One response to “timthumb.php fix for blogs.dir directory on WordPressMU”

  1. marcos antonio Avatar
    marcos antonio

    Not able to use their solutions in a u-design theme called … you guys could help me? thank you

Leave a Reply

Your email address will not be published. Required fields are marked *