PHPBB Optimal YouTube BBCode - html

Anyone knows the optimal bbcode to embed youtube videos in PHPBB3? I use the follwing:
BBCode Usage:
[youtube]http://{SIMPLETEXT1}youtube.com/watch?v={SIMPLETEXT2}[/youtube]
HTML Replacement:
<object width="560" height="315">
<param name="movie" value="http://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"
type="application/x-shockwave-flash"
width="560"
height="315"
allowscriptaccess="always"
allowfullscreen="true">
</embed>
</object>
This seems to have some issues and doesn't translate to HTML when the URL the user puts is something like http://www.youtube.com/watch?v=vS6VBOeJ-i4&feature=related.
I would like to make an HTML Replacement so it can replace the user's link into the new embed style of YouTube with the iFrame, but independent of URL attributes while also using the wmode=transparent, since I also use Shadowbox.

While riot_starter's solution works, it does not seem to work with https URLs which YouTube forces nowdays. So here is a workaround that should work in all scenarios:
BBCode:
[youtube]http{TEXT4}://{TEXT1}youtube.com/{TEXT2}v={IDENTIFIER}{TEXT3}[/youtube]
HTML:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed>
</object>

This is the best version I have found so far. Works with www.youtube.com, youtube.com, regional subdomains (nl.youtube.com), and with any youtube url parameters (for example including &feature=...).
BBCode usage:
[youtube]http://{TEXT1}youtube.com/{TEXT2}v={IDENTIFIER}{TEXT3}[/youtube]
HTML replacement:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed>
</object>

I use this
BBCode Usage [youtube]{IDENTIFIER}[/youtube]
HTML Replacement
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
Now a user can just do [youtube]oHg5SJYRHA0[/youtube] to get the video embedded into the post.

I suggest using the on the embed code not
works ALOT better!!!
tested on 3.0.11
example: http://fwkzt.site.nfoservers.com/forums/viewtopic.php?f=20&t=17&p=33&sid=2d89389670c660b3a345fd59bac5c4ff#p33
code used:
<iframe width="560" height="315" src="//www.youtube.com/embed/{YOUTUBE}?rel=0" frameborder="0" allowfullscreen></iframe>

Related

Flash presentation won't load on my web page

I found this solution over several places, regarding embeding a flash animation on my webpage but when I tried it, in my page only a white rectangle opens but the flash animation never plays.
I'm totally new for this Flash animations and object embeding thing so don't have any idea how to proceed.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="1000" height="600">
<param name="movie" value="birthdayAS2.swf">
<embed href="birthdayAS2.swf" width="1000" height="600" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Greetings
Have you checked that the file "birthdayAS2.swf" is in the same directory as of the file that you have mentioned above ?
Also please check whether your browser supports flash or not.
This means that flash player is loading. It also means that it cannot find the file.
After a lot of researching and testing I came up with this code:
<div id="flashcontent" align="center">
<object type="application/x-shockwave-flash" data="birthdayAS2.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=6,0,29,0" width="700" height="600" align="middle">
<param name="movie" value="birthdayAS2.swf">
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000" />
<embed src="birthdayAS2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave- flash" width="700" height="600" bgcolor="#000000" wmode="transparent" > </embed>
</object>
</div>

SWF file is not working in my website

i am new to flash.
I were converted a video file to swf file using a converter. And the converted file(SWF) is working fine in my system. after uploading the file to webs server its not working.
I cant able to identify the problem. Plz help me
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="480" height="360" id="player1" align="middle">
<param name="movie" value="intro.swf"/>
<param name="menu" value="false"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<noscript>Back to Home</noscript>
<embed src="intro.swf" menu="false" quality="high" bgcolor="#FFFFFF" width="480" height="360" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object>
i am testing here http://randeepr.webs.com
Seems to work fine for me. What result do you have ?
Change your code like this
<object type="application/x-shockwave-flash" data="intro.swf" width="480" height="360">
<param name="movie" value="intro.swf" />
</object>
And make sure your file path is correct.

chrome not displaying video in flash

I don't understand. I'm trying to embed a video on my site. works perfectly on all browsers (even IE8) but not chrome... tested on several machines using windows 7
this is the embed code:
<object height="226" id="ce_93792260" width="400">
<param name="movie" value="http://current.com/e/93792260/en_US" />
<param name="wmode" value="transparent" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" height="226"
src="http://current.com/e/93792260/en_US" type="application/x-shockwave-flash" width="400" wmode="transparent">
</embed></object>
you can see the embed on the page here: http://www.radicalislam.org/videos/american-born-baptist-now-ruthless-islamic-terrorist
found the solution.
need to delete the file(s) gcswf32.dll
don't forget to close chrome before.
source:
http://community.spiceworks.com/how_to/show/2004

How do I embed YouTube video channel in a web page?

I have just integrated the below YouTube embedded code
<param name="movie" value="http://www.youtube.com/.....">
</param>
<param name="wmode" value="transparent"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/....." type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" width="560" height="340"></embed>
</object>
But I also want to list my video channel on my web page. How I can do this?
try this: include this script tag where you want in you page
modifiy YourChannelName to your youtube name and the width and height of the iframe if you want
<script
src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&up_channel=YourChannelName&synd=open&w=320&h=390&title=&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js">
</script>

How do I get an element to cover a Flash video (tried wmode=transparent)?

I have a Youtube video on my homepage, and now I need a modal to display on certain events.
For some reason, even when adding <param name="wmode" value="transparent"> to the Flash object, it still covers the HTML elements (with higher z-index too).
I've got it on JSfiddle.
I figured maybe an iframe could solve this, but that would require me to make a new page just to put the video on.
Am I doing something wrong?
Thanks
Update
Strangely, this behaviour happens on Windows Firefox and IE8. On Firefox on Mac, it renders fine.
You have both an embed and object. You need to apply the wmode to the embed.
http://jsfiddle.net/zCDVx/2/
<object width="640" height="385">
<param name="movie" value="http://www.youtube.com/v/_-wDuGDtjCc?fs=1&hl=en_GB">
<param name="wmode" value="transparent">
<param name="allowscriptaccess" value="always">
<embed src="http://www.youtube.com/v/_-wDuGDtjCc?fs=1&hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385" wmode="transparent"></embed>
</object>
You need the wmode both as an object param and as part of the embed to work in all browsers.
<object width="640" height="385">
<param name="movie" value="http://www.youtube.com/v/_-wDuGDtjCc?fs=1&hl=en_GB">
</param>
<param name="wmode" value="transparent"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/_-wDuGDtjCc?fs=1&hl=en_GB" type="application/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="true" width="640" height="385"
wmode="transparent">
</embed>
</object>
Notice the 2nd to last line.
See it here.