View Single Post
  #11  
Old 11th July 2014, 18:37
mpx mpx is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 39
Default
Quote:
Originally Posted by xrol View Post
Can anyone help me add [youtube=link] tag?
And why the imdb mode dosent work on any version?
i try this youtube codes:

PHP Code:
 $s = preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/ims", "<object         width=\"500\"         height=\"410\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><embed         src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"425\"         height=\"355\"></embed></object>", $s);
 
$s = preg_replace("/\[youtube\]http:\/\/www\.youtube\.com\/watch\?v=((\s|.)+?)\[\/youtube\]/i", "<object width=\"480\" height=\"300\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1&hl=en&fs=1\"></param> <param name=\"allowFullScreen\" value=\"true\"></param><param name= \"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/\\1&hl=en&fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"480\" height=\"300\"></embed></object>", $s);

 
$s = preg_replace("/\[youtube\]http:\/\/www\.youtube\.com\/watch\?v=((\s|.)+?)\[\/youtube\]/i", "<iframe width=\"640\" height=\"360\" src=\"//www.youtube.com/embed/\\1?rel=0\" frameborder=\"0\" allowfullscreen></iframe>", $s); 
but none of them doesnt work
Reply With Quote