XFileSharing Pro - Pay multiple times from same IP

Message
Author
Manders
Posts: 19
Joined: Mar 27, 2014 10:04 pm

Pay multiple times from same IP

#1 Postby Manders » Aug 06, 2014 6:49 pm

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?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Aug 08, 2014 8:30 am

i dont have the latest version, but it should be as below

comment the below line in fs.cgi
$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};
and add
$money=0 if $db->SelectOne("SELECT count(money) FROM IP2Files WHERE ip=? AND money =!0 AND created>NOW()-INTERVAL 24 HOUR",$ip) >= 3;

commanderp
Posts: 8
Joined: Jun 14, 2014 3:26 pm

#3 Postby commanderp » Aug 11, 2014 12:27 pm

I tried to do what you suggested Ankurs and its not working. Stats freeze and downloads dont count. Any idea why? I'm using 2.2

H12
Posts: 23
Joined: Apr 18, 2013 9:44 pm

#4 Postby H12 » Aug 23, 2014 6:04 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

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#5 Postby ankurs » Aug 24, 2014 10:31 am

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?
They will get. 003 even if you set 0.001, script checks if the user has been paid 0.001 or above before paying.

This setting is fine if you want to pay once per 24 hours.

H12
Posts: 23
Joined: Apr 18, 2013 9:44 pm

#6 Postby H12 » Aug 24, 2014 4:30 pm

Okay, thank's for the explanation on how the script processes this.

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).

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#7 Postby ankurs » Aug 27, 2014 10:14 am

H12 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).
yes 0.1/1000 = 0.0001 and that should be your setting if you want to pay users only for 1 view