views:

180

answers:

1

I'm running a stock copy of tim thumb on a clients website. Works great but does not support external hosts for the pictures. My clients uses an amazon CDN / Flickr for all of their websites pictures which doesnt allow me to resize on the fly.

Has anyone found a work around for this?

http://code.google.com/p/timthumb/

A: 

If you've PHP 5.0+ you should be able to get it to work by adding the CDN address to $allowedSites.

function checkExternal ($src) {

    $allowedSites = array(
        'flickr.com',
        'picasa.com',
        'blogger.com',
        'wordpress.com',
        'img.youtube.com',
    );

See here (line 556).

Alix Axel