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!
Posts: 8601
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.
Posts: 36
Mindless, you're so dreamy. I'll see what I can do with that.
Thanks much!
Posts: 36
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:
Thanks!
Posts: 36
Nobody? It's for a good cause! lol
Posts: 8601
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?
Posts: 36
For me? lol, no. For whoever I get to coe this, hopefully.
Thanks for being patient with me. ;)
Posts: 36
Double-post.