There are currently a lot of problems with the timthumb.php script with WordPress multisites. A lot of themes are using the timthumb script but the script isn’t working perfectly with the multisite setup because there is an problem with the domain / files location.
By using this version of the timthumb script you can solve all these problems.
Just make sure that you use your own domain name in the script at line number 29
Update
Updated the script to version 1.28!
Instructions
Method 1:
- Download the modified script
- Change FALSE -> TRUE on line 21.
1 2 3 4 5 | define ('ALLOW_EXTERNAL', FALSE); Change into define ('ALLOW_EXTERNAL', TRUE); |
Method 2:
- Download the modified script
- Change yourdomain.com on line 34 into your own domain.
1 2 3 4 5 6 7 8 9 10 11 | $allowedSites = array ( 'flickr.com', 'picasa.com', 'blogger.com', 'wordpress.com', 'img.youtube.com', 'upload.wikimedia.org', 'yourdomain.com', ); Change yourdomain.com -> into your domain on line 34 |
14 comments
Trackback e pingback
- TimThumb upscale fix: stop timthumb from upscaling small images « Rein Aris – Blog
[...] TimThumb is hosted on http://code.google.com/p/timthumb/. I had problem with TimThumb, first off all with my multisite but i found ...
LETUSLOOK is a company founded in January 2010 by Alette Opperhuizen & Luc de Jager. The company was set up to create a solid base for advertisement income and to increase the entrepreneurship experience.
Hey great site I really enjoyed the read thank you for posting such valuable info and keeping up with the latest trends.
Wow really tried this in many other ways but this is the best fix i found so far! Works with WP 3.1.3
Bedankt
Thanks,
Just let me know if you need help!
~ LetUsLook
Mmm maybe one question.. why is TimThumb scaling up small images? It should just check if the image need to be scaled. But it scales up small images… Any solution to this?
By the way, you should use one of these plugins (http://bit.ly/iSN52e) to keep me updated from responses
Ok fixed this myself. For details read my blogpost on http://www.reinaris.nl/wp/timthumb-upscale-fix-stop-timthumb-from-upscaling-small-images/
Holy cow! I spent 4-5 hours trying to get my permissions working, and even tried modifying everything around timthumb…this fixed it instantly. Thank you so freaking much for this.
Hi, i’m looking fot a timthumb multisite edition. Is this edition of timthumb hack-proof?
Best wishes,
Gijs
It works for me, and i haven’t found problems with the script so far!
Hi, this script works only partially on my WP multisite installation. After uploading your modified script, timthumb works on the subsite (great!) but not on the main site. Do you have any ideas regarding this issue? Thanks in advance, Stefan.
It works like a charm. Thank you so much!
I love you,you save my life.I’d stuck on this issue 2 weeks but now it works like a charm only copy and paste your code.thank you again.10/10
Greetings from Germany – it works fantastic
)) Thank you so much!!!!
You”re welcome
please share it on twitter or facebook 