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)

sharky 23rd February 2008 19:20

Freeleech with multiplier
 
YOU MUST HAVE THE FREELEECH MOD INSTALLED IN ORDER TO USE THIS MOD :)

this mod makes your uploadx2 or x4 on freeleech torrents, of course, if the freeleech and the multiplier are set "true"

so, basically..add this in announce .php , beneath the first
Code:


add

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

then, replace this
Code:

else
{
    $upthis = max(0, $uploaded - $self["uploaded"]);
    $downthis = max(0, $downloaded - $self["downloaded"]);

    if ($upthis > 0 || $downthis > 0)
        mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}
}

with
Code:

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=$userid") or err("Tracker error 3");
}

that's it. tested and works

wMan 7th March 2008 19:51

Re: Freeleech with multiplier
 
cheers sharky :dance:

sharky 10th March 2008 16:01

Re: Freeleech with multiplier
 
anytime mate

snakebite 30th April 2008 22:33

Re: Freeleech with multiplier
 
thnx just what i needed :D

wMan 4th May 2008 18:03

Re: Freeleech with multiplier
 
this is mine so would the freeleech ive added still work?


else
Code:

{
        $upthis = max(0, $uploaded - $self["uploaded"]);
        $downthis = max(0, $downloaded - $self["downloaded"]);
    // Get the last uploaded amount from user account for reference and store it in $last_up
    $rst = mysql_query("SELECT class, uploaded FROM users WHERE id = $userid") or err("Tracker error 5");
    $art = mysql_fetch_array($rst);
    $last_up = $art["uploaded"];
    $class = $art["class"];

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


Tarix22 17th May 2008 06:07

Re: Freeleech with multiplier
 
PLease screeennnnn

sharky 21st May 2008 19:22

Re: Freeleech with multiplier
 
What Screen? It's just a mod that doubles/multiplies your upload when freeleech is on. Jeez :blink:

Tarix22 22nd May 2008 08:11

Re: Freeleech with multiplier
 
screeenn please

snakebite 22nd May 2008 14:40

Re: Freeleech with multiplier
 
are you "stupid" tarix22? no offence..
how can he make a screen of double seed or freeleech?
think man..!

djlee 25th May 2008 12:30

Re: Freeleech with multiplier
 
anymore silly screen plz posts from you and i will have you warned if not banned from the site.. yu did this on TBDEV and now your doing it here .. grow a few brain cells before posting would ya

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 09:11.

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