Jump to content


vnt

Member Since 01 Feb 2012
Offline Last Active May 15 2012 05:10 PM
-----

Topics I've Started

Delete uploaded image when I delete a record

02 May 2012 - 01:34 PM

Hi,
when I delete a record with an image uploaded, the record is delete but the image is not delete!

How do I delete the image when the record is deleted?

Thenks a lot.
Sorry for my english.
D.

Updated Italian language file

19 April 2012 - 11:43 AM

I have update italian laguage file.

view 20 records, instead of 10

16 April 2012 - 02:10 PM

How do I change the number of visible records in the list?

create 3 thumbnails from an upload

16 April 2012 - 01:38 PM

After uploading an image, I need to create 3 thumbnails:

1) thumbnails 150 x 200 - filename-small.jpg
2) thumbnails 500px - this with watermark - filename-medium.jpg
3) thumbnails 1024px - filename-large.jpg

4) Original image - filename.jpg

$crud->callback_after_upload(array($this,'create_thumbnails'));


function create_thumbnails($uploader_response,$field_info, $files_to_upload)
{
    $this->load->library('image_moo');
    //Is only one file uploaded so it ok to use it with $uploader_response[0].
    $file_uploaded = $field_info->upload_path.'/'.$uploader_response[0]->name;
    $this->image_moo->load($file_uploaded)->resize(800)->save($file_uploaded,true);
    return true;
}

Thanks a lot.
D.

change the height of the field editor tinymce?

03 April 2012 - 07:14 AM

Hi,
how do I change the height of the field editor tinymce?

D.