Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Individual Quotas
Users Browsing Forum
No Members and 1 Guests

Individual Quotas  This thread currently has 701 views. Print
1 Pages 1 Recommend Thread
hecon5
April 19, 2006, 6:17pm Report to Moderator Report to Moderator

E-Blah Member
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?


Logged Offline
Site Site Private Message Private message
Justin
April 19, 2006, 7:56pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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
Admins have unlimited PM quotas.


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

Logged Offline
Site Site Private Message Private message Reply: 1 - 8
hecon5
April 19, 2006, 9:23pm Report to Moderator Report to Moderator

E-Blah Member
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?


Logged Offline
Site Site Private Message Private message Reply: 2 - 8
Justin
April 19, 2006, 9:27pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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
Oh, you mean uploads?  Everyone is affected by that quota.  It's not member specific.


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

Logged Offline
Site Site Private Message Private message Reply: 3 - 8
hecon5
April 19, 2006, 9:32pm Report to Moderator Report to Moderator

E-Blah Member
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?


Logged Offline
Site Site Private Message Private message Reply: 4 - 8
Justin
April 19, 2006, 9:48pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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:

Code
	if($savedsize == 0) {


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

Logged Offline
Site Site Private Message Private message Reply: 5 - 8
hecon5
April 19, 2006, 10:24pm Report to Moderator Report to Moderator

E-Blah Member
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.



Logged Offline
Site Site Private Message Private message Reply: 6 - 8
Justin
April 20, 2006, 9:48am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
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
Make sure there isn't.  Also, even if it gives the error -- does it attach anywya?


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

Logged Offline
Site Site Private Message Private message Reply: 7 - 8
hecon5
April 20, 2006, 8:58pm Report to Moderator Report to Moderator

E-Blah Member
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.


Logged Offline
Site Site Private Message Private message Reply: 8 - 8
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    E-Blah Features  ›  Individual Quotas