Add more fileboxes to "upload from webpage" option.

minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Mon, 2005-12-19 18:26

Hi, I need to have more than one input box on the "upload from webpage" option. Can someone point me to an easy solution? I have searched high and low but may have missed it somewhere. Thanks for your help on this.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-12-26 17:19

you want to upload from more than one web site at a time? why can't you just add from one site, then repeat for other sites? mixing discovered urls from different sites would just complicate the UI, imo, but you can file a feature request on sourceforge if you like.

 
minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Tue, 2005-12-27 17:45

No, all I want to do is upload more than one file at a time from the same website. Is there a simple variable I can change to allow more than one file at a time to be collected? (ie: give me more input boxes on the upload page)

I just want to be able to enter say 10 urls

ie: mydocom/xxx/2363663.jpg
mydotcom/5464646646.jpg
mydotcom/dd/ddd/8966868688.jpg

The url's need to be entered individually, I can't just grab a directory and go. The g2 user interface only has one box to enter one file at a time for this application. All I want is few more input boxes on the page like coppermine allows.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-12-28 15:18

this UI is designed for collecting images from a web page.. if the above 3 images were all referenced on mydotcom/index.html then you'd just enter that single url and check the checkboxes for those 3 images.. voila.

 
minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Wed, 2005-12-28 15:39

Like I mentioned before, that won't work for me, not in a million years. This from webpage ui design sucks for grabbing images from repositories like pbase. I have thousands of images there and you can not snag them like you are telling me. No way, no how. You will get a bunch of thumbnails and gifs but you will not get the images you are looking for.

I will ask again, is there any way to add more upload boxes like coppermine has? I need to enter one url at a time because the ui as it is does not work to grab the proper images from sites like pbase, unless you want to waste all day taking one file at a time.

Please advise on if there is a way to make more upload input boxes appear and function. I have used gallery on a hundred sites and lessons are fine but I already know how the ui works and does not work on these type of applications. That is why I have asked for a mod or a hack that will do what I asked in my first, second, and now third posts. I hate to say it, but the voila is quite premature in this instance, mindless.

Thank you and I am awaiting a solution that will actually work for me.

 
jrmint

Joined: 2005-08-20
Posts: 94
Posted: Wed, 2005-12-28 15:52

The tpl file that does this is called ItemAddFromWeb.tpl under /modules/core/templates

You can copy and paste bits of the code a couple of times to have more boxes

Remember that you need to put the new tpl in a folder called local so that way it isn't over writen on an upgrade.

 
minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Wed, 2005-12-28 16:00

Thanks jrmint, I assumed that this might be possible and I give you a big thanks for pointing this out. This will save me loads of time and I sure appreciate your reply. Have a good day.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-12-30 01:51

none of your previous posts indicated an understanding of the existing functionality, so i explained it.

 
minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Fri, 2005-12-30 02:57
minoltamaniac wrote:
Hi, I need to have more than one input box on the "upload from webpage" option. Can someone point me to an easy solution? I have searched high and low but may have missed it somewhere. Thanks for your help on this.

No problem, I figured my original post was direct enough. If I was asking how to use the upload from webpage option I would have worded my question much differently. Thanks and have nice day.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-12-30 08:55

while jrmint's suggestion will help changing the form, the controller isn't setup to accept input from additional input boxes.. you'll need to modify modules/core/ItemAddFromWeb.inc to deal with multiple urls. i don't think these are trivial changes, so it may be easier to write a g2 module with a single <textarea> where you can enter some urls and it saves them all in an html file on your own server as <img> tags.. then you can point add-from-web to that url and it can slurp all the urls.

 
minoltamaniac
minoltamaniac's picture

Joined: 2005-10-03
Posts: 83
Posted: Fri, 2005-12-30 15:18

Sure am glad I have not had the time to try jrmint's suggestion. I was afraid that the additional input boxes would be easy to put on the .tpl page, but making them work would be a different story. Now that story has been told, thanks for saving me the grief and he time. I have seen something similar to the text solution used on other galleries and I will certainly keep that in mind. I will take a look, but really I was hoping for a quick and easy solution. I figure I may have come back to this later if no one has crafted anything like this already. Thank you, mindless, for the heads-up on the jrmint speaks.