forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: DefenceTalk.com on August 09, 2004, 06:41:32 pm

Title: Multiple uploads: put all pics in same album?
Post by: DefenceTalk.com on August 09, 2004, 06:41:32 pm
When uploading multiple pictures either from harddisk or URL. There should be an option when script gives you first pic to edit and put it in its album that allows you to put other pics that you just uploaded into the same album with or without editing the keyword/description fields or just take the info from the initial pic.

Example:

Say I uploaded 10 pictures for album called "ABC" and instead of going through 10 pics and putting them into ABC album, it would be nice to have a little check box which automatically puts following 9 pictures into the same album as well.

Thanks!!!
Title: Re: Multiple uploads: put all pics in same album?
Post by: Nibbler on August 09, 2004, 08:18:05 pm
You can use the values from the previous file as default values for the next file. Just edit them into your upload.php.

Find:
Code: [Select]
echo "        <input type=\"hidden\" name=\"$name\" value=\"\">\n";
change to:
Code: [Select]
echo "        <input type=\"hidden\" name=\"$name\" value=\"{$_POST[$name]}\">\n";
Find:
Code: [Select]
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="" class="textinput">
change to:
Code: [Select]
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="{$_POST[$name]}" class="textinput">
Find:
Code: [Select]
<input type="file" name="$name" size="40" class="listbox">
change to:
Code: [Select]
<input type="file" name="$name" size="40" value="{$_POST[$name]}" class="listbox">
Find:
Code: [Select]
                        <textarea name="$name" rows="5" cols="40" wrap="virtual"  class="textinput" style="width: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);"></textarea>
change to:
Code: [Select]
                        <textarea name="$name" rows="5" cols="40" wrap="virtual"  class="textinput" style="width: 100%;" onKeyDown="textCounter(this, $max_length);" onKeyUp="textCounter(this, $max_length);">{$_POST[$name]}</textarea>
Find:
Code: [Select]
        echo '                <option value="' . $album['aid'] . '"' . ($album['aid'] == $sel_album ? ' selected' : '') . '>' . (($vRes['name']) ? '(' . $vRes['name'] . ') ' : '') . $album['title'] . "</option>\n";
change to:
Code: [Select]
        echo '                  <option value="' . $album['aid'] . '"' . (($album['aid'] == $_POST['album']) ? ' selected' : '') . '>' . (($vRes['name']) ? '(' . $vRes['name'] . ') ' : '') . $album['title'] . "</option>\n";
Last one appears twice.
Title: Re: Multiple uploads: put all pics in same album?
Post by: Joachim Müller on August 09, 2004, 11:34:25 pm
this would be a cool mod or even something for the core code, if you had a checkbox on the first page of the upload wizard labelled "remember file info" that would hand over the post data to the next screen.

GauGau
Title: Re: Multiple uploads: put all pics in same album?
Post by: DefenceTalk.com on August 10, 2004, 05:43:25 am
Thanks!


I couldn't find the last one. maybe because I have this mod installed:
http://forum.coppermine-gallery.net/index.php?topic=3794.20

Still, without that it doesn't change anything.
Title: Re: Multiple uploads: put all pics in same album?
Post by: Joachim Müller on August 10, 2004, 07:42:01 am
the mod you refer to hasn't been built for cpg1.3.x, but for cpg1.2.x. It can not be used with cpg1.3.x afaik.
Please understand that this is not an actual mod yet, that's why it's still on the feature requests board. Once it's mature (if ever), it will be moved to the mods board.

GauGau
Title: Re: Multiple uploads: put all pics in same album?
Post by: Nibbler on August 10, 2004, 02:40:07 pm
The last one is for the album dropdown box, it is there once for user galleries and again for public albums.