You need have this [url="http://torrenttrader.org/topic/16916-youtube-in-torrents-detail-v208/?hl=youtube"]youtube[/url] mod installed. Upload prettyPhoto.js and .css files in your theme folder. js ofc in js folder. All images in images folder etc.. Simple yeah?
Add in your header.php
<script type='text/javascript' src='<?php echo $site_config["SITEURL"]; ?>/themes/default/js/jquery.prettyPhoto.js'></script>
<link rel='stylesheet' href='<?php echo $site_config["SITEURL"]; ?>/themes/default/prettyPhoto.css' type='text/css' media='screen' charset='utf-8' />
<script type='text/javascript'>
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
show_title: true,
theme: 'dark_square',
social_tools: '',
show_title: false
});
$('#jCrumbs').xBreadcrumbs();
});
</script>
torrent-details.php find this code:
if (!empty($row["tube"]))
print ("<tr><td align=left><b>" .T_("VIDEOTUBE"). ":</b></td><td> <embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type="application/x-shockwave-flash" width="580" height="340"></embed></td></tr>");
And replace it in this:
if (!empty($row["tube"]))
print ("<tr><td align=left><b>" .T_("VIDEOTUBE"). ":</b></td><td> <a href="" . htmlspecialchars($row["tube"]) . "?rel=0" rel="prettyPhoto">Youtube Trailer</a></td></tr>");

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7028"]prettyPhoto_compressed_3.1.5.zip[/url]
Add in your header.php
<script type='text/javascript' src='<?php echo $site_config["SITEURL"]; ?>/themes/default/js/jquery.prettyPhoto.js'></script>
<link rel='stylesheet' href='<?php echo $site_config["SITEURL"]; ?>/themes/default/prettyPhoto.css' type='text/css' media='screen' charset='utf-8' />
<script type='text/javascript'>
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
show_title: true,
theme: 'dark_square',
social_tools: '',
show_title: false
});
$('#jCrumbs').xBreadcrumbs();
});
</script>
torrent-details.php find this code:
if (!empty($row["tube"]))
print ("<tr><td align=left><b>" .T_("VIDEOTUBE"). ":</b></td><td> <embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type="application/x-shockwave-flash" width="580" height="340"></embed></td></tr>");
And replace it in this:
if (!empty($row["tube"]))
print ("<tr><td align=left><b>" .T_("VIDEOTUBE"). ":</b></td><td> <a href="" . htmlspecialchars($row["tube"]) . "?rel=0" rel="prettyPhoto">Youtube Trailer</a></td></tr>");

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7028"]prettyPhoto_compressed_3.1.5.zip[/url]
