Multiple uploads: put all pics in same album? Multiple uploads: put all pics in same album?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Multiple uploads: put all pics in same album?

Started by DefenceTalk.com, August 09, 2004, 06:41:32 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

DefenceTalk.com

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!!!
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Nibbler

You can use the values from the previous file as default values for the next file. Just edit them into your upload.php.

Find:
echo "        <input type=\"hidden\" name=\"$name\" value=\"\">\n";

change to:
echo "        <input type=\"hidden\" name=\"$name\" value=\"{$_POST[$name]}\">\n";

Find:
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="" class="textinput">

change to:
<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="{$_POST[$name]}" class="textinput">

Find:
<input type="file" name="$name" size="40" class="listbox">

change to:
<input type="file" name="$name" size="40" value="{$_POST[$name]}" class="listbox">

Find:
                        <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:
                        <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:
        echo '                <option value="' . $album['aid'] . '"' . ($album['aid'] == $sel_album ? ' selected' : '') . '>' . (($vRes['name']) ? '(' . $vRes['name'] . ') ' : '') . $album['title'] . "</option>\n";

change to:
        echo '                  <option value="' . $album['aid'] . '"' . (($album['aid'] == $_POST['album']) ? ' selected' : '') . '>' . (($vRes['name']) ? '(' . $vRes['name'] . ') ' : '') . $album['title'] . "</option>\n";

Last one appears twice.

Joachim Müller

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

DefenceTalk.com

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.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joachim Müller

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

Nibbler

The last one is for the album dropdown box, it is there once for user galleries and again for public albums.