diff --git a/fp-plugins/bbcode/plugin.bbcode.php b/fp-plugins/bbcode/plugin.bbcode.php index a7bae85..c8a7a23 100644 --- a/fp-plugins/bbcode/plugin.bbcode.php +++ b/fp-plugins/bbcode/plugin.bbcode.php @@ -348,16 +348,12 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) { $the_url = null; $others = ''; switch ($type) { - case 'google': - $the_url = "http://video.google.com/googleplayer.swf?docid={$query['docid']}"; - $others = ''; - break; case 'youtube': - $the_url = "http://youtube.com/v/{$query['v']}"; + $the_url = "https://www.youtube.com/embed/{$query['v']}"; break; case 'default': default: - $the_url = null; + $the_url = $attr['default']; } if ($the_url) { $width = isset($attr['width']) @@ -369,10 +365,8 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) { $float = isset($attr['float']) ? "style=\"float: {$attr['float']}\" " : ''; - return '' - .'' - . $others .''; + $videoHtml = ''; + return $videoHtml; } return '[unsupported video]'; }