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
mode vip original
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-01-14 19:47:52
Bonjour

Je suis a la recherche du mode vip de la bdd de la v3 mysqli,
chez moi il prend conte de l'upload quand le membre est le grade vip.
normalement il devrais pas calculer upload.

Merci de votre aide qui est apprécié! :)
-------------------------------------------------
Hello

I am looking for the vip mode of the bdd of the v3 mysqli,

with me it takes tale of the upload when the member is the vip rank.
normally it should not calculate upload.

Thanks for your help which is appreciated! :)
2021-01-14 20:55:13
i think this can be done in announce.php

announce updates user upload/download from tracker so to stop vip

in this example i use number 4 for vip group
find in announce

}else{
   $upthis = max(0, $uploaded - $self["uploaded"]);
   $downthis = max(0, $downloaded - $self["downloaded"]);

   if (($upthis > 0 || $downthis > 0) && is_valid_id($userid)){ // LIVE STATS!)
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
}else{
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
}
   }
}//END WAIT AND STATS UPDATE


add class to sql

}else{
   $upthis = max(0, $uploaded - $self["uploaded"]);
   $downthis = max(0, $downloaded - $self["downloaded"]);

   if (($upthis > 0 || $downthis > 0) && is_valid_id($userid)){ // LIVE STATS!)
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid AND class !=4") or err("Tracker error: Unable to update stats");
}else{
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid AND class !=4") or err("Tracker error: Unable to update stats");
}
   }
}//END WAIT AND STATS UPDATE


i have not tested this
Last edited by M-jay warn on 2021-01-14 21:06:16
2021-01-14 21:09:15
if it does not work try a wrap with class


like so

}else{
   $upthis = max(0, $uploaded - $self["uploaded"]);
   $downthis = max(0, $downloaded - $self["downloaded"]);
   if (($upthis > 0 || $downthis > 0) && is_valid_id($userid)){ // LIVE STATS!)
if ($torrent["freeleech"] == 1){
if ($user["class"] != 4) {
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
}
}else{
if ($user["class"] != 4) {
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
}
}
   }
}//END WAIT AND STATS UPDATE
Last edited by M-jay warn on 2021-01-15 12:08:56
2021-01-15 01:28:55
a big thank you I will test and get back to you  :thum  :)
Last edited by M-jay warn on 2021-01-15 12:10:27
2021-01-16 07:18:29
#1 thanks ! :thum
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