Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader > Mods & Themes
Reply
  #1  
Old 6th October 2008, 19:13
movizdb movizdb is offline
Senior Member
 
Join Date: Sep 2008
France
Posts: 142
Default [TT 2.xx] add download button
here is the script to add a downlaod button to your TK

edit torrent-details.php

find
Code:
print ("<CENTER><B>" . DOWNLOAD . ": </B>BANNED!</CENTER>");
}else{
	print ("<table border=0 cellpadding=0 width=95%><tr><td align=center valign=middle width=54><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src=\"".$site_config["SITEURL"]."/images/download_torrent.gif\" border=\"0\"></a></td>");
Replace with
Code:
print ("<CENTER><B>" . DOWNLOAD . ": </B>BANNED!</CENTER>");
}else{
	print ("<table border=0 cellpadding=0 width=95%><tr><td align=center valign=middle width=54><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src=\"".$site_config["SITEURL"]."/download.gif\" border=\"0\"></a></td>");
Uplaod the download.gif in your root directory and see the result
Attached Images
 
Reply With Quote
The Following 2 Users Say Thank You to movizdb For This Useful Post:
bit4you (13th September 2009), mdxpro (17th May 2012)
  #2  
Old 27th November 2008, 13:12
xXGodhunterXx xXGodhunterXx is offline
Member
 
Join Date: Nov 2008
Choose
Posts: 1
Default Thx
Thx for this code working fine :D
Reply With Quote
  #3  
Old 2nd August 2009, 00:54
Night_Owl Night_Owl is offline
Member
 
Join Date: Jun 2009
P2P
Posts: 10
Red face :(
im having trouble addin this into the multi strike source the pic shows up but when i hit the download pic to get the file its tells me the torrent dont exist :/
any idea's what might help

this is whats there now

PHP Code:
print("<tr><td align=\"right\" class=\"rowhead\" width=\"1%\">" .D_DOWNLOAD"</td><td class=\"row1\" width=\"99%\" align=\"left\">");
        if (
$owned || ($wait==0))
            print(
"<a class=\"index\" href=\"download.php/$id/" rawurlencode($row["filename"]) . "\">" htmlspecialchars($row["filename"]) . "</a>");
        else
            print(
"" .D_YOU_HAVE_TO_WAIT"".$wait." " .D_HOURS_TO_DOWNLOAD_THIS_FILE"");

        print(
"</td></tr>"); 

Last edited by Fynnon; 2nd August 2009 at 10:06.
Reply With Quote
  #4  
Old 24th June 2011, 13:45
andy007 andy007 is offline
Member
 
Join Date: Jun 2011
P2P
Posts: 1
Default Thanks
Worked fine with my tracker.:)
Reply With Quote
  #5  
Old 16th July 2011, 14:47
foz foz is offline
Member
 
Join Date: Jul 2011
United Kingdom
Posts: 2
Default
Lol this was my mod from tt forum im fozshell as u can see from my name foz but on tt im fozshell
Reply With Quote
Reply

Tags
2xx , add , button , download , tt

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
Cant download piders TBDev 1 10th February 2010 17:04
I can download ceausescu xBTiT 1 29th January 2010 13:36
TS 5.1 Download Slatkis Template Shares 5 8th September 2008 15:53
UDP download. How to? Jack Community Cafe 0 22nd May 2008 17:21



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