|
#1
|
||||
|
||||
YouTube in torrent details
adds youtube to details :d
SQL Code:
ALTER TABLE `torrent_torrents` ADD `tube` varchar(225) NOT NULL DEFAULT '', find Code:
echo "<tr><td><p>"._btdescription."</p></td>"; Code:
echo "<tr><td><p>Youtube Link :</p></td><td><p><input type=\"text\" name=\"imdb_info\" size=\"80\" /><br />(Add youtube trailer to details page By providing a youtube link or youtube NUMBER)</p>\n</td></tr>\n"; find Code:
$f = $_FILES["filex"]; Code:
if(strlen($tube) > 1)$tube = $tube; else $tube = ''; Code:
$torrentfields[] = "last_action"; $torrentvalues[] = "NOW()"; Code:
if(strlen($tube) > 1){ $torrentfields[] = "tube"; $torrentvalues[] = "'".$tube."'"; } Code:
ratiobuild = '".$build."', Code:
tube = '".$tubelink."', Code:
echo "<tr><td><p>"._bttorrentname."<p></td><td><p><input type=\"text\" name=\"namex\" value=\"".$tname."\" size=\"80\"></p>\n</td></tr>\n"; Code:
echo "<tr><td><p>Youtube Link<p></td><td><p><input type=\"text\" name=\"tubelink\" value=\"".$row['tube']."\" size=\"80\"></p>\n</td></tr>\n"; find Code:
#Info Hash & Tracker Code:
if ($torrent["tube"]=='') { print ("<tr><td><p>Youtube:</p</td><td><img src=/images/novideo.jpg border=\"0\" width=\"200\" height=\"164\" ></td></tr>"); }else{ print ("<tr><td><p>Youtube:</p></td><td><object type=\"application/x-shockwave-flash\" data=". str_replace("watch?v=", "v/", htmlspecialchars($torrent["tube"])) ." width=\"400\" height=\"326\"><param name=\"movie\" value='". str_replace("watch?v=", "v/", htmlspecialchars($torrent["tube"])) ."' /><param name=\"FlashVars\" value=\"playerMode=embedded\" /></object></td></tr>"); } now save image to images/ if i have missed something let me know, im a little high atm hahahaha Screenshot without youtube without youtube
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?" "I Kill You!" simples
Last edited by daffy; 26th November 2010 at 12:30. |
The Following 4 Users Say Thank You to daffy For This Useful Post: | ||
Giorgatzelos (30th November 2010),
Phogo (29th November 2010),
PopcornCat™ (18th April 2011),
romano1 (23rd January 2012)
|
#2
|
||||
|
||||
i did everything you said to the letter but the video never shows, just the novideo.jpg...any ideas? i am using the pmbt 2.04
i tried full link or just id of the link...nothing! also found something about it here https://www.phpmybittorrent.com/foru...utube#msg_5433 but still nothing! Last edited by Giorgatzelos; 28th August 2012 at 15:45. |
Tags |
details , torrent , youtube |
|
|