Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 26th November 2010, 01:04
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default 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 "<tr><td><p>"._btdescription."</p></td>";
add above

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";
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 "<tr><td><p>"._bttorrentname."<p></td><td><p><input type=\"text\" name=\"namex\" value=\"".$tname."\" size=\"80\"></p>\n</td></tr>\n";
add below
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";
now open ajax.php

find
Code:
#Info Hash & Tracker
add above
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>");  

}
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

Click the image to open in full size.

Screenshot
without youtube
Click the image to open in full size.

without youtube
Click the image to open in full size.
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details

Last edited by daffy; 26th November 2010 at 12:30.
Reply With Quote
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  
Old 28th August 2012, 14:03
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
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.
Reply With Quote
Reply

Tags
details , torrent , youtube

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



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