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
download ban
Controls ·  Search New posts · Mark unread

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

2020-09-20 09:48:05
[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.;)
2020-09-20 13:30:06
"niki, post: 69374, member: 20338":

[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.;)

allo niki
tu as juste l'ami a changer mysql_ pour ajouter le i (mysqli_) pour le reste c'est  la même procédure d’installation. ;)
2020-09-20 14:51:49
mysql_query should be SQL_Query_exec along with what spiritblue said
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-09-20 18:58:50
In my tests I’ve found banning peer_ID is effective but keep in mind, they can keep starting/stopping to trigger a new auto incremented peer ID after interval clean. I should check this mod
2022-03-21 19:32:27
Noticed this announce edit could be improved https://torrenttrader.uk/topic?topicid=1651&page=#post8905

This allows user to seed but not leech so can improve ratio
if($user["downloadbanned"] != 'no' && $seeder == 'no')
{
err("You cannot leech your banned from downloading.");
}


Further down in post there is download.php edit I changed this
$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND downloadbanned='no' LIMIT 1") or err('Tracker error (1)');
if (mysql_num_rows($subbanned) < 1  ||   $row["external"] =='yes'  && $CURUSER["downloadbanned"]=="yes" ){
show_error_msg("Error", "You have been banned from download.", 1);
}


Now members can't download external and if internal can download and seed but can't leech so can upload if banned for poor ratio
Last edited by M-jay warn on 2022-03-22 17:54:35
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728