Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Freelech mod (http://www.bvlist.com/showthread.php?t=5150)

danbank 30th June 2010 18:15

Freelech mod
 
This is made for Tbdev 09, just edit by your self.

SQL:
PHP Code:

alter table torrents add freeleech enum('yes','no'not null default 'no'

edit.php
PHP Code:

$HTMLOUT  .= tr($lang['edit_freeleech'], "<input type='checkbox' name='freeleech'" . (($row["freeleech"] == "yes") ? " checked='checked'" "" ) . " value='yes' /> {$lang['edit_freeleech_text']}"1); 

takeedit.php
PHP Code:

$updateset[] = "freeleech = '" . ( isset($_POST['freeleech']) ? 'yes' 'no') . "'"

open announce.php change the query to something like this
PHP Code:

$res mysql_query("SELECT id, banned, seeders + leechers AS numpeers, added AS ts, freeleech FROM torrents WHERE info_hash = " .sqlesc($info_hash));//" . hash_where("info_hash", $info_hash)); 

Then you add this
PHP Code:

$freeleech $torrent["freeleech"]; 

And BEFORE if ($upthis > 0 || $downthis > 0) add:
PHP Code:

if ($freeleech == 'yes'$downthis 0


KnightRaider 11th June 2013 03:46

Where?
 
Never mind, found out how.

joeroberts 11th June 2013 03:49

:sad: data base phpMyAdmin

KnightRaider 11th June 2013 04:07

Hmm it doesn't seem to show [FreeLeech] on the torrents name though? How Do I get it to do that?


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

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