senseless, bcs.daclina wrote:http://www.youtube.com/watch?feature=pl ... 3hHcRLQdc8
watch?feature=player_embedded
already indicates an embedded codev=
I think its only for youtube:4_seven wrote:Where should this added? Bcs. i see a video, no link..
Code: Select all
<a href="http://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1">
Code: Select all
<a href="http://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1" onclick="window.open(this.href);return false;">
4_seven wrote:ah, you mean the new lnk syntax.
open
auto_video_embed_view.php
auto_video_embed_post.php
find
replace withCode: Select all
<a href="http://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1">
btw: the little 'tv' right beneath the link opens the video inlineCode: Select all
<a href="http://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1" onclick="window.open(this.href);return false;">
https
Code: Select all
// youtube https
if (($youtube) && (strpos($message, '/watch?v=') !== false)){
$message = preg_replace('#<a class="postlink" href="https:\/\/(.*?)youtube(.*?)\/watch\?v=(.*?)">(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:425px; height:344px" data="https://$1youtube$2/v/$3"><param name="movie" value="https://$1youtube$2/v/$3&hl=de&fs=1&rel=0&hd=1" /><param name="allowfullscreen" value="true" /></object>', $message);}
// youtube_lnk https
if (($youtube_lnk) && (strpos($message, '/watch?v=') !== false)){
$message = preg_replace('#<a class="postlink" href="https:\/\/(.*?)youtube(.*?)\/watch\?v=([A-Za-z0-9]+)(.*?)">(.*?)<\/a>#is', '<a href="https://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1" onclick="window.open(this.href);return false;">https://$1youtube$2/watch?v=$3$4&hl=en&fs=1&rel=0&hd=1</a> <span style="cursor:pointer;" onclick="spoile('yt_'.$row['post_id'].'$3');"><img src="images/embed.gif" alt="" /></span><div id="yt_'.$row['post_id'].'$3" style="display:none;"><br /><object type="application/x-shockwave-flash" style="width:425px; height:344px" data="https://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1"><param name="movie" value="https://$1youtube$2/v/$3$4&hl=en&fs=1&rel=0&hd=1" /><param name="allowfullscreen" value="true" /></object></div>', $message);}
// youtube_new https
if (($youtube_new) && (strpos($message, 'youtu.be/') !== false)){
$message = preg_replace('#<a class="postlink" href="https:\/\/(.*?)youtu.be\/(.*?)">(.*?)<\/a>#U', '<object type="application/x-shockwave-flash" style="width:425px; height:344px" data="https://youtube.com/v/$2&hl=en&fs=1&rel=0&hd=1"><param name="movie" value="https://youtube.com/v/$2&hl=en&fs=1&rel=0&hd=1" /><param name="allowfullscreen" value="true" /></object>', $message);}