coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: ganeshcp on November 20, 2005, 07:21:14 PM

Title: simple request regrarding multiple uploads
Post by: ganeshcp 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
Title: Re: simple request regrarding multiple uploads
Post by: Nibbler on November 20, 2005, 07:47:25 PM
All you need is to find

$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:

$HTTP_GET_VARS['album'] = $album;
Title: Re: simple request regrarding multiple uploads
Post by: ganeshcp on November 22, 2005, 07:43:49 AM
works like a charm. life is so much simpler now  ;D
Title: Re: simple request regrarding multiple uploads
Post by: ganeshcp on December 01, 2005, 08:07:55 PM
 :\'(
unfortunately this doesn't work for 1.4.2...help anyone?
Title: Re: simple request regrarding multiple uploads
Post by: Nibbler on December 01, 2005, 08:11:51 PM
Add this instead

$_GET['album'] = $album;