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
2008-10-27 23:41:33
There is a few changes needed to this mod as walker as shown so if any 1 can make it better feel free

This mod allows admin to enable a user to download or not

ALTER TABLE `users` ADD `downloadbanned` char(3) NOT NULL default 'no';


Open torrent-details.php

find

begin_frame("" . TORRENT_DETAILS_FOR . " \"" . $shortname . "\"");
Add bellow


////////////////////////bann download ///////////////////////////////////////////////////

$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;

}



/////////////////////////////////////////////////////////////////////////////////////////////////





Open admin-modtasks.php

find



$forumbanned = $_POST["forumbanned"];



Add below



$downloadbanned = $_POST["downloadbanned"];



Find



mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned', modcomment='$modcomment', enabled='$enabled', invites='$invites' WHERE id=$userid");



Replace with



mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned',  modcomment='$modcomment', enabled='$enabled', downloadbanned='$downloadbanned', invites='$invites' WHERE id=$userid");





Open account-details.php

Find



$forumbanned = $user["forumbanned"] == 'yes';



Add below



$downloadbanned = $user["downloadbanned"] == 'yes';



Find



print("<tr><td>Forum Banned: </td><td align=left><input name=forumbanned value=yes type=radio" . ($forumbanned ? " checked" : "") . ">Yes <input name=forumbanned value=no type=radio" . (!$forumbanned ? " checked" : "") . ">No</td></tr>\n");



Add below



print("<tr><td>Download Banned: </td><td align=left><input name=downloadbanned value=yes type=radio" . ($downloadbanned ? " checked" : "") . ">Yes <input name=downloadbanned value=no type=radio" . (!$downloadbanned ? " checked" : "") . ">No</td></tr>\n");



Please let me no what u think and if there any errors
Unknown User
2008-10-28 00:19:12
Hehehe! I Was First To Try It! Me And Foz Tried This On My Site And It Works Cheers Foz!
Unknown User
2008-10-28 00:58:02
this may not not completely stop the download. there are more places you should block. like the one in the premium section that i had made i had a few problems at first because i did not cover all areas where you can download. there is one part that could be reduced but the way you set it up is nice. as far as the banned part to test it ban yourself and then try to download on every single page that will let you download. because torrent-details.php is not the only page you have to block.
Unknown User
2008-10-28 01:07:49
"walker1977, post: 48106":
this may not not completely stop the download. there are more places you should block. like the one in the premium section that i had made i had a few problems at first because i did not cover all areas where you can download. there is one part that could be reduced but the way you set it up is nice. as far as the banned part to test it ban yourself and then try to download on every single page that will let you download. because torrent-details.php is not the only page you have to block.

I have made the mod as in it will not allow to be downloaded anywhere well not what i can see anywayz if u see any let me no and i will be straight back to work on it
Unknown User
2008-10-28 01:10:03
Well At Least Fozshell As Made It For All The Site! I Refuse To Join Premium Because No One Can Stop Us Thinking Of Ideas, And Creating Them In The Normal Forum. This Forum Is Like Life You Get Your Posh Basterds -> "Premium Members" and Normal Members Are Like People Who Live In Council Houses Like Me HAHAHA!  ;)
Unknown User
2008-10-28 01:15:07
by stopping people in torrent-details.php does nothing if i can see your torrent table or type in the torrent number at the end of a certain page. i wish i was rich lmfao but i guarentee you have more money in your pocket than me because i do not have a government that supports me and i never would want one because then you become their slave lmfao
Unknown User
2008-10-28 09:52:47
[size=12px]thank you,[/size]

[size=12px]
[/size]

[size=12px]
very good ...  mod ok . sans problem for v2.5[/size]

;)
Unknown User
2008-11-06 17:47:42
-------------------
Unknown User
2008-11-06 18:16:19
You don't need to edit details, you just need to edit download.php and announce.php
Unknown User
2008-11-06 20:59:51
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.");

}
Unknown User
2008-11-12 12:04:25
Hi, its problem..TTv.2.04

Not open to preview Torrent Files, block all - user and Admin..

[url="http://i031.radikal.ru/0811/2c/97f556152389.jpg"][/url]

Line 107:  $subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND downloadbanned='no' LIMIT 3") or err('Limited (3)');
Unknown User
2008-11-29 02:33:56
in the download.php

Find:

dbconn();







below add:





////////////////////////bann download ///////////////////////////////////////////////////

$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){

show_error_msg("Error", "You have been banned from download.", 1);

}
Unknown User
2008-11-30 11:16:33
this mod work with 2.04

and how add a mod for stop the download when the user download 3 torrent and open the download when the user download 0, 1, 2 torrent ?

A kind of limit of telechargement

Thanks you for your help
Unknown User
2009-01-18 18:36:43
this mod work with 2.05 THX for all
Unknown User
2009-01-19 19:34:02
The only problem of this mod is that when you block someone downloading in announce you also block it to upload, so the guy can't seed.
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