Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 30th June 2010, 18:15
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 (20th November 2013), KnightRaider (11th June 2013), Tibys08 (29th May 2011)
  #2  
Old 11th June 2013, 03:46
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 11th June 2013, 03:49
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
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 11th June 2013, 04:07
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 (19th December 2013)
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 3rd June 2017 09:08
TorrentStrike theme engine to TBdev Kotafi Mods & Themes 6 13th May 2012 04:42
[TBDEV] Pets Scripts for TBDev BacKUP TBDev 4 7th September 2011 15:36



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