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: Increase the number of files to upload on the form?  (Read 3697 times)

0 Members and 1 Guest are viewing this topic.

the_beav

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Increase the number of files to upload on the form?
« on: August 24, 2004, 09:47:02 pm »

I'm currently using Coppermine 1.3 for a few clients that like to upload their own pictures. By default, Coppermine allows 5 pictures to be loaded at once...the form has five file location text boxes.

Is there a way to increase this to say, 20 for example? Just to give them the option on the few occassions that they load more than 10 files.

Thanks in advance...

-b
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Increase the number of files to upload on the form?
« Reply #1 on: August 24, 2004, 10:43:10 pm »

Yes there is a way, by changing the setting directly in the database.  Browse to the usergroups table, and change the setting there.
I tested this by changing the setting for admin on my site to 20, and the page came up with 20 upload boxes.

BUT, there may be timeout problems when uploading so many.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

the_beav

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Increase the number of files to upload on the form?
« Reply #2 on: August 24, 2004, 11:48:42 pm »

Perfect. Worked like  a charm!

Thanks a ton man.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Increase the number of files to upload on the form?
« Reply #3 on: August 25, 2004, 12:03:24 am »

Just realised this way will only work until the next time the groupmanager is changed.

A better way, is to edit your groupmgr.php as follows;

Find code;

Code: [Select]
// Create permissible number of file upload boxes box.
     echo "<td class=\"tableb\" align=\"center\">";
     echo "<select name=\"num_file_upload_{$group['group_id']}\" class=\"listbox\">";
     for ($i = 1; $i <= 10; $i++) {
     echo "<option value=\"$i\"";
     if($group['num_file_upload']==$i){echo "selected=\"selected\"";}
     echo " >$i</option>";
     }
     echo "</select>";
     echo "</td>";

and change the '10' to '20', as here;

Code: [Select]
// Create permissible number of file upload boxes box.
     echo "<td class=\"tableb\" align=\"center\">";
     echo "<select name=\"num_file_upload_{$group['group_id']}\" class=\"listbox\">";
     for ($i = 1; $i <= 20; $i++) {
     echo "<option value=\"$i\"";
     if($group['num_file_upload']==$i){echo "selected=\"selected\"";}
     echo " >$i</option>";
     }
     echo "</select>";
     echo "</td>";
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Increase the number of files to upload on the form?
« Reply #4 on: August 25, 2004, 10:28:29 am »

as Casper already suggested, increasig this value to 20 is not recommended, as your customers are bound to run into time-out issues if they upload so mayn pics at once. I suggest leaving 10 as maximum, as settable in the groups manager.

GauGau
Logged

pzfc

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Increase the number of files to upload on the form?
« Reply #5 on: August 22, 2005, 04:48:36 pm »

ive tried the above instructions but for some reason all i get is 5 upload boxes? how do i increase it?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Increase the number of files to upload on the form?
« Reply #6 on: August 23, 2005, 10:01:15 am »

groups manager. Read the docs.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.