coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: AvrilBoi on September 28, 2006, 09:17:12 PM

Title: Upload directly into an album - Is it possible?
Post by: AvrilBoi on September 28, 2006, 09:17:12 PM
I was asking myself if this is somehow possible...

the thumbnails pages are
thumbnails.php?album=XX
If you are in theese thumbnails pages you find the "Upload" link on the top, which links to upload.php
If you upload something, you'll have to select one album between all the albums you have in your gallery, and if there are many albums it is a little confusing...
so it could be better to have upload.php?album=XX on top of the thumbnails' pages insted of upload.php, and the pictures you upload go directly in the XX album...
I hope you understand what I mean...
I've searched for this in the forum, but I didn't find anything, has it been already asked? Is it difficult to do?
Thanks
Title: Re: Upload directly into an album - Is it possible?
Post by: AvrilBoi on September 28, 2006, 10:11:10 PM
I managed to do something
the album ID is stored in $album.
The album listing code in upload.php is this:
echo '                <option value="' . $val['aid'] . '"' . ($val['aid'] == $sel_album ? ' selected' : '') . '>   ' . $val['title'] . "</option>\n";
How can I modify it to make it show only the album which has $album as ID ?