mirror of
https://github.com/fortressforever/fortressforever-web.git
synced 2024-11-21 19:51:29 +00:00
Update Youtube embed code (closes #5)
This commit is contained in:
parent
2e34121e53
commit
fe8322a37c
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ function ParseBBCode($text){
|
|||
$text = mb_eregi_replace("\\[url\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=\"_blank\">\\1</a>",$text);
|
||||
$text = mb_eregi_replace("\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\]","<a href=\"\\1\" target=\"_blank\">\\2</a>",$text);
|
||||
$text = mb_eregi_replace("(^|[>[:space:]\n])([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])([<[:space:]\n]|$)","\\1<a href=\"\\2://\\3\\4\" target=\"_blank\">\\2://\\3\\4</a>\\5", $text);
|
||||
$text = mb_eregi_replace("\\[youtube]([^\\[]*)\\[/youtube\\]","<object width=\"425\" height=\"349\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1&hl=en&fs=1&color1=0x3a3a3a&color2=0x999999&border=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><embed src=\"http://www.youtube.com/v/\\1&hl=en&fs=1&color1=0x3a3a3a&color2=0x999999&border=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" width=\"425\" height=\"349\"></embed></object>",$text);
|
||||
$text = mb_eregi_replace("\\[youtube]([^\\[]*)\\[/youtube\\]","<div style=\"max-width:640px; margin-left:auto; margin-right:auto;\"><div class=\"embed-container\"><iframe type=\"text/html\" src=\"https://www.youtube.com/embed/\\1?origin=http://www.fortress-forever.com\" frameborder=\"0\"></iframe></div></div>",$text);
|
||||
$text = mb_eregi_replace("\\[vimeo]([^\\[]*)\\[/vimeo\\]","<object width=\"400\" height=\"300\"><param name=\"quality\" value=\"best\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"showAll\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ffffff&fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ffffff&fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" quality=\"best\" scale=\"showAll\" allowscriptaccess=\"always\" width=\"400\" height=\"300\"></embed></object><br><a href=\"http://www.vimeo.com/\\1\" target=\"_blank\">vimeo.com/\\1</a>",$text);
|
||||
$text = mb_eregi_replace("\\[vimeohd]([^\\[]*)\\[/vimeohd\\]","<object width=\"533\" height=\"300\"><param name=\"quality\" value=\"best\" /><param name=\"allowfullscreen\" value=\"true\" /><param name=\"scale\" value=\"showAll\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ffffff&fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=ffffff&fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" quality=\"best\" scale=\"showAll\" allowscriptaccess=\"always\" width=\"533\" height=\"300\"></embed></object><br><a href=\"http://www.vimeo.com/\\1\" target=\"_blank\">vimeo.com/\\1</a>",$text);
|
||||
$text = mb_eregi_replace("\\[gamevee]([^\\[]*)\\[/gamevee\\]","<object type=\"application/x-shockwave-flash\" data=\"http://www.gamevee.com/public/gameveeplayer.swf?video_id=\\1&embed=on&vidview=on\" width=\"480\" height=\"420\"><param name=\"movie\" value=\"http://www.gamevee.com/public/gameveeplayer.swf?video_id=\\1&embed=on&vidview=on\" /><param name=\"allowfullscreen\" value=\"true\"/><param name=\"bgcolor\" value=\"#FFFFFF\"/></object>",$text);
|
||||
|
|
Loading…
Reference in a new issue