Hatrezie
Forum Replies Created
-
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.
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.
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.
However try loading from Flickr or even from another domain. It fails. Maybe some settings within timthumb you need to configure?
Nice job! I’ll blog about your plugin soon tonight itself. ??