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: simple request regrarding multiple uploads  (Read 3511 times)

0 Members and 1 Guest are viewing this topic.

ganeshcp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
simple request regrarding multiple uploads
« on: November 20, 2005, 07:21:14 pm »

hi,

I have installed the mod that sorts the album list while doing a upload.
 But when I do multiple upload I need to choose the category for every picture that has been uploaded. Can anyone write a mod that automatically chooses the category that was applied for the prev pic?

Thnks.


i tried this mod but it wudn't work
http://forum.coppermine-gallery.net/index.php?topic=9391.0
« Last Edit: November 22, 2005, 07:54:47 am by GauGau »
Logged

Nibbler

  • Guest
Re: simple request regrarding multiple uploads
« Reply #1 on: November 20, 2005, 07:47:25 pm »

All you need is to find

Code: [Select]
$result = add_picture($album, $filepath, $picture_name, $title, $caption, $keywords, $user1, $user2, $user3, $user4, $category, $raw_ip, $hdr_ip, $movie_wd, $movie_ht);
in upload.php and add this afterwards:

Code: [Select]
$HTTP_GET_VARS['album'] = $album;
Logged

ganeshcp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: simple request regrarding multiple uploads
« Reply #2 on: November 22, 2005, 07:43:49 am »

works like a charm. life is so much simpler now  ;D
Logged

ganeshcp

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: simple request regrarding multiple uploads
« Reply #3 on: December 01, 2005, 08:07:55 pm »

 :\'(
unfortunately this doesn't work for 1.4.2...help anyone?
Logged

Nibbler

  • Guest
Re: simple request regrarding multiple uploads
« Reply #4 on: December 01, 2005, 08:11:51 pm »

Add this instead

Code: [Select]
$_GET['album'] = $album;
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.