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
[MOD] Stop user downloading
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2010-03-04 08:10:36
Quote:
$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){

stdhead("Download Banned");

begin_frame("You are Banned from downloading Torrents ");

echo "<center><br><BR><B>A Admin has banned you from downloading Torrents.<br><b>";

echo "<br>If you have any complaints, contact us :<ahref=mailto:". $site_config['SITEEMAIL'] .">". $site_config['SITEEMAIL'] ."</a><br><BR></center>";

end_frame();

stdfoot();

exit;

}


All you actually need is:



if ($CURUSER["downloadbanned"] == "yes") {

show_error_msg("Access Denied", "You have been banned from downloading torrents.<BR>Please contact a member of staff if you don't know why.", 1);

}
2010-10-19 01:01:44
Thanks you!  :D
Unknown User
2010-12-20 00:49:17
Thanks :rolleyes:
Unknown User
2011-03-21 20:23:15
yop work well but here is a small problem

when a member is curently leechinig a torrent after a ban download it dont stop this torrent. some one have the same problem ?
Unknown User
2011-03-22 00:27:43
hi,

if your using passkey system do like djhowarth say just reset passkey...
Unknown User
2011-03-22 01:58:46
yes its that i do ^^  the member  downloaded about 300 gb of files loll
Unknown User
2011-03-22 20:22:13
"martel_222, post: 71545":
yes its that i do ^^  the member  downloaded about 300 gb of files loll


Do like i did... install the slot system by class from djhowarth it working just fine, this will stop the ppl to download more of what they allowed to download...
2011-05-22 14:50:11
Moi je cherche a jouter au mode Membre Avertie une image ou un x pour dire que le membre a plus acces au t
Unknown User
2011-07-13 22:07:08
thanks man  :D   it worked for me ^^
Unknown User
2011-07-24 21:42:59
Hi Guys,

Is possible to know if the first post was updated with all the FIXES.  More, is this MOD working?  Can it be repost!

Thanx. Regards.
2013-08-31 19:53:41
"Pseudo, post: 48545":

AS TS states-Don't forget the announce.php because then even if you have missed something; they can't download.

find

$userfields = "id, class, uploaded, downloaded, ip, passkey"; //user details to get
and replace with

$userfields = "id, class, uploaded, downloaded, ip, passkey, downloadbanned"; //user details to get

and before

$peerlimit = 50;

add

if($user["downloadbanned"] != 'no')
{
err("You cannot download this torrent until your a good boy/girl/other again.");
}

v2.08?????

error announce.php

$userfields = "u.id, u.class, u.uploaded, u.downloaded, u.ip, u.passkey, g.can_download"; //user details to get


Unknown User
2013-08-31 20:15:00
looks like 2.08 it was changed to

$userfields = "u.id, u.class, u.uploaded, u.downloaded, u.ip, u.passkey, g.can_download"; //user details to get

so this should work in theory..
$userfields = "u.id, u.class, u.uploaded, u.downloaded, u.ip, u.passkey, g.can_download, u.downloadbanned"; //user details to get

this should work..

if($user["downloadbanned"] != 'no')
{
err("You cannot download this torrent until your a good boy/girl/other again.");
}

but I would put it before or after
    if ($user["can_download"] == "no")
       err("You do not have permission to download.");
2013-08-31 20:52:52
#1 big thanks ArcticWolf  :D  B)

question ... why u. ?..
Unknown User
2013-08-31 22:03:08
cause of this in announce.php.

if ($MEMBERSONLY){
//check passkey is valid, and get users details
$res = SQL_Query_exec("SELECT $userfields FROM users u INNER JOIN groups g ON u.class = g.group_id WHERE u.passkey=".sqlesc($passkey)." AND u.enabled = 'yes' AND u.status = 'confirmed' LIMIT 1") or err("Cannot Get User Details");
$user = mysql_fetch_assoc($res);
if (!$user)
err("Cannot locate a user with that passkey!");
   if ($user["can_download"] == "no")
       err("You do not have permission to download.");
$userid = $user["id"]; //etc
}

if that dont match you version then you prob dont have an 2.08 announce lol
2013-09-01 00:38:01
Exact lolll  ;)
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