I've been thinking about hacking this functionality in for a while now. As far as I'm aware no-one else has done this yet, which is a bit surprising. Is it on its way in any later release?
What I'd like is a way for users to upload images themselves. Of course, this needs to be plonked into a safe area first for those ever present nefarious users.
I have some ideas about how to go about this, but I thought I'd ask here first to see if people think I'm along the right lines. If anyone else feels like contributing then that'd be cool; I'll share any code if I get this working.
I think the simplest method would probably be to differentiate those images which are new and unmoderated by checking the 'desc' column - that starts blank when images have just been uploaded.
(I had a thought though - I'd still need the 'desc' from the person who uploads the image, I use that as the artist name. Maybe I could mash that into the title during the upload..)
So using the blankness, I'd want to have a bit of code that says "if 'desc' = blank, don't display the image". Any ideas where the best place in zenphoto to stick that line in would be?
From there the thing to do would be having a 'view all waiting approval' part of the admin panel. Again that could only select those that have no 'desc'. From there the admin could simply fill out the details - ie, copying the 'desc' from the title, if that's where I make it go; which would remove the image from the waiting queue.
I think that'd be a decent method. Thoughts?
Comments
I wouldn't recommend doing it your way. It's a "hack" in the purest sense ;-) But if you think it'll work, go right ahead, it won't hurt anything
I think this is exactly what I am looking for. The ability for guest users to upload photos and then require admin approval before going live.