View Full Version : Image adding to gallery by users
pekka1
04-16-2003, 12:42 PM
I'll put it this way:
If I have a cam site, and I would like to make a archive for my cam images, where my website users could add the currently shown webcam image by one click. The images should have always a different file name, so there wouldn't be oversavings. I guess You've all understood now what I mean... :P
I know you can do all this by using PHP, but I'm even more unfamiliar to that than to CGI/Perl. Is there a way of doing this by using CGI?
I appreciate your help. Thanks.
It depends on how you have this setup. It sounds as if you are simply sorting the images based on file naming conventions without DB calls. If so, couldn't you just always retrieve the most recent image that (I'm assuming) contains some user-identifiable text (like their user name, or whatever)? Again, I am guessing here because I do not know how you have this system set up, and I would need a bit more information from you.
pekka1
04-17-2003, 02:26 PM
If you are talking about a system for sorting my images, I don't have anything like that yet. Would for example setting up Gallery help? I just need people to be able to archive the currently shown image, by clikcing a link. Sorry, I'm very new to all this.
You can see an example of what I mean at www.varnom.com. I just want the same thing simplified, so no comments or cam numbers are required. :)
varno
04-20-2003, 03:23 PM
It certainly is possible with Perl, since that is what my site uses (thanks for the link above Pekka)
Took me quite a while to get it working, but its a fairly powerful tool and will work with multiple cameras which can be sorted/viewed independently.
Each image is given a sequential number (incrementing number in a text file) and is saved as a JPG image from the server. A comment, along with the camera number that the image came from, is logged in a text file which is then used later in the query/gallery page.
The page that the user sees (when adding a new image) is just a Flash movie which interacts with the script file directly (with some added security features of course!) but could be done in many other ways I guess.
pekka1
04-20-2003, 10:25 PM
Thanks Chris, that surely helped. I'm still pretty clueless about the whole Perl thing, so I think there is no way I can make up the code myself. If you feel like sharing your code, feel free to email the files to me! ;) That's just a suggestion, so I totally understand if you don't want to give out the code just like that.
Anyway, I really appreciate your help so far! Thanks. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.