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: More than 10?  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

mr_pr

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
More than 10?
« on: May 24, 2005, 01:14:22 pm »

How can i change the max number of uploads to more than 10?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: More than 10?
« Reply #1 on: May 24, 2005, 01:41:26 pm »

I am not sure if this works or not because i have not tested it, but you can definitely try.

Edit groupmgr.php

Find

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\"";
  ......

and replace it with

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\"";
 ....

You can replace '20' by the number of boxes you want.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: More than 10?
« Reply #2 on: May 24, 2005, 10:41:00 pm »

as Abbas Ali pointed out: not recommended, the max of 10 files is there for a good reason. Youl'll probably run into timeouts.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.