In the mean time we can set minimum file size eligible for points, like this:
Add points only when size > 5 MB (for example)
but I want to change it to set maximum file size instead of minimum,
Add points only when size < 50 MB (for example)
Is it possible? how can I do it?
XFileSharing Pro - file size to get points
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Everything is Possible
Use the same option in Settings. Find this line in index.cgi:
and replace '<' with '>'
Use the same option in Settings. Find this line in index.cgi:
Code: Select all
$points=0 if $file->{file_size} < $c->{points_filesize_limit}*1024*1024;
I've got "software error" and the website went down.. I just changed it from > to < in one place
can you tell me how the new line should be to copy and paste it.
can you tell me how the new line should be to copy and paste it.
PilgrimX182 wrote:Everything is Possible
Use the same option in Settings. Find this line in index.cgi:and replace '<' with '>'Code: Select all
$points=0 if $file->{file_size} < $c->{points_filesize_limit}*1024*1024;
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm