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
User Posts

Go to Profile

merci spiritblue et toujours pareille youtube ne s'ouvre pas dans une nouvelle fenêtre :rolleyes:
merci spiritblue j'ai fait les changement et pour moi ça ne fonctionne pas:rolleyes:
Merci spiritblue ça fonctionne bien et vous pouvez remplacer le code avec celui ci-dessous dans votre fichier function.php  vous aurez une image floue quand il n'y a pas de vidéo youtube et une image claire quand il y a une vidéo youtube mais je n'arrive pas a placer un bout de code  " target="_blank">  pour que youtuve s'ouvre dans une nouvelle fenêtre auriez vous une idée pour ouvrir youtube dans une nouvelle fenêtre :)



 
           case 'tube':

           if ($row["tube"])
               print("<td class='ttable_colx1' align='center'><a rel=\"prettyPhoto\" href=".$row['tube']."><".htmlspecialchars($row['tube'])."><img src='".$site_config['SITEURL']."/images/youtube/youtube1.png' border='0' width='41' height='38' alt=\"Watch this Video!\" title=\"".T_("VIDEO_WATCH_THIS_VIDEO")."\" /></a></td>");
               else
               print("<td class='ttable_colx1' align='center'><img src='".$site_config['SITEURL']."/images/youtube/youtube2.png' border='0' width='41' height='38' alt=\"No Video to watch!\" title=\"".T_("VIDEO_NONE_VIDEO_TO_WATCH")."\" /></td>");



dans le fichier langue ajouter:

$LANG["VIDEO_NONE_VIDEO_TO_WATCH"] = "Pas de Bande annonce sur Youtube!";
$LANG["VIDEO_WATCH_THIS_VIDEO"] = "Voir la Bande annonce sur Youtube!";



[ATTACH type="full"]5919[/ATTACH]
:rolleyes: Bonjour, quand j'ajoute la partie de code ci-dessous dans le fichier function.php l'image youtube n'est pas visible dans la page des torrent



         case 'tube':
     if ($row["tube"])
           print("<td class='ttable_col$x' align='center'><a rel=\"prettyPhoto\"  href=".$row['tube']." ><".htmlspecialchars($row['tube'])."><img src='" . $site_config['SITEURL'] . "/images/youtube1.png'  border='0' width='50' height='50' alt=\"\" /></a></td>");
           else
        print("<td class='ttable_colx' align='center'>-</td>");
        break;
Seed Bonus [TTv3] — 2020-09-29 04:17:04 in v3 Mods Completed
ok merci de votre réponse (y)
Seed Bonus [TTv3] — 2020-09-28 10:38:35 in v3 Mods Completed
"spiritblue, post: 67259, member: 401":

Some additions to this mod:

~
// Time between each auto cleanup (Seconds).
~ // Set the maximum possible value of your seed bonus.
~ // On or Off ? - true / false.

Search [color=rgb(251, 160, 38)]backend / [/color][color=rgb(243, 121, 52)]config.php[/color] :

//SEEDBONUS
$site_config["bonuspertime"] = 0.5;


Replace with :

// Seed Bonus
$site_config["bonuspertime"] = 0.5; // Set this to what ever you want to give people per torrent.
$site_config['autoclean_interval'] = '3600'; // Time between each auto cleanup (Seconds).
$site_config["bonusmax"] = 3000; // Set the maximum possible value of your seed bonus.
$site_config['SEEDBONUS'] = false; // On or Off ? - true / false.


In [color=rgb(251, 160, 38)]backend /[/color] [color=rgb(243, 121, 52)]cleanup.php[/color] search :

// Seedbonus
$qry = "SELECT DISTINCT userid as peer, (
SELECT DISTINCT COUNT( torrent )
FROM peers
WHERE seeder = 'yes'  AND userid = peer) AS count
FROM peers WHERE seeder = 'yes'";

$res = SQL_Query_exec($qry);
while ( $row = mysqli_fetch_object($res) )
{
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus + '" . ($site_config["bonuspertime"] * $row->count) . "' WHERE id = '" . $row->peer . "'");
}
// End


Replace with :

// Seedbonus upadate 2019 by spiritblue
if ($CURUSER["SEEDBONUS"]) {
$qry = "SELECT DISTINCT userid as peer, (
SELECT DISTINCT COUNT( torrent )
FROM peers
WHERE seeder = 'yes'  AND userid = peer) AS count
FROM peers WHERE seeder = 'yes'";

$res = SQL_Query_exec($qry);
while ( $row = mysqli_fetch_object($res) )
{
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus + '" . ($site_config["bonuspertime"] * $row->count) . "' WHERE id = '" . $row->peer . "' AND seedbonus < ".$site_config["bonusmax"]."");
}
}
// End Seedbonus








Merci il fonctionne bien et j'ai fixer la limite a 25000 point de seedbonus et il y a déjà des comptes existant avec plus de  25000 points et pouvez vous me dire si il y a un moyen de remettre les comptes users qui on plus de 25000 points de seed bonus  à jour avec 25 000 points ??

Peut-être y ajouter un bout de code  SQL UPDATE USER SEEDBONUS ou  ?? je sais pas ???
Hello, when a member exchange it's seedbonus points for the vip class with the seedbonus function and the member didn't reach 1GO in upload with the auto promote module function the member is still demoted to the member rank would you have an idea so that the member who has to exchange it's points with the seedbonus to get the vip rank is not demoted with the auto promote function?


Bonjour, quand un membre échange ses points seedbonus pour la classe vip avec la fonction seedbonus et que le membre n'a pas atteint 1GO en upload avec la fonction de promotion automatique, le membre est toujours rétrogradé au rang de membre. Avez-vous une idée pour que le membre qui doit échanger ses points avec le seedbonus pour obtenir le rang vip ne soit pas rétrogradé avec la fonction de promotion automatique ?

)
Hello after some modifications I share with you the auto promote function which works on the v3, it is configured to have the promotion above the ratio of 1.00 below the ratio of 1.00 you will be demoted to members.

I put you two functions vip and power user


you can change this part of the code if you want to allow more in ratio and replace the 1 by the one of your choice    >>>        uploaded / downloaded) >= 1.0");



in the backend folder open the file cleanup.php and at the end of the file just before ?
add the code ... enjoy


[color=rgb(243, 121, 52)]For the vip function[/color]

####################################
# AUTO PROMOTE MEMBERS VIP #
####################################


$gigs = 25*1073741824; // 25 GB

   $res_premote = SQL_Query_exec("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND (uploaded / downloaded) >= 1.0");

   $time = get_date_time();

   while ($arr_premote = mysqli_fetch_assoc($res_premote)) {

       SQL_Query_exec("UPDATE users SET class = 3 WHERE id = $arr_premote[id]");

       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr_premote[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: vip')");

   }

               unset($res_premote,$arr_premote);



   $res_demote = SQL_Query_exec("SELECT id FROM users WHERE class = 3 AND uploaded >= $gigs AND (uploaded / downloaded) <= 1.0");

   while ($arr_demote = mysqli_fetch_assoc($res_demote)) {

       SQL_Query_exec("UPDATE users SET class = 1 WHERE id = $arr_demote[id]");

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

   }

               unset($res_demote,$arr_demote);

##########################
# END AUTO PROMOTE MEMBERS VIP#
##########################








[color=rgb(243, 121, 52)]For the power users function[/color]

####################################

# AUTO PROMOTE POWER USERS #

####################################

$gigs = 25*1073741824; // 25 GB

   $res_premote = SQL_Query_exec("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND (uploaded / downloaded) >= 1.0");

   $time = get_date_time();

   while ($arr_premote = mysqli_fetch_assoc($res_premote)) {

       SQL_Query_exec("UPDATE users SET class = 2 WHERE id = $arr_premote[id]");

       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr_premote[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: vip')");


   }

               unset($res_premote,$arr_premote);




   $res_demote = SQL_Query_exec("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND (uploaded / downloaded) <= 1.0");

   while ($arr_demote = mysqli_fetch_assoc($res_demote)) {

       SQL_Query_exec("UPDATE users SET class = 1 WHERE id = $arr_demote[id]");

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


   }

               unset($res_demote,$arr_demote);


##########################

# END AUTO PROMOTE POWER USERS #

##########################
in shoutbox.php search;
dans shoutbox.php rechercher;

    $query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;
}else{
   $query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}




add after:
ajouter après:

$donated = ($CURUSER["donated"]);
$userdownloaded = mksize($CURUSER["downloaded"]);

$useruploaded = mksize($CURUSER["uploaded"]);

$privacylevel = $CURUSER["privacy"];

if ($CURUSER["downloaded"] > 0) {

$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);

}else{

$userratio = "---";

}

print ("<br>

<div align='center'>
<img src='images/down.gif' title='Downloaded'> : $userdownloaded<-Vos statistiques-><img src='images/up.gif' title='Uploaded'> : $useruploaded<br>". Ratio .": $userratio <img src='images/d.jpg' title='Donation'>:</font><font size=4 color=red> $donated $<img src=images/star.gif alt=dons></font></div></center><br>");



ajouter les images dans votre dossier images;
ajouter les images dans votre dossier images;


[ATTACH type="full"]5904[/ATTACH]
Auto-Promote Users — 2020-09-24 16:44:46 in v3 Mods Completed
that should work for any User that has uploaded 25+GBs and has a ratio over 1


Hello I found this code below that works and change the class member to power user automatically with 25 go upload and a ratio of 1.00

but it doesn't downgrade the class power user to class  member  when the ratio is below 1.00 so there may be an error in the downgrade code and I can't find it. :rolleyes:




//AUTO PROMOTE USER

       $gigs = 25*1073741824; // 25 GB
       $res = SQL_Query_exec("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded");
       $time = get_date_time();
       while ($arr = mysqli_fetch_assoc($res)) {
               SQL_Query_exec("UPDATE users SET class = 2 WHERE id = $arr[id]");
               SQL_Query_exec("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 = SQL_Query_exec("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND uploaded < downloaded");
       while ($arr = mysqli_fetch_assoc($res)) {
               SQL_Query_exec("UPDATE users SET class = 1 WHERE id = $arr[id]");
               SQL_Query_exec("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')");
       }

//AUTO PROMOTE USER END
Auto-Promote Users — 2020-09-23 19:34:35 in v3 Mods Completed
hi and thanks I'll wait for your return for corrections (y):D
Auto-Promote Users — 2020-09-23 18:30:52 in v3 Mods Completed
Hello and sorry but the account does not update automatically here is my code below :rolleyes:

// Auto promote VIP
   $limit = 25 * 1024 * 1024 * 1024;
   $minratio = 3.00;
   $maxdt = get_date_time(time() - 86400 * 28);
   $res = SQL_Query_exec("SELECT id, username FROM users WHERE class = 1 AND uploaded >= $limit AND uploaded / downloaded >= $minratio AND added < $maxdt");
   if ($res) {
       $dt = get_date_time();
       $msg = "Félicitations, suite a votre bon ratio de partage de 3.00 ou plus vous avez été automatiquement promu VIP. Vous pouvez maintenant faire plus de choses.";
       while ($arr = mysql_fetch_assoc($res)) {
           SQL_Query_exec("UPDATE users SET class = 3 WHERE id = $arr[id]");
           $txt = "Vous avez été promu VIP!";
           $event = "$arr[username] a été promu VIP";
           SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[user_id], NOW(), $txt, 0)");
           SQL_Query_exec("INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, $arr[username], $event, NOW(), 0)");
           write_log("The user <a href=\"/user/?id=$arr[user_id]\">$arr[username]</a> A atteint un bon ratio de partage de 3.00 ou plus et a été automatiquement promu au rang VIP - Bravo !!!.");
       }
   }





// Auto demote vip
   $minratio = 1.80;
   $res = $db->query_params("SELECT user_id, username FROM users WHERE class = 3 AND uploaded / downloaded < :minratio", array('minratio' => $minratio));
   if ($res) {
       $dt = get_date_time();
       $msg = "Vous avez été automatiquement rétrogradé de vip a Membre parce que votre ratio de partage est tombé en dessous de.";
       while ($arr = $res->fetch()) {
           $db->query_params('UPDATE users SET class = 1 WHERE user_id = :user_id', array('user_id' => $arr['user_id']));
           $txt = "Vous avez été rétrogradé au rang de membre.";
           $event = "$arr[username] a été rétrogradé à Membre";
           $db->query_params('INSERT INTO messages (sender, receiver, added, msg, poster, subject) VALUES(0, :user_id, NOW(), :message, 0, :subject)', array('user_id' => $arr['user_id'], 'message' => $txt, 'subject' => 'Demoted!'));
           $db->query_params('INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, :receiver, :event, NOW(), 0)', array('receiver' => $arr['username'], 'event' => $event));
           write_log("The user <a href=\"/user/?id=$arr[user_id]\">$arr[username]</a> a été automatiquement promu au rang d'utilisateur vip.");
       }
   }
Auto-Promote Users — 2020-09-22 19:00:57 in v3 Mods Completed
hello, my vip id group is 3 in the BDD can you tell me what id group I have to put on this piece of code for the member to switch to vip; thanks in advance.

SQL_Query_exec("UPDATE users SET class = 3 WHERE id = $arr[id]");
Enchanced Requests — 2020-09-20 15:16:00 in v3 Mods Completed
Merci beaucoup pour le partage [USER=401]spiritblue[/USER] (y):D
download ban — 2020-09-20 09:48:05 in v3 Mods Requests
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/mod-stop-user-downloading.1651/[/url]

Hello, is it possible to modify the download ban module for the v3 because I tested the download ban of the v8 on the v3 and it doesn't work, thank you in advance.;)
good sunday and thank you for your work nice job, and I'm looking forward to have it in mysqli so that I can test it. (y):D
thanks image — 2020-09-19 18:51:49 in v3 Support
thank you MicroMonkey it's almost good I just corrected to add refresh and it works fine I put the right code below ;)(y)


if (!$leftthanks2) {
$button='<br/>

<input src="images/thanks.gif" height="80" width="100"style="border:0px;" type="image" id="refresh">';
} else {
$button='';
}
thanks image — 2020-09-19 16:06:22 in v3 Support
Hello I can't find the solution to modify this piece of code to replace thanks by a thanks image. :oops:


if (!$leftthanks2) {
$button='<br/><input type="button" value="Thanks" id="refresh">';
} else {
$button='';
}
Enchanced Requests — 2020-09-19 07:11:42 in v3 Mods Completed
bonjour pouvez vous me dire si c'est possible d'avoir la traduction française pour ce module :rolleyes:
Say Thanks & Force — 2020-09-11 04:39:34 in v3 Mods Completed
I just did a test with the micomonkey code and it doesn't work. :(
je viens de faire un test avec le code de micomonkey et ça ne fonctionne pas :(

print("<table><tr><td>". class_user("$thanks") ."</td></tr></table>\n");
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