Quote:
Originally Posted by gugudada
Is it possible to put (copy the embed or something ...) an youtube video in the foruns of the 1.3.9 ? if so, could u pls paste the code, thanks :)
|
Add this to function format_comment function
Code:
$s = preg_replace(
"/\[video=\bhttps?:\/\/www\.youtube\.com\/watch\?v=([\w\d-]+?)\]/i",
"<iframe width="
. "\"420\" "
. "height=\"315\""
. "src=\"http://www.youtube.com/embed/" . "\\1\""
. "frameborder=\"0\""
. "allowfullscreen>"
. "</iframe>", $s);