Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Freeleech with multiplier (http://www.bvlist.com/showthread.php?t=183)

AboudMokh 31st July 2008 23:45

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

geeks 1st August 2008 00:11

Does thsi work with xBtit 2.0.0

NatashaRhea 28th August 2008 01:57

i got this error how do i fix it
 
Error! Direct initialization of this file is not allowed.

LANDSER 2nd September 2008 21:38

Quote:

Originally Posted by AboudMokh (Post 3035)
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 .

elvira 2nd December 2009 23:08

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");




LoaT 12th December 2009 02:28

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 :)

djblackout 19th March 2010 20:05

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 ?

j4v1 5th July 2012 02:09

Where I can find freeleech mod for use this mod?


thanks

I_lie_and_steal_code_and_call_it_mine 8th July 2015 23:43

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


All times are GMT +2. The time now is 20:55.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.