Cross Domain Timthumb.php

Jan 11

This version of Timthumb should work out of the box with WordPress, but it was developed for MU.  I wouldn’t mess with doing relative paths, because this script is highly edited for MU.

Calling it with fully qualified URLs (starting with http or https) will work without a hitch.

Cross Domain Timthumb – Download Now!

468 ad

18 comments

  1. Dude ! thanks a billion for the script … was searching just this … i am using it on wordpress ( not MU ) … looks fine to me till now :P

  2. I’m glad that it works! Like I said, it should work for WP out of the box, but it was only tested for MU.

  3. Hi there, Thanks a million for this update. Now i can finally fill my sites with affiliate feeds.

    Great work!

  4. Thanks for the tip! I’ve been looking for the solution time for my site and you have solved … greetings!

  5. MadtownLems /

    //$src = get_document_root($src) . ‘/’ . $src;
    $src = ‘/home/jeremy/wordpress-mu/wp-content/blogs.dir/’.$blog_id.’/’.$src;
    return $src;

    This doesn’t seem like it could possibly be correct. (line 586)

    I only had a chance to try this quickly, and it worked for external sites, but it broke any other image. I’ll try to look more into it soon, but thanks for the work you’ve done!

    • Like I said, it was what had worked on my installation of WPMU, and you would probably have to modify it for your own.

  6. Thank you! This script was just what I needed! Now I need to go and fix all the other things I broke…

  7. whoaaa coool!! thank you so much :) now i can display the thumbnail, (dance)

  8. Thank you
    but please help me
    how i can use it to make Thumbnail Image to external image
    on hosting in “http://picasaweb.google.com/home”
    whats the code i can put in wordpress themes

  9. yeah, your script very help me, enormous thanks !

  10. So the problem I’m running into is that if the image is stored in the media gallery of the wordpress installation the image doesn’t get generated. However if I use an image url it gets generated without any problem. any ideas on how to fix this?

  11. I tried to replace my timthumb.php with your download link. but it doesn’t fix the errors. Still my thumbnails is not showing up! Please email me if you can fix my problem. Its well appreciated!

  12. Searched the hole weekend. Thx, finally found something that works! Even with a ~url!

  13. Thank you so much. You save me.

  14. Awesome, you saved me a lot of headaches :)

  15. Thanks… a very fast solution instead of editing the template file :)

  16. Hi Jeremy, i really appreciate you supplying this modified timthumb file, it’s helped me make progress with my website.

    Now the pictures show up! but theres a problem:

    They aren’t scaling like they should, with this theme the images that are parsed through timthumb are set as ‘featured image’ , which may be causing an issue? I’m not sure, if you have any ideas hearing them would be great.

    Also, is your mu fix using the latest version of timthumb, or would it be outdated?