daffy
26th November 2010 01:04
YouTube in torrent details
adds youtube to details :d
SQL
Code:
ALTER TABLE `torrent_torrents` ADD `tube` varchar(225) NOT NULL DEFAULT '',
now open upload/torrent.php
find
Code:
echo ""._btdescription."
";
add above
Code:
echo "Youtube Link :
(Add youtube trailer to details page By providing a youtube link or youtube NUMBER)
\n \n";
open taketorrent.php
find
Code:
$f = $_FILES["filex"];
add above
Code:
if(strlen($tube) > 1)$tube = $tube;
else
$tube = '';
find
Code:
$torrentfields[] = "last_action";
$torrentvalues[] = "NOW()";
add below
Code:
if(strlen($tube) > 1){
$torrentfields[] = "tube";
$torrentvalues[] = "'".$tube."'";
}
Now open edit.php and find
Code:
ratiobuild = '".$build."',
add below
Code:
tube = '".$tubelink."',
now find
Code:
echo ""._bttorrentname."
\n \n";
add below
Code:
echo "Youtube Link
\n \n";
now open ajax.php
find
Code:
#Info Hash & Tracker
add above
Code:
if ($torrent["tube"]=='') {
print ("Youtube:
");
}else{
print ("Youtube:
");
}
dont forget this is in 2 places
now save image to images/
if i have missed something let me know, im a little high atm hahahaha
http://i52.tinypic.com/mcykp2.jpg
Screenshot
without youtube
http://i56.tinypic.com/2w1y2wy.jpg
without youtube
http://i54.tinypic.com/vxgebr.jpg