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
Upload External torrents for certain groups
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2023-03-16 11:49:45
Hi does anyone know how to make it so only certain groups can upload external torrents, not wanting everyone to be able to upload externals, using V3

Thanks in advance
2023-03-16 14:00:33
You read the primary key from “Groups” table.

You need to left join both groups and users andLEFT JOIN both columns to read the value. From there, check it and if it’s set (use a enum, or 0, 1) and you’ll get it working.

Groups.id <=> users.level

SELECT u.level FROM users u LEFT JOIN groups g ON g.id = u.level
2023-03-16 15:48:00
on torrent-upload.php this is the only error i see for external
	if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes')
$message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
}

to allow external you would have to turn on in config
to continue blocking external by others this should work
	if ($CURUSER["class"] <= 4 && $external == 'yes')
$message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
}

i dont think allowing external will cause any issues anywhere else as long as staff upload - for example users should be abled to download internal & external
2023-03-16 16:11:43
I was thinking this, but I didnt test it. Basically the same as m-jay
if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes' && $CURUSER["class"] >= 4) {
   $message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
}

change the 4 to whatever classes you use, or you could change it to =4 removing the > to isolate it to one class of user
or maybe multiple exactly specified classes like
if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes' && ($CURUSER["class"] == 4 || $CURUSER["class"] == 7)) {
   $message = T_("UPLOAD_NO_TRACKER_ANNOUNCE");
   }

again, I didnt test this, Im just going off the idea that m-jay had

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)
Last edited by MicroMonkey on 2023-03-16 16:20:17
2023-03-18 00:04:52
I’m the best person to ask about private/external side by side. You know what I offer, and it’s easy to see “who” is seeding, downloading or waiting.

What happens with external (which I really don't like) is it tells you practically nothing. You get 3 integers and absolutely nothing about the peers.

So unless you’re running a scraper constantly for UDP/HTTPS traffic, you won’t see any activity on those external torrents. So naturally they appear completely dead.

The hits and views on them are so low, people just scroll past external torrents because they’ve been spoiled by my offerings for so long.

External sucks. I support it but it’s pointless. Can’t track nothing off of it properly.

Go private imho
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