youtube bbcode questions should be asked in the bbcode stickie at the top of this forum.ytsejam wrote:So none has mentioned this yet here it seems; how do I modify the youtube bbcode to ALSO support the new youtube shortner, youtu.be?
MADMARY1 wrote:Thanks, this is one that worked on all of my boards!!! EXCELLENT!codenamejames wrote:Hi, I have had the youtube BBcode working in the past, but have recently bridged the forum into Joomla.
Now the existing youtube vids are squashed vertically.
This is what I've been using so far:
BBCode:HTML:Code: Select all
[youtube]{URL}[/youtube]
Helpline:Code: Select all
<script language="Javascript"> var a = '{URL}'; var temp = new Array(); temp = a.split('?v='); document.write('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' + temp[1] + '&rel=0&color1=0xd6d6d6&color2=0xf0f0f0&border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>'); </script>
Any ideas why I'm getting these squashed youtube videos?Code: Select all
Usage: [youtube]URL TO VIDEO[/youtube]
Here's an example:
http://www.aero.org.nz/forum/16/91
Thanks in advance
Code: Select all
[youtube]{SIMPLETEXT}[/youtube]
Code: Select all
<object width="560" height="315">
<param name="movie" value="https://youtube.googleapis.com/v/{SIMPLETEXT}?version=3&fs=1"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="https://youtube.googleapis.com/v/{SIMPLETEXT}?version=3&fs=1"
type="application/x-shockwave-flash"
allowfullscreen="true"
allowscriptaccess="always"
iv_load_policy="3"
autohide="1"
fs="1"
width="560" height="315">
</embed>
</object>
Code: Select all
[youtube]6KCDZoQTCSM[/youtube]
Hello,My Current Code
BBCode usageHTML replacementCode: Select all
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
Help lineCode: Select all
<object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="640" height="360"></embed></object>
Code: Select all
Example: [youtube] http://www.youtube.com/watch?v=3KkK35y8MAA[/youtube]
SolvedBBCode usage:HTML replacement:Code: Select all
[youtube]{IDENTIFIER}://{SIMPLETEXT1}youtube.com/watch?v={SIMPLETEXT2}[/youtube]
Help line:Code: Select all
<object width="640" height="360"><param name="movie" value="{IDENTIFIER}://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"></param><param name="wmode" value="transparent"></param><embed src="{IDENTIFIER}://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}" type="application/x-shockwave-flash" wmode="transparent" width="640" height="360"></embed></object>
Code: Select all
Example Youtube video: [youtube]https://www.youtube.com/watch?v=ffHLIZh0PHg[/youtube]
+1polle wrote:Any Idea in how to do the same, but using
Instead ofCode: Select all
[youtube]http://www.youtube.com/watch?v=Asm7WOi8ux8[/youtube]
Because all the youtube videos already posted in my site are with the complete address.Code: Select all
[youtube]Asm7WOi8ux8[/youtube]
Thanks.
Code: Select all
[youtube]{IDENTIFIER}://{SIMPLETEXT1}youtube.com/watch?v={IDENTIFIER2}[/youtube]
Code: Select all
<iframe width="640" height="360" src="//www.youtube-nocookie.com/embed/{IDENTIFIER2}?rel=0" frameborder="0" allowfullscreen></iframe>