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
Say Thanks & Force
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2021-05-23 09:34:07
yesss  :D  thanks coco
2022-01-25 20:46:08
thanks πŸ˜‰  πŸ˜‰ |   I really needed   |



for who wants to put points bonus for a thanks


find this code  in thanks.php
SQL_Query_exec(sprintf("UPDATE `torrents` SET thanks = CONCAT_WS(',', `thanks`, %s) WHERE `id`=%d", sqlesc($CURUSER['username']), $id));


Add after
SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+10.0 WHERE id = ".$CURUSER["id"]."") ; 

2022-02-13 14:09:05
Hello and thank you for this modification and can you tell me the modification and the code to add to give 20 points to members who post a comment on the torrent, thank you in advance for your help  πŸ™„
2022-02-13 20:07:49
I’ll do it. Give me a couple hours this afternoon (my time), and you will have full modification for your desire.
2022-02-14 16:47:57
thanks STorrents2020  πŸ‘  πŸ˜Š
2022-02-14 21:56:22
thanks you  STorrents2020  πŸ˜‰  πŸ‘Œ
2022-02-16 16:01:02
Hello and here is my modification to add 50 points of seedbonus when a member posts a comment on the torrent

torrents-details.php search this line of code

SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");



below add


// Points Seedbonus By spiritblue
$commentaire = get_row_count("comments", "WHERE torrent = $id AND user = $CURUSER[id]");        
if ($commentaire < 1) {
   SQL_Query_exec("UPDATE users SET seedbonus = seedbonus+50.0 WHERE id = ".$CURUSER["id"]."") ;
}
// End Points Seedbonus







Last edited by niki on 2022-02-16 16:02:01
2024-02-25 15:43:20
I'm trying to do it on the magnet, but it doesn't go through the download.php file, so I need help.

I'll give you my information so far
===========
Je suis tentΓ© de faire sur le magnet, mais il ne passe pas par le fichier download.php, donc j'ai besoin d'aide.

Je vous remets mes infos Γ  ce jour

SQL :
ALTER TABLE `torrents` ADD `thanks_magnet` LONGTEXT;


In download.php search :
$res = SQL_Query_exec("SELECT filename, banned, external, announce, thanks,


Add :
thanks_magnet, 


Search :
$name = $row['filename'];


Add :
// START THANKS MAGNETIC
$site_config["LEFTNAV"] = $site_config["RIGHTNAV"] = false; //Activate=true OR false
if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks_magnet"])))
error_download('⚠ Error download ⚠ ','
<br/>
<div style="vertical-align: middle;font-size: 1.4em;"> You Haven\'t Thanked The Sharer Yet, Watch The Video ↴</div><hr class="barre" width="850" style="height:20px"/>
<video controls width="640">
   <source src="/media/cc0-videos/flower.webm"
           type="video/webm">
   <source src="https://www.MY_NAME_SITE.com/infostelechargementtorrent.mp4"
           type="video/mp4">
   Sorry, your browser does not support embedded videos
</video>
<br/><a class="stylebouton" href="'.$site_config["SITEURL"].'/torrents-details.php?id='.$id.'' . ".$torrent." . '&hit=1">Back to my choice</a>
',1);
// END THANKS


In torrents-details.php Search :
$res = SQL_Query_exec("SELECT torrents.anon, torrents.safe, torrents.markedby, torrents.tube, torrents.recommended, torrents.exclusif, torrents.thanks,


Add :
torrents.thanks_magnet, 


Search :
//End Torrent Externe


Add :
//START THANKS MAGNETIC\\\\ 
   $thanksl = explode(",", $row['thanks_magnet']);
   if ($CURUSER['username'] == $row['username']) {
   $leftthanks = true;
   $leftthanks2 = true;
   } else {
   foreach ($thanksl as $u) {
   $thanks_magnet .= ($i > 0) ? ", $u" : $u;
   if ($u == class_user($CURUSER['username'])) {
   $leftthanks2 = true;
   $leftthanks = true;
   }
   $i++;
   }
   }
   if (!$leftthanks2) {
   $button='<input type="button" name="thanks_magnet" value=" Say Thanks For Downloading " id="refresh">';
   } else {
   $button='<hr/>';
   }
   echo '<center><div id="Bouton_thanck"><p colspan="4"><hr class="barre"/> β‡˜ Les Remerciments Magnetic ⇙ <div id="thankput"></div>'.$button.'<script type="text/javascript" src="'.$site_config["SITEURL"].'/js/thanks_magnet.js"></script>
   <script type="text/javascript">
   var $s = jQuery.noConflict();

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

   $s("#thankput").load("thanks_magnet.php?id='.$id.'&to=give&torrent='.$id.'")
   return false;
   })
   })
   </script></p></div></center><br/>';
////END THANKS MAGNETIC\\\\\


* Add the two files to the root of your database
... I may not have translated all of them, sorry ;)

Thank you for your help β™«

thanks_magnet.zip
Download
magnet.png
magnet.png
magnetique.png
magnetique.png

Last edited by spiritblue on 2024-02-25 16:02:05
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