Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 30-06-10, 18:15
danbank's Avatar
danbank danbank is offline
Member
 
Join Date: Apr 2010
P2P
Posts: 13
Default 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
Reply With Quote
The Following 3 Users Say Thank You to danbank For This Useful Post:
DirectorX (20-11-13), KnightRaider (11-06-13), Tibys08 (29-05-11)
  #2  
Old 11-06-13, 03:46
KnightRaider's Avatar
KnightRaider KnightRaider is offline
Senior Member
 
Join Date: Nov 2012
Australia
Posts: 54
Question Where?
Never mind, found out how.
Reply With Quote
  #3  
Old 11-06-13, 03:49
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,045
Default
data base phpMyAdmin
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Managerô forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #4  
Old 11-06-13, 04:07
KnightRaider's Avatar
KnightRaider KnightRaider is offline
Senior Member
 
Join Date: Nov 2012
Australia
Posts: 54
Question
Hmm it doesn't seem to show [FreeLeech] on the torrents name though? How Do I get it to do that?
Reply With Quote
The Following User Says Thank You to KnightRaider For This Useful Post:
Bobert (19-12-13)
Reply

Tags
freelech , mod

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] shoutcast radio for tbdev Slatkis TBDev 14 03-06-17 09:08
TorrentStrike theme engine to TBdev Kotafi Mods & Themes 6 13-05-12 04:42
[TBDEV] Pets Scripts for TBDev BacKUP TBDev 4 07-09-11 15:36



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