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
Seed Bonus [TTv3]
Controls ·  Search New posts · Mark unread

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

2019-10-06 19:28:51
"MicroMonkey, post: 67306, member: 311":

make sure you dont have this twice in your config if using spiritblue edits :) This already exists in your config
$site_config['autoclean_interval'] = '3600'; // Time between each auto cleanup (Seconds).


yess!! (y)
2019-10-06 20:56:07
small request
at line 60 of the getshout file, I would like to add the color when one answers by the code and I have the trunk to operate

".$row['name']." form ".class_user($row['name'])."

thanks !
2019-10-07 08:16:55
hello spiritblue I just saw that there is still a small problem, the seedbonus remains at 0 ???

Seedbonus : [url='https://www.tigers-dl.net/mybonus.php']0.0[/url]
2019-10-07 11:07:06
try
if ($site_config["SEEDBONUS"])

instead of
if ($CURUSER["SEEDBONUS"])

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-10-15 17:30:22
Hello, can you tell me if it is possible to put the seedbonus in account-details.php in order to see the member's seedbonus :rolleyes:
2019-10-15 18:05:23
Find
<?php echo T_("DOWNLOADED"); ?>: <?php echo mksize($user["downloaded"]); ?><br />


Add below
<?php echo T_("Seed Bonus"); ?>: <?php echo mksize($user["seedbonus"]); ?><br />
2019-10-15 18:49:42
Hello and thank you for the information but now there is an error because my seedbonus is 57901.0 and with this code add it displays Seed Bonus: 56.54 kB :rolleyes:
2019-10-16 04:33:21
Sorry try this I didn't remove the function

<?php echo T_("Seed Bonus"); ?>: <?php echo $user["seedbonus"]; ?><br />
2019-10-16 09:43:26
Thank you very much for your help it works perfectly now (y):D
2019-10-20 01:50:44
can you say if the site_config or CURUSER part worked fine or not? If using spiritblue edit? This seems correct to me. If im wrong, lemme know about it
// Seedbonus upadate 2019 by spiritblue / if() statemement edited by MicroMonkey and beer
if ($site_config["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

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-01-04 06:48:18
work thanks
2020-01-06 09:00:25
its not count bouns
now ok work prefect 100%
2020-03-01 15:09:25
hi there first off just want to say thanks to everyone that provides all the coding and mods. i am a total noob when it comes to this stuff ?

so i managed to get this mod to show but it does not change it it stays on 0.0 i followed everything that was posted here except the bonus for commenting part. Any help or pointers would be appreciated
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
2020-03-01 16:58:32
How long as it been installed might just be delayed or you can force cleanup in admincp
Does the rest of the mod work for you
2020-03-01 17:12:36
hi about 2 hours now i don't get any errors and it shows up everywhere so i assume it is working maybe i was too impatient :) will do a force cleanup and checks. thanks for the info
Torrent Trader PDO/MVC 2021
Xampp Windows 10 21H1
Apache Version: Apache/2.4.48 (Win64)
Mysql Version: 10.4.20-MariaDB
PHP Version: 8.0.9
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