All credits to tbdev
Run in MySQL
Save & upload
Here are some prints
1. Upload torrent
2. Torrent detail with youtube link
3. Torrent details if youtube link missing
4. novideo image (Upload image "novideo.jpg" in folder "images")
If are not errors this hack can be moved in complet mods section



Run in MySQL
ALTER TABLE `torrents` ADD `tube` varchar(80) NOT NULL default '';Open torrents-details.php & find this lineprint("<tr><td align=left><b>" . HITS . ":</b></td><td>" . $row["hits"] . "</td></tr>\n");
after add:
if (!empty($row["tube"]))
print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"400\" height=\"310\"></embed></td></tr>");
else
print ("<tr><td align=left><b>" . Youtube . ": </b></td><td><img border=\"0\" width=\"200\" height=\"164\" src=".$site_config["SITEURL"]."/images/novideo.jpg></td></tr>");
Find this line:
$res = mysql_query("SELECT torrents.anon, torrents.seeders,....is more longer
Add where u want:
torrents.tube
ex:
$res = mysql_query("SELECT torrents.anon, torrents.tube, torrents.seeders,
Save & Upload
Open torrents-upload.php
Find this line:
print ("<TR><TD align=right>Language: </td><td align=left>".$language."</td></tr>");
After, add:
print ("<TR><TD align=right>YouTube Video Link: </td><td align=left><input type=\"text\" name=\"tube\" size=\"60\" /><br />For Samples Should be in the format of<br><font color=red><b>http://www.youtube.com/watch?v=Jc9KR3tOP</b></font></td></tr>");
Find:
if (!is_valid_id($catid))
$message = "Please be sure to select a torrent category";
After, add:
if (!empty($_POST['tube']))
$tube = unesc($_POST['tube']);
Find:
$ret = mysql_query("INSERT INTO torrents (filename, owner, name...is more longer
In this line add:
tube,
ex:
$ret = mysql_query("INSERT INTO torrents (filename, owner, name, tube, descr,
In the same line, find:
'".$inames[0]."', '".$inames[1]."', '".$type."'
after add:
, '".$tube."'
ex:
'".$inames[1]."', '".$type."', '".$tube."', '" . get_date_time() . "',Save & upload
Here are some prints
1. Upload torrent
2. Torrent detail with youtube link
3. Torrent details if youtube link missing
4. novideo image (Upload image "novideo.jpg" in folder "images")
If are not errors this hack can be moved in complet mods section



