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

guest — 2020-02-16 11:11:54 in v3 Support
Hello, I put the tracker in public mode I'm trying to hide the function thanks to the guest can you tell me if you have an idea I did a test with this piece of code but it does not work, thank you in advance.


here below is the code snippet I put to hide the guest thanks function in torrent detail




<?php if ($CURUSER){ ?>

here the code  hidden from the guests

<?php } ?>






<?php if ($CURUSER){ ?>

   //START THANKS\\\\
 
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username']) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == $CURUSER['username']) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}

if (!$leftthanks2) {
$button='<br/><input type="image" src="images/dire-merci.png" id="refresh">';
} else {
$button='';
}
echo '<tr><td align="left"><b>remercié par : </b></td><td><div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>

<script type="text/javascript">
var $s = jQuery.noConflict();

$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');

$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script></td></tr>';

////END THANKS\\\\\

<?php } ?>
color thanks — 2020-02-13 16:32:29 in v3 Support
Bonjour spiriteblue  sa ne fonctionne pas voici mon code  de torrent detail et le fichier thanks.php non modifier , merci pour l'aide





    //START THANKS\\\\
 
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username']) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == $CURUSER['username']) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}

if (!$leftthanks2) {
$button='<br/><input type="image" src="images/dire-merci.png" id="refresh">';
} else {
$button='';
}
echo '<tr><td align="left"><b>Thanks by : </b></td><td><div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>

<script type="text/javascript">
var $s = jQuery.noConflict();

$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');

$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script></td></tr><br/>';

////END THANKS\\\\\
color thanks — 2020-02-10 19:10:07 in v3 Support
(y):Dmerci de ton aide spiritblue je regarde pour la modification ce samedi et te dit quoi
color thanks — 2020-02-09 18:54:18 in v3 Support
merci de l'aide spiritblue mais je ne comprend pas se que tu veux dire ??
color thanks — 2020-02-09 16:28:13 in v3 Support
thanks for your help but with the change I have a blank page. :rolleyes:
color thanks — 2020-02-09 13:46:36 in v3 Support
Hello, I'm trying to put the color of the groups in the torrent detail for the members who say thank you.


here's the thanks code snippet from torrent detail


    //START THANKS\\\\
 
$thanksl = explode(",", $row['thanks']);
if ($CURUSER['username'] == $row['username']) {
$leftthanks = true;
$leftthanks2 = true;
} else {
foreach ($thanksl as $u) {
$thanks .= ($i > 0) ? ", $u" : $u;
if ($u == $CURUSER['username']) {
$leftthanks2 = true;
$leftthanks = true;
}
$i++;
}
}

if (!$leftthanks2) {
$button='<br/><input type="button" value="Dire merci" id="refresh">';
} else {
$button='';
}
echo '<tr><td align="left"><b>Thanks by : </b></td><td><div id="thankput"></div>'.$button.'
<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks.js"></script>

<script type="text/javascript">
var $s = jQuery.noConflict();

$s("#thankput").load("thanks.php?id='.$id.'");
$s(function() {
$s("#refresh").click(function() {
$s("#thankput").empty().html(\'<center><img src="'.$site_config["SITEURL"].'/images/ajax-loader.gif"></center>\');

$s("#thankput").load("thanks.php?id='.$id.'&to=give&torrent='.$id.'")
return false;
})
})
</script></td></tr><br/>';

////END THANKS\\\\\
new theme — 2020-02-06 11:06:37 in v3 Themes
english:

Hello everyone, I share this theme with you and you can look at it to modify it so that the blocks on the left are displayed because for the moment only the blocks on the right are displayed, thank you in advance for all your modifications in order to make it pretty.


french:

Bonjour à tous, je partage ce thème avec vous et vous pouvez le consulter pour le modifier afin que les blocs de gauche soient affichés car pour l'instant seuls les blocs de droite sont affichés, merci d'avance pour toutes vos modifications afin de le rendre joli.
re CAPTCHA — 2020-02-03 20:18:07 in v3 Mods Requests
Hello, I'm looking for a function to put the google recaptcha for when we create a new account, thanks in advance. ?

Bonjour, je cherche une fonction pour mettre la recaptcha google pour quand on crée un nouveau compte, merci d'avance.
"spiritblue, post: 67806, member: 401":

dans tous les fichiers recherche...
!in_array et remplace par in_array



Merci spiritblue mais maintenant la redirection automatique sur le detail du torrent après le vote ne fonctionne plus et toujours  le même problème le compteur des votes reste a 0 et avec ce message d'erreur qui est, ...   Tu as déjà participé pour ce torrent.
Merci beaucoup [USER=401]spiritblue[/USER] pour la mise à jour mais quand je clic sur,...    like  ou  love  ou  angry ,  ...   j'ai ce message,  ...  [b]Tu as déjà participé pour ce torrent.

et le vote reste a 0  la mise à jour ne se fait pas  :rolleyes:
[/b]
Like — 2020-01-29 16:26:09 in v3 Mods Requests
Bonjour spiritblue, je viens de rentrer du boulot et merci de ta réponse car j'ai fait des test et sa ne fonctionne pas, donc je vais attendre pour ta mise a jour  (y):D
Like — 2020-01-28 16:57:30 in v3 Mods Requests
Hi everyone I'm looking to run the torrent trader v2.0.8 module below but it doesn't work, can you help me to make it work?,  thank you in advance for your help :D

[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/reactions-mod-on-torrent-details-help-to-complete-the-mod.4840/[/url]
demote/promote auto — 2020-01-17 14:37:58 in v3 Support
Hello I made the test in admin cp and it does not work the members do not update but automatically to vip members.
//promote membres en vip

$limit = 50*1024*1024*1024;

$minratio = 4.00;

$maxdt = sqlesc(get_date_time(gmtime() - 86400*28));

$res = SQL_Query_exec("SELECT id, username FROM users WHERE class = 1 AND uploaded >= $limit AND uploaded / downloaded >= $minratio AND added < $maxdt") or sqlerr(__FILE__, __LINE__);

if (mysqli_num_rows($res) > 0)

{

   $dt = sqlesc(get_date_time());

   $msg = sqlesc("BRAVO !!!, vous avez obtenu un compte VIP automatiquement par le systeme.");

   while ($arr = mysqli_fetch_assoc($res))

   {

       SQL_Query_exec("UPDATE users SET class = 3 WHERE id = $arr[id]") or sqlerr(__FILE__, __LINE__);

       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES (0, $arr[id], $dt, $msg, 0)") or sqlerr(__FILE__, __LINE__);

       write_log("User <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a> BRAVO !!! Vous avez un ratio de partage supérieur a 4.00 et vous avez obtenu un compte VIP automatiquement par le systeme.");

   }

}
demote/promote auto — 2020-01-16 19:02:23 in v3 Support
Thanks for your help. I'm gonna go clean up the admin cp and come back tomorrow and tell you what. (y):D


//promote membres en vip

$limit = 50*1024*1024*1024;

$minratio = 4.00;

$maxdt = sqlesc(get_date_time(gmtime() - 86400*28));

$res = SQL_Query_exec("SELECT id, username FROM users WHERE class = 1 AND uploaded >= $limit AND uploaded / downloaded >= $minratio AND added < $maxdt") or sqlerr(__FILE__, __LINE__);

if (mysqli_num_rows($res) > 0)

{

   $dt = sqlesc(get_date_time());

   $msg = sqlesc("BRAVO !!!, vous avez obtenu un compte VIP automatiquement par le systeme.");

   while ($arr = mysqli_fetch_assoc($res))

   {

       SQL_Query_exec("UPDATE users SET class = 3 WHERE id = $arr[id]") or sqlerr(__FILE__, __LINE__);

       SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES (0, $arr[id], $dt, $msg, 0)") or sqlerr(__FILE__, __LINE__);

       write_log("User <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a> BRAVO !!! Vous avez un ratio de partage supérieur a 4.00 et vous avez obtenu un compte VIP automatiquement par le systeme.");

   }

}
demote/promote auto — 2020-01-16 17:45:14 in v3 Support
thank you very much for the support but it doesn't work the account update doesn't update automatically :eek:
demote/promote auto — 2020-01-14 16:35:01 in v3 Support
Hello I've tested this code but it doesn't work, can you help me to make it work, thanks in advance. (y):D



add to cleanup.php

add near the end

//heres another take on demote/promote auto

//promote member to power user


$limit = 25*1024*1024*1024;

$minratio = 1.05;

$maxdt = sqlesc(get_date_time(gmtime() - 86400*28));

$res = mysqli_query("SELECT id, username FROM users WHERE class = 1 AND uploaded >= $limit AND uploaded / downloaded >= $minratio AND added < $maxdt") or sqlerr(__FILE__, __LINE__);

if (mysqli_num_rows($res) > 0)

{

   $dt = sqlesc(get_date_time());

   $msg = sqlesc("Congratulations, you have been auto-promoted to Power User by SYSTEM.");

   while ($arr = mysqli_fetch_assoc($res))

   {

       mysqli_query("UPDATE users SET class = 2 WHERE id = $arr[id]") or sqlerr(__FILE__, __LINE__);

       mysqli_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES (0, $arr[id], $dt, $msg, 0)") or sqlerr(__FILE__, __LINE__);

       write_log("User <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a> Was automatically promoted to POWERUSER by SYSTEM.");

   }

}







//Demote power-users to members and disable account

$limit = 25*1024*1024*1024;

$minratio = 0.75;

$maxdt = sqlesc(get_date_time(gmtime() - 86400*28));

$res = mysqli_query("SELECT id, username FROM users WHERE class = 2 AND uploaded <= $limit AND uploaded / downloaded <= $minratio AND added < $maxdt") or sqlerr(__FILE__, __LINE__);



if (mysqli_num_rows($res) > 0)

{

   $dt = sqlesc(get_date_time());

   //$msg = sqlesc("Congratulations, you have been auto-demoted to Member and account disabled by SYSTEM. Probably due to low ratio or account inactivity.");

   while ($arr = mysqli_fetch_assoc($res))

   {

       mysqli_query("UPDATE users SET class = 1, enabled = 'No' WHERE id = $arr[id]") or sqlerr(__FILE__, __LINE__);

       //mysqli_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES (0, $arr[id], $dt, $msg, 0)")or sqlerr(__FILE__, __LINE__);

          write_log("User <a href=account-details.php?id=".$arr["id"].">".$arr["username"]."</a> Was automatically demoted to member and disabled by SYSTEM. Messages purged.");

       //remove any records belonging to this user in messages

             mysqli_query("DELETE FROM messages WHERE receiver = $arr[id]")or sqlerr(__FILE__, __LINE__);

   }

}
"thib, post: 31973, member: 1149":

évidement c'est faisable. A partir du moment ou tu obtiens l'images via l'api allocine il te suffit d'utiliser l'array de l'image et de le placer dans le champ image1 de la page upload



french:
merci pour l'info mais pouvez vous me dire comment placer  l'array de l'image pour que l'image de allociné soit prise en compte pour l'afficher à la place de l'image de "upload image"

merci d'avance


english:

thanks for the info but can you tell me how to place the array of the image so that the allocated image is taken into account to display it instead of the "upload image" image
mp shoutbox — 2019-12-11 16:19:01 in v3 Mods Requests
"shadows, post: 67650, member: 20311":

if ($CURUSER) {
    //check for new pm's
    $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
    $arr = mysqli_fetch_row($res);
    $unreadmail = $arr[0];
    if ($unreadmail)
        print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}






Good evening, a big thank you to you shadows it works well now with this code, and you can put it in the finished modules (y):D
mp shoutbox — 2019-12-10 21:04:47 in v3 Mods Requests
thanks for your help but with this code the messages from the shoutbox have disappeared
mp shoutbox — 2019-12-10 19:50:20 in v3 Mods Requests
Hello, can you look at making this module to ttrader v3 compatible because I added the code and it doesn't work, thank you in advance o_O


[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/new-pm-in-shoutbox.3981[/url]
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