Need help with a gallery module

rudyb

Joined: 2004-12-11
Posts: 36
Posted: Fri, 2005-09-09 03:16

Hiya,

I've set up a site to help collect donations for hurricane katrina victims (don't worry, they're all going directly to the charities. We're not collecting a thing), but as part of the site, I'd like users to be able to easily upload images to a gallery.

I've installed the "Simple" module, which makes the upload page a lot easier to look at for newbies, but I've come across a problem, or maybe a 'feature request'.

Basically, I have it set up so that right now the "Everybody" group can [simple] Upload pics. It would make my life about a thousand times easier if an extra field was added when uploading that asked for their email address, and then put that address as the keywords for the photo.

I doubt this already exists, but if someone could point me towards how to go about modifying the "Simple" module, or whatever needs to be done, I'd love you forever! :)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-09-09 06:35

look at the tpl files in the templates dir and find where it has form elements for the upload form. add an <input type="text" .. /> here, using {g->formVar ..} for the name of the input (see examples on other inputs). then edit the php code in the *.inc file to do something with that value when the form is submitted.

 
rudyb

Joined: 2004-12-11
Posts: 36
Posted: Fri, 2005-09-09 09:53

Mindless, you're so dreamy. I'll see what I can do with that.

Thanks much!

 
rudyb

Joined: 2004-12-11
Posts: 36
Posted: Mon, 2005-09-12 13:21

Okay, since I'm entirely clueless when it comes to all of this, I asked a couple of my codemonkeys. They weren't too sure, either, so I asked them what I needed to find out from you all. This is what they said:

Quote:
just where the files where the actual data is handled

overly simple explanation of the process:

1) field is entered on the page and submitted
2) data is taken to a page where it's processed. in our case, we want it tagged along with your keywords

seeings as i havent gotten around to donating anything i still haven't seen the site or how these keywords are used/generated/anything.

so, in reality, need to know where the submitted information gets processed. from there we can just tag the email to the end of the keywords string/loop/whatever.

Thanks!

 
rudyb

Joined: 2004-12-11
Posts: 36
Posted: Tue, 2005-09-13 17:40

Nobody? :( It's for a good cause! lol

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-09-15 03:45

as i mentioned above, the php code in the *.inc file.. to be more specific: function handleRequest in class SimpleUploadController in modules/simple/SimpleUpload.inc... there, wasn't that simple?

 
rudyb

Joined: 2004-12-11
Posts: 36
Posted: Thu, 2005-09-15 13:28

For me? lol, no. For whoever I get to coe this, hopefully.

Thanks for being patient with me. ;)

 
rudyb

Joined: 2004-12-11
Posts: 36
Posted: Thu, 2005-09-15 13:28

Double-post.