diff --git a/sections/torrents/details.php b/sections/torrents/details.php index 46cbb7b8..6d440ac8 100644 --- a/sections/torrents/details.php +++ b/sections/torrents/details.php @@ -900,10 +900,11 @@ function filelist($Str) { ?> <? if ($Youtube) { + $show_media = '<object type="application/x-shockwave-flash" style="width:560px; height:340px;" data="'.str_replace('watch?v=', 'v/', $Youtube).'"><param name="movie" value="'.str_replace('watch?v=', 'v/', $Youtube).'" /></object>'; ?> <div class="box youtube"> - <div class="head"><a href="#">↑</a> <strong>YouTube</strong><span style="float: right;"><a href="#" onclick="$('#youtube').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span></div> - <div id="youtube" class="body" align="center"><object type="application/x-shockwave-flash" style="width:560px; height:340px;" data="<?=$Youtube?>"><param name="movie" value="<?=$Youtube?>" /></object></div> + <div class="head"><a href="#">↑</a> <strong>YouTube trailer</strong><span style="float: right;"><a href="#" onclick="$('#youtube').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets">Hide</a></span></div> + <div id="youtube" class="body" align="center"><?=$show_media?></div> </div> <? }