I think this is an issue with latest version of timthumb. If new version of timthumb fixes this, I’ll update it in next version or I’ll roll it back to old version.
Yes. I think it’s a problem with displaying images from OTHER urls. Because when I try to load an image which is from the same domain which timthumb is hosted, it loads perfectly.
Eg: http://www.islandcrisis.net/photos/wp-content/plugins/awesome-flickr-gallery-plugin/afg_img_rsz.php?src=http://www.islandcrisis.net/wp-content/uploads/2010/08/rohypnol.jpg&q=100&w=240&h=240
However try loading from Flickr or even from another domain. It fails. Maybe some settings within timthumb you need to configure?
I’ve already allowed it to fetch images from Flickr.
https://github.com/ronakg/Awesome-Flickr-Gallery/blob/master/afg_img_rsz.php
This looks like a bug in latest version of the script.
Anyway to have the previous version of timthumb? I just can’t find one online. Checked some previous themes and I’ve already updated all.
Alternatively I was thinking if we can tweak the default sizes you provide. Eg the Medium size.. it says Max 500px. I can’t find where you have defined the configs in your codes.
Assume I wish to tweak the Medium predefined size to be like..for eg: 300 px max with same height directly in the code. Where do I find this? It should be a temporary fix till timthumb goes fine again.
Thanks.
Predefined sizes are what I get from Flickr. They are not defined in the plugin.
To get a previous version of timthumb, you can get it from plugin itself. You can download any previous version of the plugin and replace the script from there.
http://wordpress.org/extend/plugins/awesome-flickr-gallery-plugin/download/
Ah ok! That was easy lol. Thanks. But I wonder if the older timthumb might be having some security issues? If you can modify the plugin to create width and height as options and then echo them in the display code, will be better right?
Alternative I found a way we can hard code the image size:
In awesome-flickr-gallery-plugin/index.php we can replace:
$disp_gallery .= “<img class=’afg-img’ src='{$timthumb_script}{$photo_url}{$timthumb_params}’ alt='{$photo_title_text}’/>”;
with
$disp_gallery .= “<img class=’afg-img’ src='{$timthumb_script}{$photo_url}{$timthumb_params}’ alt='{$photo_title_text}’ width=’230′ height=’230’/>”;
Not a nice hack if we have to keep changing the size or use different display size across other pages but working around since I badly need the 230×230 size in my theme.
Cheers.
Thanks for the temporary workaround Hatrezie. Really glad to see you’ve implemented this Ronak. I was one of the people who originally requested it.
Just upgraded to Version: 3.3.5 and unfortunately this broke it again. Will implement the fix described by Hatrezie again, but would appreciate it if either this is fixed in the next version OR that it will specify that it isn’t fixed yet in the release notes so I will hold off on updating.
The fix will only work with colorbox, NOT with highslide.