I would like to pay multiple times for downloads from the same IP (Let's say 3 times).
I see a setting for "Max money last 24 hours " which I have set for 0.001 which I understand means I pay once per download from the same IP each 24 hours.
How do I set this (Or something else) to pay multiple times?
XFileSharing Pro - Pay multiple times from same IP
i dont have the latest version, but it should be as below
comment the below line in fs.cgi
comment the below line in fs.cgi
and add$money=0 if $c->{max_money_last24} && $db->SelectOne("SELECT SUM(money) FROM IP2Files WHERE ip=? AND created>NOW()-INTERVAL 24 HOUR",$ip) >= $c->{max_money_last24};
$money=0 if $db->SelectOne("SELECT count(money) FROM IP2Files WHERE ip=? AND money =!0 AND created>NOW()-INTERVAL 24 HOUR",$ip) >= 3;
-
- Posts: 8
- Joined: Jun 14, 2014 3:26 pm
Is that what that Max money 24 hours setting actually is? I'm just starting to try to figure this out as I'm exploring this as an option for my website. The way the setting name is worded and what you have mentioned about your understanding that it means once per 24 hours doesn't make sense to me.
Say your rates are $3/1000 downloads ($0.003 / download) and you set that to .001 isn't that the same thing as saying $1/1000 downloads? They can't earn $3/1000 downloads if you have limited this max to .001/download, they'd make $1 instead would they not?
Now if the user is from a Tier 4 country, lets say I pay them $0.10/1000 views (.0001/view) because I hardly make anything from that traffic, does this setting mean that if this user views enough images at .0001/view he could potentially earn the uploader up to the daily 24 hour maximum? If that's the case, based on my numbers they would need .003/.0001 = 30 downloads and it would be the same as if it was from a Tier 1 country.
To me this setting doesn't make sense, it should be count X downloads per day as profit. Not up to $XX as multiple downloads from junk countries could potentially count up to that.
Can I get a bit of clarification on this from someone? Also, I couldn't find the code you guys were discussing above in my script, what version did you get that from?
Edit: I have updated my script and now have this code, I think I'll take a run through it and see how exactly it's working.
Edit 2: I found where you got that statement from, still seems like a weird way of doing things to me but okay.
http://support.sibsoft.net/knowledge_ba ... icle_id=77
Say your rates are $3/1000 downloads ($0.003 / download) and you set that to .001 isn't that the same thing as saying $1/1000 downloads? They can't earn $3/1000 downloads if you have limited this max to .001/download, they'd make $1 instead would they not?
Now if the user is from a Tier 4 country, lets say I pay them $0.10/1000 views (.0001/view) because I hardly make anything from that traffic, does this setting mean that if this user views enough images at .0001/view he could potentially earn the uploader up to the daily 24 hour maximum? If that's the case, based on my numbers they would need .003/.0001 = 30 downloads and it would be the same as if it was from a Tier 1 country.
To me this setting doesn't make sense, it should be count X downloads per day as profit. Not up to $XX as multiple downloads from junk countries could potentially count up to that.
Can I get a bit of clarification on this from someone? Also, I couldn't find the code you guys were discussing above in my script, what version did you get that from?
Edit: I have updated my script and now have this code, I think I'll take a run through it and see how exactly it's working.
Edit 2: I found where you got that statement from, still seems like a weird way of doing things to me but okay.
http://support.sibsoft.net/knowledge_ba ... icle_id=77
They will get. 003 even if you set 0.001, script checks if the user has been paid 0.001 or above before paying.H12 wrote: Say your rates are $3/1000 downloads ($0.003 / download) and you set that to .001 isn't that the same thing as saying $1/1000 downloads? They can't earn $3/1000 downloads if you have limited this max to .001/download, they'd make $1 instead would they not?
This setting is fine if you want to pay once per 24 hours.
yes 0.1/1000 = 0.0001 and that should be your setting if you want to pay users only for 1 viewH12 wrote: One further question then, say I pay tier 4 $.10/1000 views, wouldn't it be smarter to use a number like .0001 then so that tier 4 users aren't counted multiple times as they build their way up to .001 (10 views).