Please help us to develop!
Reply to topic Reply to topic
Page 1 of 1 Tp MOD Forum Index / Hacks Submitted / scar's simple free leech mode  

PostPost subject: scar's simple free leech mode Posted: 12-19-2007 11:57
scar



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-04-04
Posts: 10
  this is a hack that, when enabled, will cause your users download amount to stay the same no matter how much they download. this does not affect their upload though, their upload will still increase.

its good to enable this for a a short period of time, it draws attention to your site and/or can be used as a reward for your site members

open up bt/includes/functions_user.php

replace this:

Code:

function update_user_up_down_stat ($user_id, $up_add, $down_add)
{
  global $db, $sql;

  $sql = 'UPDATE '. BT_USERS_TABLE ." SET
    u_up_total = u_up_total + $up_add,
    u_down_total = u_down_total + $down_add
  WHERE user_id = $user_id
  LIMIT 1";


with this:

Code:

function update_user_up_down_stat ($user_id, $up_add, $down_add)
{
  global $db, $sql;

  $freeleech = 'no'; // change this to 'yes' if you want free leech enabled

  if ($freeleech == 'yes')
  {
    $sql = 'UPDATE '. BT_USERS_TABLE ." SET
      u_up_total = u_up_total + $up_add
    WHERE user_id = $user_id
    LIMIT 1";
  }
  else
  {
    $sql = 'UPDATE '. BT_USERS_TABLE ." SET
      u_up_total = u_up_total + $up_add,
      u_down_total = u_down_total + $down_add
    WHERE user_id = $user_id
    LIMIT 1";
  }


and youre done. now upload the file to your web host, overwriting the old one.

any time you want to enable free leech just change "$freeleech = 'no';" to "$freeleech = 'yes';"

  Reply with quote
View user's profile Send private message
PostPost subject: Please Click to support this site Posted: 12-19-2007 11:57
Google

AdSense






 


 
PostPost subject: Posted: 12-20-2007 00:16
diemthuy



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-07-13
Posts: 13
  Very nice , is it possible to make a setting in the acp ?

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 12-22-2007 18:55
scar



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-04-04
Posts: 10
  yes of course its possible, and perhaps i will work on that in the future

but for now, you can just make that minor modification for free leech mode

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-25-2008 00:07
Anonymous

Guest

UL: 0 B
DL: 0 B
Ratio: -


  Free download (Gold Day) with management through ACP


Gold_day.zip
 Description:  
Download
 Filename:  Gold_day.zip
 Filesize:  9.4 KB
 Downloaded:  162 Time(s)



Last edited by Anonymous on 05-25-2008 00:52; edited 1 time in total
  Reply with quote
PostPost subject: Posted: 05-25-2008 00:25
diemthuy



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-07-13
Posts: 13
  nice , I go try it tonight , thx

  Reply with quote
View user's profile Send private message
Page 1 of 1
Reply to topic Reply to topic
 Tp MOD Forum Index / Hacks Submitted / scar's simple free leech mode

Jump to: 



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB - 2001, 2002 phpBB Group
All times are GMT - 6 Hours ,
TorrentPier © Meithar - Support Tp MOD ©