⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Image crud - adding description field issue



Rhinni

Rhinni
  • profile picture
  • Member

Posted 24 May 2013 - 18:51 PM

Hello all,

 

I recently started using image crud and I love it. However, I want to add an description field to my images.

 

I managed to add the field and to load the current description from the database. But for some reason it doesn't update the description when you add or change it.

 

I only changed the default imagecrud files.

 

Live example: http://www.creationsonrequest.com/azzeria/CodeIgniter_2.1.3/index.php/images_examples/frontpage/

 

note the (error) difference between insert_title and insert_description when browsing to the directory:

 

http://www.creationsonrequest.com/azzeria/CodeIgniter_2.1.3/index.php/images_examples/frontpage/insert_title

http://www.creationsonrequest.com/azzeria/CodeIgniter_2.1.3/index.php/images_examples/frontpage/insert_description

 

 

files: http://www.creationsonrequest.com/imagecrud.zip (or see attachment)

 

Thanks alot in advance!


prabinkarma

prabinkarma
  • profile picture
  • Member

Posted 15 June 2013 - 00:46 AM

hello Rhinni,

 

check your image_crud library on line no 494. The code you have put is

 

 

elseif(isset($rsegments_array[3]) && $rsegments_array[3] == 'description_title')
{
$state = array( 'name' => 'insert_description');
return (object)$state;
}
}

 

 

it should be : 

 

 

elseif(isset($rsegments_array[3]) && $rsegments_array[3] == 'insert_description')
{
$state = array( 'name' => 'insert_description');
return (object)$state;
}
}

 

 

 


JpunkLy

JpunkLy
  • profile picture
  • Member

Posted 19 June 2013 - 15:08 PM

Your Code....that's Greatest.....awesome....!!

But I Have a Problem in Implementation this image_crud with my application,...

please Solve me.....

 

when I'm Load the page.....something error in List.php.....

I confused to place it the file name list.php.....

 

 

Unable to load the requested file: list.php --- #0 C:\xampp\htdocs\lembaga\application\libraries\image_crud.php(505): image_CRUD->_library_view('list.php', Array) #1 C:\xampp\htdocs\lembaga\application\controllers\Uploads.php(46): image_CRUD->render() #2 [internal function]: Uploads->image_gallery() #3 C:\xampp\htdocs\lembaga\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\lembaga\index.php(202): require_once('C:\xampp\htdocs...') #5 {main}

 

 

Where I place in folder  the file name list.php in your source...??


rahulg04

rahulg04
  • profile picture
  • Member

Posted 07 August 2013 - 08:49 AM

Hello prabinkarma,

 

Please send link of code wich adding description field issue. in image crud

i try so  many time but is not working for me and it just going to update but not save in db .