Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[ADDON] SEED BONUS
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-01-16 15:11:57
How to translate seeding bonus exchange ? [mybonus.php] how to i edit sql ?

EDIT: I'm already edited but sql dont support my language special chars
Unknown User
2010-01-25 12:38:52
I'm getting this error after editing cleanup (low ratio disabled in config)

0){ $timenow = get_date_time(); $reason = "Your warning of low ratio has been removed. We highly recommend you to keep a your ratio up to not be warned again.\n"; while ($arr1 = mysql_fetch_assoc($res1)){ write_log("Auto Leech warning has been removed for: ".$arr1["username"].""); mysql_query("UPDATE users SET warned = 'no' WHERE id = '".$arr1["id"]."'"); mysql_query("UPDATE warnings SET expiry = '".$timenow."' WHERE userid = '".$arr1["id"]."'"); mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ('0', '".$arr1["id"]."', '".$timenow."', '".$reason."', '0')"); } } //BAN WARNED USERS $res = mysql_query("SELECT users.id, users.username FROM users INNER JOIN warnings ON users.id=warnings.userid WHERE type='Poor Ratio' AND class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded"); if (mysql_num_rows($res) > 0){ $timenow = get_date_time(); $expires = (86400 * $length); while ($arr = mysql_fetch_assoc($res)){ $r = mysql_query("SELECT id, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]"); $row = mysql_fetch_assoc($r); if (gmtime() - $row["expiry"] >= 0) { mysql_query("UPDATE users SET enabled='no', warned='no' WHERE id='".$arr["id"]."'"); write_log("User ".$arr["username"]." has been banned (Auto Leech warning)."); } } } }//check if warning system is on //END// //OPTIMISE TABLES mysql_query("OPTIMIZE TABLE `peers` , `torrents` , `tasks` , `guests` , `users` , `messages`; "); }//end func ?>

in index

thx
Unknown User
2010-01-31 17:46:21
working well on v2.05 thanks all for this mods
Unknown User
2010-02-01 18:27:15
@wolfnet

man ... plss give me the old sistem code...plsss it's working fine.. this is not working... ;)
Unknown User
2010-03-17 23:33:10
"XxBeliaLxX, post: 61700":
hi , thanks for this mods ,  but i have a question , it'S possible to have seedbonus per hour  and per number of torrent i seed , not just global !??
exemple , if i have 9 torrent in seed , i got , 0.5 seedbonus per torrent and per hour

Some one can help me with this ?

has anybody an answer

i
Unknown User
2010-03-18 21:41:04
remove "DISTINCT" in cleanup.php
Unknown User
2010-03-18 23:55:47
???

can you explain this ts?
Unknown User
2010-03-19 06:35:54
$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);


DISTINCT
Unknown User
2010-03-23 17:17:48
Hi,

Are you sure about you're code ?

first mistake :

$speeduu doesn't exist ...

seconde mistake (TTV2.05)

peers.uploadoffset doesn't exist too ...

Kind regards
Unknown User
2010-07-10 02:24:08
Warning: Cannot modify header information - headers already sent by (output started at .../public_html/mybonus.php:9) in .../public_html/backend/functions.php  on line 37

I'm having this error, what can I do to fix?
Unknown User
2010-09-11 12:54:49
1) any chance for the code to add for vip class exchange as members been asking

2) also im searching atm so still reading all posts loooking for give a gift for example send amount of credit to a fellow user on site so u can send some of your !!! upload credit to a user helping them out or saying thank you  ;)  if i find it on here will post link as thi sones in completed mods section best to have all complete info updated here  ;)

cheers
Unknown User
2010-10-14 12:41:38
Hi All,

I'm trying to accomplish the following, but I'm guessing my mysql part is wrong.

Can you help with this one?

	/////////Update Seederbonus by speed/////////

/// MOD from TBDEV - dottor

/// edited and adapted by MasterRoot

/// www.maniatorrent.org

/////////////////////////////////////////////////////

$res = mysql_query("SELECT DISTINCT userid FROM peers WHERE seeder = 'yes'") or sqlerr(__FILE__, __LINE__);



if (mysql_num_rows($res) > 0)

{

while ($arr = mysql_fetch_assoc($res))

{

$work = mysql_query("select count(*) from peers WHERE seeder ='yes' AND userid = $arr[userid]");

$row_count = mysql_result($work,0,"count(*)");

$speedu = mysql_query("SELECT sum(((p.uploaded - p.uploadoffset )) / (unix_timestamp(p.last_action) - unix_timestamp(p.started))) AS speed FROM peers p INNER JOIN users u ON p.userid=u.id WHERE u.id=$arr[userid]");



//change award points by class.



$clres = mysql_query("SELECT class FROM `users` WHERE id = $arr[userid]") or sqlerr(__FILE__, __LINE__);

$class = mysql_fetch_assoc($clres);





if($class[class] == 1) { // member award

if($speeduu > "100.00")

$bonuspay="0.750"; //// if over 100kbs = 3 per hr

elseif($speeduu > "75.00")

$bonuspay="0.500"; //// if over 75 but less than 100 = 2.0 per hr

elseif($speeduu > "50.00")

$bonuspay="0.375"; //// if over 50kbs but under 75kbs = 1.5 per hr

elseif($speeduu > "30.00")

$bonuspay="0.250"; /// if over 30kbs but under 50 kbs = 1.0 an hr

elseif($speeduu > "15.00")

$bonuspay="0.1875"; //// if over 15 kbs but less than 30kbs = .75 per hr

elseif($speeduu > "1.00")

$bonuspay="0.125"; //// if over 1kbs but less than 15kbs = .5 per hr

elseif($speeduu < "1.00")

$bonuspay="0.0625"; //// less than kb/s = 1/4 per hr

}

if ($class[class] == 2) { // power user award

if($speeduu > "100.00")

$bonuspay="0.875"; //// if over 100kbs = 3.5 per hr

elseif($speeduu > "75.00")

$bonuspay="0.625"; //// if over 75 but less than 100 = 2.5 per hr

elseif($speeduu > "50.00")

$bonuspay="0.500"; //// if over 50kbs but under 75kbs = 2.0 per hr

elseif($speeduu > "30.00")

$bonuspay="0.375"; /// if over 30kbs but under 50 kbs = 1.5 an hr

elseif($speeduu > "15.00")

$bonuspay="0.3125"; //// if over 15 kbs but less than 30kbs = 1.25 per hr

elseif($speeduu > "1.00")

$bonuspay="0.250"; //// if over 1kbs but less than 15kbs = 1.0 per hr

elseif($speeduu < "1.00")

$bonuspay="0.1875"; //// less than kb/s = 0.75 per hr

}

if ($class[class] == 4) { // uploader award

if($speeduu > "100.00")

$bonuspay="1.000"; //// if over 100kbs = 4.0 per hr

elseif($speeduu > "75.00")

$bonuspay="0.75"; //// if over 75 but less than 100 = 3.0 per hr

elseif($speeduu > "50.00")

$bonuspay="0.625"; //// if over 50kbs but under 75kbs = 2.5 per hr

elseif($speeduu > "30.00")

$bonuspay="0.500"; /// if over 30kbs but under 50 kbs = 2.0 an hr

elseif($speeduu > "15.00")

$bonuspay="0.4375"; //// if over 15 kbs but less than 30kbs = 1.75 per hr

elseif($speeduu > "1.00")

$bonuspay="0.375"; //// if over 1kbs but less than 15kbs = 1.5 per hr

elseif($speeduu < "1.00")

$bonuspay="0.3125"; //// less than kb/s = 1.25 per hr

}

if ($class[class] == 3 || $class[class] == 5 || $class[class] == 6) { // vip & moderators award

if($speeduu > "100.00")

$bonuspay="1.25"; //// if over 100kbs = 5.0 per hr

elseif($speeduu > "75.00")

$bonuspay="1.00"; //// if over 75 but less than 100 = 4.0 per hr

elseif($speeduu > "50.00")

$bonuspay="0.875"; //// if over 50kbs but under 75kbs = 3.5 per hr

elseif($speeduu > "30.00")

$bonuspay="0.75"; /// if over 30kbs but under 50 kbs = 3.0 an hr

elseif($speeduu > "15.00")

$bonuspay="0.6875"; //// if over 15 kbs but less than 30kbs = 2.75 per hr

elseif($speeduu > "1.00")

$bonuspay="0.625"; //// if over 1kbs but less than 15kbs = 2.5 per hr

elseif($speeduu < "0.375")

$bonuspay="0.5625"; //// less than kb/s = 2.25 per hr

}





mysql_query("UPDATE users SET seedbonus = seedbonus+$bonuspay*$row_count WHERE id = $arr[userid]") or sqlerr(__FILE__, __LINE__);

}

}

/////////End Update Seederbonus by speed/////////

/// MOD from TBDEV - dottor

/// edited and adapted by MasterRoot

/// www.maniatorrent.org

/////////////////////////////////////////////////////
Unknown User
2011-01-24 18:04:26
Its something wrong:

1) Every time i force cleanup i have extra 0.2 bonus

2)For 50 points is not 10 invites,realy u have only 3

3)for 10 points not 1 invite u have 3

....

How to fix that
Unknown User
2011-01-24 20:40:04
@silenced u still needing help with this... i made an exstention for seedbonus in premium section i think its rather nice... i may extend it even further and try and incorporate something like your trying there....
Unknown User
2011-02-12 18:26:16
Hello

possible to have a list of seed bonus for all members

To check if everything is ok, admin or other

visible in the profile of the staff member to

thank you
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728