coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: mr_pr on May 24, 2005, 01:14:22 PM

Title: More than 10?
Post by: mr_pr on May 24, 2005, 01:14:22 PM
How can i change the max number of uploads to more than 10?
Title: Re: More than 10?
Post by: Abbas Ali 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


// 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


// 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.
Title: Re: More than 10?
Post by: Joachim Müller 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.