|
|
hecon5 |
|
|
Posts: 37
Gender:  Male
Posts Per Day: 0.04
Time Online: 1 days 5 hours 56 minutes
Age: 22
|
Is there a way to individualize the quota each user gets? I would like to make it so that admins, and other people I select have more storage than others for uploads and the like, or do admins already have unlimited storage? |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,070
Gender:  Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
hecon5 |
|
|
Posts: 37
Gender:  Male
Posts Per Day: 0.04
Time Online: 1 days 5 hours 56 minutes
Age: 22
|
is there a way to make a group have unlimited quotas,but not admins? I want to be able to make a "patch/download group" so they can upload files for people on my forum to download things, or do i just have to make them admins? |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,070
Gender:  Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
hecon5 |
|
|
Posts: 37
Gender:  Male
Posts Per Day: 0.04
Time Online: 1 days 5 hours 56 minutes
Age: 22
|
Is there a way to mod it so i can change how much a certain group gets? or is that ridiculously hard? |
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,070
Gender:  Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
|
In Attach.pl, search for:
Replace with:
|
Code
if($savedsize == 0 && !$members{'GROUPNAME',$username} && !$members{'GROUPNAME',$username}) { |
|
I think that'll work .... replace GROUPNAME with the group ID (only 'Administrators' is an ID that isn't a number). See the ID by the URL's in group center (if it doesn't tell you). Hope it works.  |
| I do installs for $25 and upgrades for $20.Technical support is always free. Donate to E-Blah! My Websites: Revolution Reality (My Blog) | MinistryTalk.com | Portfolio"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV  |
|
|
|
|
|
hecon5 |
|
|
Posts: 37
Gender:  Male
Posts Per Day: 0.04
Time Online: 1 days 5 hours 56 minutes
Age: 22
|
getting error :
It did appear to try and upload the file, though, and only stopped when the limit was reached, so i think that was part of the problem.
unless there is more than one occurence of if($savedsize == 0 ...
 |
This post contains attachments; to download them you must login. |
|
|
| |
|
|
|
|
|
Justin |
|
|
Posts: 15,070
Gender:  Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
|
|
|
|
|
|
hecon5 |
|
|
Posts: 37
Gender:  Male
Posts Per Day: 0.04
Time Online: 1 days 5 hours 56 minutes
Age: 22
|
Got it to work!!! Here is what it required: Find this code:
|
Code
$savedsize = -s($savedfile); if($savedsize == 0) { unlink($savedfile); if($FORM{'tempopen'} ne '') { $error = $atext[4]; clear_temp(); return(); } else { clear_temp(); error($atext[4]); } } $savedsize = sprintf("%.2f",($savedsize/1024/1024)); if($maxsize != 0) { if($maxsize < $savedsize) { unlink("$savedfile"); $over = $savedsize-$maxsize; if($FORM{'tempopen'} ne '') { $error = $atext[5]; clear_temp(); return(); } else { clear_temp(); error($atext[5]); } } }
|
|
and change it to this:
|
Code
if($savedsize == 0 && !$members{'Administrator',$username} && !$members{'6',$username}) { unlink($savedfile); if($FORM{'tempopen'} ne '') { $error = $atext[4]; clear_temp(); return(); } else { clear_temp(); error($atext[4]); } } $savedsize = sprintf("%.2f",($savedsize/1024/1024)); if($maxsize != 0 && !$members{'GROUPNAME',$username} && !$members{'GROUPNAME',$username}) { if($maxsize < $savedsize) { unlink("$savedfile"); $over = $savedsize-$maxsize; if($FORM{'tempopen'} ne '') { $error = $atext[5]; clear_temp(); return(); } else { clear_temp(); error($atext[5]); } } }
|
|
NOTE: change GROUPNAME to the group code, found in the admin center, as Justin said before. Otherwise it will simply ignore this and you will be left scratching your head. I believe that what was happening was that after it checked the first time to see if I had space left, was that it was checking to see if the actual file was below the limit. Setting the second test skipped the individual file test to see if it would fit. I would try and turn this into a mod, but I am not quite sure where to start, so if someone wanted to help me out, or to do it and then post it, that'd be great. also, for anyone else's reference, I did discover that you can add more groups to the "unlimited upload list" by just adding another variable
|
Code
&& !$members{'GROUPNAME',$username} |
|
behind the rest of the if statement. another idea I had (not to add too many features or anything, just an idea) was to make it possible to integrate this into the admin center. I would try, but I don't know perl very well, so I have the feeling that it would just destroy my forum. |
| |
|
|
|
|
|
|