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
Auto promote users!
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-08-08 22:11:27
Changing the class would require to write the entire code underneath it, right? If they are going to be auto-promoted from Power use to the next class, and on...Or instead of writing 2 can I just change it to 5? But, if I did that, they would be promoted to class 5, instead of 2?
Unknown User
2008-08-09 01:50:38
well if you want to promote lets say class 1 to class 2 and then lets say class 2 to class 3 then you would have to clone the code and paste it beneath it. just change the class numbers on the one beneath and change the amount of gigs. i understand what you want to do because i have added extra power users classes that the members will become if they upload a certain amount example extreme users upload a tb or so.
Unknown User
2009-01-13 19:11:52
Thanks this worked... Is there anyway to add a time frame onto this.   So they have to have 25gb uploaded + there account has to be 4+ weeks old?
Unknown User
2009-01-29 14:42:48
its possible to put 1.50 for ratio , but not via the minimum ratio of member in config , because i want this ratio higher than , to pass power user .
Unknown User
2009-03-05 01:32:43
Hey there just wonder where do you set the ratio say 1.5 or 2.0 ?

thanks in adv

"TorrentialStorm, post: 39989":
	$gigs = 25*1073741824; // 25 GB

$res = mysql_query("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded");

$time = get_date_time();

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 2 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically promoted from User to Power User, If your ratio drops below 1.00 you will be demoted.', 'You have been promoted to: Power User')");

}



$res = mysql_query("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND uploaded < downloaded");

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 1 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically demoted from Power User to User.', 'You have been demoted to User')");

}


that should work for any User that has uploaded 25+GBs and has a ratio over 1
Unknown User
2009-03-26 23:53:15
and something like that  it's possible ???

$gigs = 100*107374182400; // 100 GB
$minratio2 = 1.5*$minratio;

$res = mysql_query("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded>= $minratio2 ");

$timenow = get_date_time();

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 2 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'Vous avez
Unknown User
2009-03-27 08:52:28
try

$minratio2 = 1.5





and

uploaded / downloaded >= $minratio2
Unknown User
2009-03-27 13:52:00
thanks , im gone a test it ! ^^
Unknown User
2009-03-27 17:21:35
don't work for me in TT 2.04
Unknown User
2009-03-27 19:22:11
or

(uploaded / downloaded) >= $minratio2
Unknown User
2009-03-28 02:08:02
$res = mysql_query("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded/downloaded >= 1.5");

should work
Unknown User
2009-09-05 01:03:39
"TorrentialStorm, post: 39989":
	$gigs = 25*1073741824; // 25 GB

$res = mysql_query("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded");

$time = get_date_time();

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 2 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically promoted from User to Power User, If your ratio drops below 1.00 you will be demoted.', 'You have been promoted to: Power User')");

}



$res = mysql_query("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND uploaded < downloaded");

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 1 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically demoted from Power User to User.', 'You have been demoted to User')");

}


that should work for any User that has uploaded 25+GBs and has a ratio over 1



can you tell me where i put this code please ? in config.php ? in what line ? thx for your answers .
Unknown User
2009-09-05 09:00:47
"nietos, post: 59848":
can you tell me where i put this code please ? in config.php ? in what line ? thx for your answers .

cleanup.php
Unknown User
2009-09-15 07:15:21
thx ;)
Unknown User
2010-01-11 22:03:01
edit:

nothing ;)
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728