Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Multiple uploads: put all pics in same album?  (Read 3282 times)

0 Members and 1 Guest are viewing this topic.

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Multiple uploads: put all pics in same album?
« 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!!!
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Nibbler

  • Guest
Re: Multiple uploads: put all pics in same album?
« Reply #1 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Multiple uploads: put all pics in same album?
« Reply #2 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
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
Re: Multiple uploads: put all pics in same album?
« Reply #3 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.
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Multiple uploads: put all pics in same album?
« Reply #4 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
Logged

Nibbler

  • Guest
Re: Multiple uploads: put all pics in same album?
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.