Jump to content


Image crud - adding description field issue

image crud imagecrud field description field update

  • Please log in to reply
3 replies to this topic

#1 Rhinni

Rhinni

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 24 May 2013 - 06: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.creations...ples/frontpage/

 

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

 

http://www.creations...ge/insert_title

http://www.creations...ert_description

 

 

files: http://www.creations...m/imagecrud.zip (or see attachment)

 

Thanks alot in advance!

Attached Files



#2 prabinkarma

prabinkarma

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 15 June 2013 - 12: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;
}
}

 

 

 



#3 JpunkLy

JpunkLy

    Member

  • Members
  • PipPip
  • 15 posts

Posted 19 June 2013 - 03: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...??


Visit My Page -> http://nugashare.me.pn |  @DianNugraha702


#4 rahulg04

rahulg04

    Newbie

  • Members
  • Pip
  • 5 posts

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 .

 

 





Also tagged with one or more of these keywords: image crud, imagecrud, field, description field, update

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users