Hi folks,
Thanks again for grocerycrud
There's a buglet - I was wondering why images I uploaded sometimes didn't display
here it is
$is_image = !empty($value) && ( substr($value,-4) == '.jpg' || substr($value,-4) == '.png' || substr($value,-5) == '.jpeg' || substr($value,-4) == '.gif' || substr($value,-5) == '.tiff') ? true : false;
its not checking for uppercase file extension.
one of my camera's uses uppercase file extensions.
I'm sure I'm not the only one.
Hope I got this right - it was just a quick - "OMG - I know why" followed by a quick search of the code
that got me here - I was manually displaying images in a callback until I found this.
function _cb_image_callback_column($value, $row){ $imagepath=dirname(site_url())."/".$row->image_path."/".$row->main_image; $result ="<a href=\"$imagepath\" class=\"image-thumbnail\">"; $result.="<img src=\"$imagepath\" height=\"50px\"/></a>"; return $result; }
hope this can be fixed
Cheers everyone
Have a happy easter or a great weekend
Ez