Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Mohannad Najjar

    (@ma7aba-star)

    & atuo use first image in post

    Thread Starter Mohannad Najjar

    (@ma7aba-star)

    ????????????????????????

    For obvious security reasons, timthumb.php blocks any external image URL, unless that URL is added into the list of white listed websites.

    If you look into the code of timthumb.php, you’ll see an array containing white list URLS. Add picasaweb.google.com into the allowed white list.

    Thread Starter Mohannad Najjar

    (@ma7aba-star)

    Thank you very much
    But how can I add to the list
    Where do I find it?

    Open timthumb.php file and you’ll see an array of allowed websites.

    Find the following code:

    // external domains that are allowed to be displayed on your website
    $allowedSites = array (
    	'flickr.com',
    	'picasa.com',
    	'blogger.com',
    	'wordpress.com',
    	'img.youtube.com',
    );

    Now append picasaweb.google.com like this:

    // external domains that are allowed to be displayed on your website
    $allowedSites = array (
    	'flickr.com',
    	'picasa.com',
    	'blogger.com',
    	'wordpress.com',
    	'img.youtube.com',
    	'picasaweb.google.com',
    );

    That’s it.

    Thread Starter Mohannad Najjar

    (@ma7aba-star)

    You are a wonderful man
    Thank you very much
    May Allaah help you
    thank you from the depths of my heart
    I wish you success

    @ma7aba star: thanks, mate. I’m glad that it worked for you.

    This is great but what if I modified the code to use the featured image of the post (starting from wp 2.9) instead of the custom field.. But it still doesnt work!

    Any help is appreciated..
    Thanks in advance 🙂

    works on wp 3.2 … @jamal nice info, thanks for your help

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how use timthumb with external image link??’ is closed to new replies.