Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
Thread Tools
  #1  
Old 20th November 2010, 12:40
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default FreeLeech & Sort Torrents by Size
detail.php

PHP Code:
elseif ($torrent["banned"] == "yes" && !$is_mod)
    
stderr($lang->global['error'], $lang->global['torrentbanned']); 
after add

PHP Code:
         /*
+--------------------------------------------------------------------------
|   Fouini auto free
+---------------------------------------------------------------------------
*/
 
$q mysql_query("SELECT size FROM torrents WHERE id = $id");
    if (
mysql_num_rows($q) > 0)
    {
        
$rf mysql_fetch_array($q);
        
        if (
$rf["size"] >= 18253611008)     /* remplace for auto freeleech 18253611008 octet= 17 go for me. use staff tool calculette ;)*/
        
{
            
mysql_query("UPDATE torrents SET free = 'yes' WHERE id = $id");
        }else{
        if (
$rf["size"] >= 15032385536)   /* remplace for auto silver 15032385536 octet= 14 go for me. use staff tool calculette ;)*/
           
mysql_query("UPDATE torrents SET silver = 'yes' WHERE id = $id");
        }
    } 
but remplace '18253611008' for your octet and '15032385536' ;)

for me auto free in 17 go and auto silver in 14 go

Click image for larger version

Name:	auto free.png
Views:	128
Size:	75.3 KB
ID:	2630
Reply With Quote
The Following 6 Users Say Thank You to lafouine022 For This Useful Post:
eckeO5 (17th November 2011), lateam (28th November 2010), Marco (24th January 2011), Metalmania (17th April 2012), Titya (30th March 2011), vulongvy (20th April 2012)
  #2  
Old 24th January 2011, 22:12
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
thank you :)

i really don't understand what to do?

first i thought maybe if the torrent is bigger than x then could be downloaded for free and bigger then y is silver ...but this is need on download php or upload or takeupload not on details ????

second i thougt is sort out something like bigger torrent from smaller but in that case it's have to be on browse

so i am in the cloud :)

please tell me for this little noob what's this



PS. i do it exactly (just modify the values ) in my details nothing shows



Later edit.. but i wish a mod what automatize the torrent freeleech >10GB and silverleech when > 4GB
Reply With Quote
  #3  
Old 24th January 2011, 23:05
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink
for you Marco autofree torrent size >10go else autosilver torrent size> 4go ;)

PHP Code:
      /*
+--------------------------------------------------------------------------
|   Fouini auto free
+---------------------------------------------------------------------------
*/
 
$q mysql_query("SELECT size FROM torrents WHERE id = $id");
    if (
mysql_num_rows($q) > 0)
    {
        
$rf mysql_fetch_array($q);
        
        if (
$rf["size"] >= 10737418240)     /* free 10Go ;)*/
        
{
            
mysql_query("UPDATE torrents SET free = 'yes' WHERE id = $id");
        }else{
        if (
$rf["size"] >= 4294967296)   /* silver 4Go ;)*/
           
mysql_query("UPDATE torrents SET silver = 'yes' WHERE id = $id");
        }
    } 
Reply With Quote
The Following User Says Thank You to lafouine022 For This Useful Post:
eckeO5 (17th November 2011)
  #4  
Old 25th January 2011, 10:05
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
you don't understand my issue:)

why is this on details.php ?


off course i modified the values :D
Reply With Quote
  #5  
Old 25th January 2011, 13:42
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default
why is this on details.php ?

because in details.php is works :bubble:
Reply With Quote
  #6  
Old 25th January 2011, 22:39
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Smile
honestly i can't explain why in details but it's working :D
thank you very much ....

btw... did u can make it an extra?:sorry:

after X days to be free (60days)
after Y days to be silver (30silver)


or something a lil'bit complicated
if the torrent have 30days free
if the torrent older than 60day 2up
if the torrent older than 90day 4up

if you need a sample (pic) i will send you


Your the best:)
Reply With Quote
  #7  
Old 26th January 2011, 00:23
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default
lol look the sql query and create what you want ;)
Reply With Quote
  #8  
Old 17th March 2011, 22:39
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default and if i need free too??
hello
nice mod, i am using it ..

Please add the section to set torrents x2 when size is 15 GB please
thank you in advance
Reply With Quote
  #9  
Old 17th March 2011, 23:51
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Smile
No testing...

PHP Code:
      /*
+--------------------------------------------------------------------------
|   Fouini auto free
+---------------------------------------------------------------------------
*/
 
$q mysql_query("SELECT size FROM torrents WHERE id = $id");
    if (
mysql_num_rows($q) > 0)
    {
        
$rf mysql_fetch_array($q);
        
        if (
$rf["size"] >= 16106127360)     /* x2 15Go ;)*/
        
{
            
mysql_query("UPDATE torrents SET doubleupload = 'yes' WHERE id = $id");
        }else{
        if (
$rf["size"] >= 10737418240)     /* free 10Go ;)*/
        
{
            
mysql_query("UPDATE torrents SET free = 'yes' WHERE id = $id");
        }else{
        if (
$rf["size"] >= 4294967296)   /* silver 4Go ;)*/
           
mysql_query("UPDATE torrents SET silver = 'yes' WHERE id = $id");
        }
    } 
Reply With Quote
  #10  
Old 18th March 2011, 08:09
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
thank you very much


;)


going to test it now..
Reply With Quote
The Following User Says Thank You to nikosuk For This Useful Post:
vulongvy (20th April 2012)
Reply

Tags
freeleech , size , sort , torrents


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



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