Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > TBDev > Mods & Themes
Reply
  #11  
Old 31-07-08, 23:45
AboudMokh's Avatar
AboudMokh AboudMokh is offline
Member
 
Join Date: Jul 2008
Posts: 6
Default
PHP Code:
$free false//set free on off(generally) 
$double false//set 2x multiplier
$four false//set 4x multiplier

//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE 
I add this where ??? in announce.php
Reply With Quote
  #12  
Old 01-08-08, 00:11
geeks's Avatar
geeks geeks is offline
Member
 
Join Date: Jul 2008
Posts: 3
Default
Does thsi work with xBtit 2.0.0
Reply With Quote
  #13  
Old 28-08-08, 01:57
NatashaRhea's Avatar
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default i got this error how do i fix it
Error! Direct initialization of this file is not allowed.
Reply With Quote
  #14  
Old 02-09-08, 21:38
LANDSER's Avatar
LANDSER LANDSER is offline
Member
 
Join Date: May 2008
Posts: 9
Default
Quote:
Originally Posted by AboudMokh View Post
PHP Code:
$free false//set free on off(generally) 
$double false//set 2x multiplier
$four false//set 4x multiplier

//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE 
I add this where ??? in announce.php
yes,in announce .php .
Reply With Quote
  #15  
Old 02-12-09, 23:08
elvira's Avatar
elvira elvira is offline
Veteran
 
Join Date: Jan 2008
Slovenia
Posts: 65
Default
Hi, its that correctly

PHP Code:
    if ($double)
        
$upthis *= 2;
 if (
$four)
        
$upthis *= 4;

if (
$upthis || $downthis 0)
    if(
$torrent['free']=='yes')
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error 3 (freeleech)");
    else
    if(
$torrent['silver']=='yes')
        {
$downthis=$downthis/2;
        
$upthis $upthis*2;
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3 (silver)");
        }
    else
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");

//    mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3");



Last edited by elvira; 02-12-09 at 23:28.
Reply With Quote
  #16  
Old 12-12-09, 02:28
LoaT's Avatar
LoaT LoaT is offline
Senior Member
 
Join Date: Jan 2009
Sweden
Posts: 31
Default
this works perfect with the 2009-version.. just use this:
Quote:
else
{
$upthis = max(0, $uploaded - $self["uploaded"]);
$downthis = max(0, $downloaded - $self["downloaded"]);
if ($free)
$downthis = 0;
if ($double)
$upthis *= 2;
if ($four)
$upthis *= 4;

if ($upthis > 0 || $downthis > 0)
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=".$user['id']) or err("Tracker error 3");
}
instead of the one in #0 :)
Reply With Quote
  #17  
Old 19-03-10, 20:05
djblackout's Avatar
djblackout djblackout is offline
Senior Member
 
Join Date: Aug 2009
Denmark
Posts: 51
Default hey sharky im not sure if you a dublicate or the true one
hi i have using torrent plugin for your torrent sharkydog tracker ... e107 and would know if it is you who made it ?
Reply With Quote
  #18  
Old 05-07-12, 02:09
j4v1's Avatar
j4v1 j4v1 is offline
Member
 
Join Date: Jul 2012
P2P
Posts: 6
Default
Where I can find freeleech mod for use this mod?


thanks
Reply With Quote
  #19  
Old 08-07-15, 23:43
I_lie_and_steal_code_and_call_it_mine's Avatar
I_lie_and_steal_code_and_call_it_mine I_lie_and_steal_code_and_call_it_mine is offline
I have no idea how to code
 
Join Date: Jun 2015
Posts: 9
Thumbs up
PHP Code:
ALTER TABLE `torrentsADD `doubleenum('yes','no') DEFAULT 'no'
find

PHP Code:
dbconn(false); 
PHP Code:
$res mysql_query 
add

PHP Code:
double
find

PHP Code:
$free $torrent["free"]; 
above add

PHP Code:
$double $torrent["double"]; 
find


PHP Code:
if ($free == 'yes'$downthis 0
above add

PHP Code:
if ($double == 'yes'$downthis 2
new to bittorrant
add

PHP Code:
$thisisdouble = ($row[double]=="yes" "<img src='pic/double.png' align='left' />" ""); 
browse.php
add


PHP Code:
torrents.double
not tested
Reply With Quote
Reply

Tags
freeleech , multiplier

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TBDEv Freeleech mod ? poiuy6789 TBDev 6 11-06-13 03:39
freeleech.eu tbdev final 2009 djblackout Community Cafe 0 23-03-10 04:42
tbdev.net (netmaniack's edition) 1.5 freeleech.php tunad Community Cafe 0 28-12-08 14:44
Freeleech tunad Torrent Strike 2 18-11-08 13:42
FreeLeech vertex YSE 9 07-09-08 21:38



All times are GMT +2. The time now is 15:05. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.