⚠ 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

reuse an image uploaded before.



chocovo

chocovo
  • profile picture
  • Member

Posted 24 June 2015 - 22:39 PM

Hello,

 

In my forms I usually use...

$crud->set_field_upload('flag', 'assets/uploads/images/flags');

... and with it  I can upload one image but my question is:

 

Instead of only uploading an image, will it be possible to use again an image uploaded without the need of uploading again the same image?

 

 

Thanks for your help.

Best


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 25 June 2015 - 08:53 AM

Hi! I think GC have not built in this functionallity. But I wonder why you need using the same image more than per row.

When you will want to delete one row - you cant delete the image for this row, because mb another row refer to the same image...


chocovo

chocovo
  • profile picture
  • Member

Posted 25 June 2015 - 16:17 PM

Hello,

 

Investigating about the question I found 2 videos on youtube which combine Grocery Crud and Image Crud (http://www.grocerycrud.com/image-crud).

 

It's like what I want, an image browser that let you upload an image if you need or reuse an image uploaded before.

 

The videos are these:

https://www.youtube.com/watch?v=6LOZ48hIDjY

https://www.youtube.com/watch?v=iZRCKY5QefA

 

Fantastics videos but there is no code and I don't understand how these persons did it.

Of course, a lot of people is asking them in youtube how they did it but no answers.

 

The samples in the Image Crud Documentation (http://www.grocerycrud.com/image-crud/documentation) are very/too basics and I don't know how to make something like the youtube examples.

 

Is there somebody in this forum that can show me... us how to get it?

 

Thanks.

Best.


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 25 June 2015 - 17:45 PM

From GC and Image GC there only upload image, all another out of scope (when click on href after field "foto" open window) - I think that it using some js plugin


chocovo

chocovo
  • profile picture
  • Member

Posted 27 June 2015 - 20:06 PM

Does anybody know how to get it?


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 28 June 2015 - 13:01 PM

What are you waiting for? When somebody write you all code? Try to do smth, write beginning code, if any problems - we help you, but now there is nothing to talk about. Sorry.


chocovo

chocovo
  • profile picture
  • Member

Posted 30 June 2015 - 23:18 PM

What are you waiting for? When somebody write you all code? Try to do smth, write beginning code, if any problems - we help you....

It's like you say me... What are you waiting for? It's easy, everybody knows how to do it... Image crud is not for beginners like you...

I don't expect all the code because charity is not expected in some comunities but yes some clues, some steps to follow that help to understand how it is made....

If I don't know how to do it, of course it is not your problem, it's mine... Image crud seems interesting but if it is for experts, it's not for me.

Thanks for your answers.
Best regards.

Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 01 July 2015 - 12:00 PM

What are you waiting for? When somebody write you all code? Try to do smth, write beginning code, if any problems - we help you....

It's like you say me... What are you waiting for? It's easy, everybody knows how to do it... Image crud is not for beginners like you...

I don't expect all the code because charity is not expected in some comunities but yes some clues, some steps to follow that help to understand how it is made....

If I don't know how to do it, of course it is not your problem, it's mine... Image crud seems interesting but if it is for experts, it's not for me.

Thanks for your answers.
Best regards.

Nooooo. Say, did you try to do base sample from Image Crud? That is start point! I am just saying that everything else in that video using javascript stuff that out of scope Image Crud. So this is actualy even more hard to implement then just using pure Image Crud.

And here I am is your friend, not an enemy:)


chocovo

chocovo
  • profile picture
  • Member

Posted 04 July 2015 - 17:04 PM

Hello :) ,

 

Say, did you try to do base sample from Image Crud?

Yes, the examples from Image Crud Documentation are done... I am at the start point :lol: .

 

Now, I have made a little try to add selection checbox with jquery from the controller and I imagine I will have to use bootstrap o jquery-ui for the modal window... but I don't know why I am thinking I will have to edit Image Crud core to get the objective............................... :wacko: if one day I get it  :lol: .

 

Best