<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Youtube Shortcode for Wordpress</title> <atom:link href="http://www.margenn.com/tubal/youtube_shortcode/feed/" rel="self" type="application/rss+xml" /><link>http://www.margenn.com/tubal/youtube_shortcode</link> <description>Plugin version in use: 1.8.3</description> <lastBuildDate>Thu, 08 Mar 2012 15:33:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>1.8.3 &#8211; SSL &amp; embed URLs support</title><link>http://www.margenn.com/tubal/youtube_shortcode/279/1-8-3-ssl-embed-urls-support/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/279/1-8-3-ssl-embed-urls-support/#comments</comments> <pubDate>Thu, 08 Mar 2012 15:29:38 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.3]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=279</guid> <description><![CDATA[From version 1.8.3 onwards, the plugin recognises 3 additional Youtube URLs: SSL URLs i.e. https:// Embed URLs: http://www.youtube.com/v/VIDEO_ID and http://www.youtube.com/embed/VIDEO_ID Here you are some examples: Shortcode used: [youtube_sc v=http://www.youtube.com/embed/ruU3Wxu8xuE] Shortcode used: [youtube_sc v=http://www.youtube.com/v/7R2Z7NAnUAE]]]></description> <content:encoded><![CDATA[<p>From version 1.8.3 onwards, the plugin recognises 3 additional Youtube URLs:</p><ul><li>SSL URLs i.e. <code>https://</code></li><li>Embed URLs: <code>http://www.youtube.com/<strong>v</strong>/VIDEO_ID</code> and <code>http://www.youtube.com/<strong>embed</strong>/VIDEO_ID</code></li></ul><p>Here you are some examples:</p> <iframe
src="http://www.youtube.com/embed/ruU3Wxu8xuE?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=ruU3Wxu8xuE" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode used:</p><pre>[youtube_sc v=http://www.youtube.com/embed/ruU3Wxu8xuE]</pre><iframe
src="http://www.youtube.com/embed/7R2Z7NAnUAE?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=7R2Z7NAnUAE" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode used:</p><pre>[youtube_sc v=http://www.youtube.com/v/7R2Z7NAnUAE]</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/279/1-8-3-ssl-embed-urls-support/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>perrymyk Test</title><link>http://www.margenn.com/tubal/youtube_shortcode/261/perrymyk-test/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/261/perrymyk-test/#comments</comments> <pubDate>Sun, 29 Jan 2012 00:54:52 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[Tests]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=261</guid> <description><![CDATA[Here&#8217;s your video:]]></description> <content:encoded><![CDATA[<p>Here&#8217;s your video:</p> <iframe
src="http://www.youtube.com/embed/gca-bD4gOec?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=gca-bD4gOec" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/261/perrymyk-test/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8.2 &#8211; &#8220;embedcode&#8221; custom parameter</title><link>http://www.margenn.com/tubal/youtube_shortcode/221/embedcode-custom-parameter/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/221/embedcode-custom-parameter/#comments</comments> <pubDate>Fri, 09 Dec 2011 18:17:32 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.2]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=221</guid> <description><![CDATA[From version 1.8.2 onwards, a new parameter is available: embedcode This parameter allows you to use the new embed code (iframe) or the old embed code (object). Its possible values are: new (iframe, default) or old (object). Here’s an example: &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/221/embedcode-custom-parameter/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.8.2 onwards, a new parameter is available: <code>embedcode</code></p><p>This parameter allows you to use the new embed code (iframe) or the old embed code (object).</p><p>Its possible <strong>values</strong> are: <code>new</code> (iframe, default) or <code>old</code> (object).</p><p>Here’s an example:</p> <object
width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;"><param
name="movie" value="http://www.youtube.com/v/5LOcUkm8m9w?version=3&amp;hl=en_US"></param><param
name="allowscriptaccess" value="always"></param><param
name="wmode" value="transparent"></param><embed
class="yp" src="http://www.youtube.com/v/5LOcUkm8m9w?version=3&amp;hl=en_US" width="560" height="340" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" ></embed></object><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=5LOcUkm8m9w" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode used:</p><pre>[youtube_sc v=http://youtu.be/5LOcUkm8m9w embedcode=old]</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/221/embedcode-custom-parameter/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8.2 &#8211; Improved mobile compatibility</title><link>http://www.margenn.com/tubal/youtube_shortcode/219/improved-mobile-compatibility/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/219/improved-mobile-compatibility/#comments</comments> <pubDate>Fri, 09 Dec 2011 18:07:18 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.2]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=219</guid> <description><![CDATA[From version 1.8.2 onwards, mobile compatibility is much, much better :) Mobile detection Mobile detection is performed on the server once per page load (not per video) and it&#8217;s extremely lightweight (excellent performance). If a visitor is browsing your site &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/219/improved-mobile-compatibility/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.8.2 onwards, mobile compatibility is much, much better :)</p><p><strong>Mobile detection</strong></p><p>Mobile detection is performed on the server once per page load (not per video) and it&#8217;s extremely lightweight (excellent performance).</p><p>If a visitor is browsing your site with a mobile device the plugin outputs mobile friendly code.</p><p>99% of mobile devices can be detected.</p><p><strong>Consistent layout</strong></p><p>Fixed width videos are not mobile friendly. In this version, not anymore since the plugin will serve fluid width videos (width=100%) to mobiles devices even if you have set a width or height in your shortcodes.</p><p><strong>Opera Mobile/Mini special support</strong></p><p>Opera browser (Presto engine) replaces video embed codes with an image of the video linked to the phone&#8217;s Youtube app. With this in mind, if a visitor uses Opera mobile/mini browser to visit your site, the plugin outputs the html code Opera expects. This way, design &amp; functionality don&#8217;t break.</p><p><strong>Test it right now: </strong>visit this site&#8217;s articles with your mobile phone!!</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/219/improved-mobile-compatibility/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>1.8.1 &#8211; Improved compatibility for RSS readers and mobile browsers</title><link>http://www.margenn.com/tubal/youtube_shortcode/200/improved-compatibility-for-rss-readers-and-mobile-browsers/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/200/improved-compatibility-for-rss-readers-and-mobile-browsers/#comments</comments> <pubDate>Sat, 03 Dec 2011 14:01:19 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.1]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=200</guid> <description><![CDATA[Version 1.8.0 introduced the fluid layout technique and support for RSS readers and mobile browsers, but things can always be improved so that&#8217;s what I&#8217;ve done in 1.8.1 thanks to a more rigorous testing. Changes: Removed noembed tag It&#8217;s deprecated &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/200/improved-compatibility-for-rss-readers-and-mobile-browsers/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Version 1.8.0 introduced the fluid layout technique and support for RSS readers and mobile browsers, but things can always be improved so that&#8217;s what I&#8217;ve done in 1.8.1 thanks to a more rigorous testing.</p><p>Changes:</p><ul><li><strong>Removed <code>noembed</code> tag</strong></li></ul><p
style="padding-left: 60px;">It&#8217;s deprecated in HTML5 and mobile browsers seem to not like it. These browsers, show the video correctly (when they are capable) but also display the noembed message just below the video&#8230;which is an unwanted behavior. So, in place of the <code>noembed</code> tag, I&#8217;ve added a <code>span</code> tag&#8230;and the result is the expected cross-browser :)</p><ul><li><strong>Removed noembed (span) message for RSS readers</strong></li></ul><p
style="padding-left: 60px;">RSS readers are the wildest environment for controling your HTML &amp; CSS&#8230;simply put&#8230;forget it. Because every RSS reader will modify your HTML in a certain way I&#8217;ve suppressed the noembed (span) message if Flash is not available in a RSS reader. In RSS readers, though there&#8217;s a fallback that works in every RSS reader, a link below the video that says &#8220;Watch this video on Youtube&#8221; and links to the video on youtube.com.</p><ul><li><strong>Video width under control in RSS readers and mobile browsers</strong></li></ul><p
style="padding-left: 60px;">This improvement is related to the fallback solution I&#8217;ve implemented in this version for static layouts, so <a
title="1.8 – Static layout (Fixed size)" href="http://www.margenn.com/tubal/youtube_shortcode/63/static-layout/">read about it here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/200/improved-compatibility-for-rss-readers-and-mobile-browsers/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>1.8.1 &#8211; Support for the AS2 player (Flash only)</title><link>http://www.margenn.com/tubal/youtube_shortcode/194/support-for-the-as2-player-flash-only/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/194/support-for-the-as2-player-flash-only/#comments</comments> <pubDate>Fri, 02 Dec 2011 20:03:04 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.1]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=194</guid> <description><![CDATA[From 1.8.1 onwards I&#8217;ve added support for the AS2 player (ActionScript 2). The AS2 player uses Flash only and was deprecated time ago by Youtube (Youtube now uses the AS3 player). Why do you add support for AS2 if it&#8217;s &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/194/support-for-the-as2-player-flash-only/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From 1.8.1 onwards I&#8217;ve added support for the AS2 player (ActionScript 2).</p><p>The AS2 player uses Flash only and was deprecated time ago by Youtube (Youtube now uses the AS3 player).</p><p><strong>Why do you add support for AS2 if it&#8217;s deprecated?</strong></p><p>Deprecated does not mean it does not work anymore, in fact it works great as of today.</p><p>I added support for it so you can use the following parameters which are not supported by neither the AS3 Flash player nor the HTML5 player:<code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#border"> border</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#color">color1</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#color">color2</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#egm">egm</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#hd">hd</a></code>, and <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#showsearch">showsearch</a></code>.</p><p>One of the most interesting and used parameters was <code>hd</code> which allowed us to force HD playback by default (720p). Well, now you can again, <a
title="1.8.1 – Force HD by default (720p or 1080p) – AS2 only" href="http://www.margenn.com/tubal/youtube_shortcode/188/force-hd-by-default-720p-or-1080p-as2-only/">learn how</a>.</p><p><strong>How do I select the AS2 mode?</strong></p><p>Easy pal, simply set the <code>version</code> parameter to <code>2</code>.</p><p>Here&#8217;s a demo using the AS2 player and all those &#8220;old&#8221; parameters:</p> <object
width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;"><param
name="movie" value="http://www.youtube.com/v/yU-mhdHXDUc?version=2&amp;egm=1&amp;border=1&amp;color1=0xff0000&amp;color2=0xaaff56&amp;fs=1&amp;hd=1&amp;showsearch=0&amp;hl=en_US"></param><param
name="allowfullscreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><param
name="wmode" value="transparent"></param><embed
class="yp" src="http://www.youtube.com/v/yU-mhdHXDUc?version=2&amp;egm=1&amp;border=1&amp;color1=0xff0000&amp;color2=0xaaff56&amp;fs=1&amp;hd=1&amp;showsearch=0&amp;hl=en_US" width="560" height="340" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true"></embed></object><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=yU-mhdHXDUc" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode used:</p><pre>[youtube_sc v=yU-mhdHXDUc version=2 hd=1 fs=1 showsearch=0 border=1 color1=ff0000 color2=aaff5 egm=1]</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/194/support-for-the-as2-player-flash-only/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>1.8.1 &#8211; Force HD by default (720p or 1080p) &#8211; AS2 only</title><link>http://www.margenn.com/tubal/youtube_shortcode/188/force-hd-by-default-720p-or-1080p-as2-only/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/188/force-hd-by-default-720p-or-1080p-as2-only/#comments</comments> <pubDate>Fri, 02 Dec 2011 19:20:16 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8.1]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=188</guid> <description><![CDATA[From version 1.8.1 onwards I&#8217;ve added support for Flash AS2 mode (ActionScript 2). Note that AS2 is officially deprecated by Youtube, but, it still works so you can use it. Many of you already know that with the AS3 or &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/188/force-hd-by-default-720p-or-1080p-as2-only/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.8.1 onwards I&#8217;ve added support for Flash AS2 mode (ActionScript 2). Note that AS2 is officially deprecated by Youtube, but, it still works so you can use it.</p><p>Many of you already know that with the AS3 or HTML5 player, the parameter <code>hd=1</code> does not force HD playback by default. The <code>hd</code> parameter is only available to the AS2 video player for now.</p><p>So&#8230;if you need to force HD playback by default in your videos, you can use the AS2 (<strong>Flash only</strong>) player in your site until Youtube releases a stable iFrame API (the iFrame API will allow us to choose a default playback quality per video) or enables the <code>hd</code> parameter for the AS3 &amp; HTML5 players.</p><p><strong>How to force hd?</strong></p><p>Set the <code>version</code> parameter to <code>2</code> and the <code>hd</code> parameter to <code>1</code></p><p>Here&#8217;s an example of how to force AS2 mode and enable HD playback by default:</p> <object
width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;"><param
name="movie" value="http://www.youtube.com/v/Cj6ho1-G6tw?version=2&amp;fs=1&amp;hd=1&amp;hl=en_US"></param><param
name="allowfullscreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><param
name="wmode" value="transparent"></param><embed
class="yp" src="http://www.youtube.com/v/Cj6ho1-G6tw?version=2&amp;fs=1&amp;hd=1&amp;hl=en_US" width="560" height="340" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true"></embed></object><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=Cj6ho1-G6tw" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Here&#8217;s the shortcode used:</p><pre>[youtube_sc video=Cj6ho1-G6tw <strong>version=2 hd=1</strong> fs=1]</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/188/force-hd-by-default-720p-or-1080p-as2-only/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8 &#8211; Support for RSS readers</title><link>http://www.margenn.com/tubal/youtube_shortcode/167/support-for-rss-readers/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/167/support-for-rss-readers/#comments</comments> <pubDate>Thu, 01 Dec 2011 21:00:37 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=167</guid> <description><![CDATA[From version 1.8 onwards Youtube Shortcode supports major RSS readers such as Google Reader or NetNewsWire to name a few. Some RSS readers may not show any video (because they lack support for playing videos), but I&#8217;ve covered that case &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/167/support-for-rss-readers/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.8 onwards Youtube Shortcode supports major RSS readers such as Google Reader or NetNewsWire to name a few.</p><p>Some RSS readers may not show any video (because they lack support for playing videos), but I&#8217;ve covered that case too and every video has a link that says &#8220;Watch this video on YouTube&#8221; as you can see in the screenshot below.</p><p>Videos in RSS readers will look and behave as they would in your website. So, for example, if you disabled to show related videos&#8230;they&#8217;ll be disabled in a RSS reader.</p><p>Finally, you don&#8217;t have to add or modify anything to make your videos compatible with RSS readers&#8230;the plugin is clever enough :)</p><p>Have a look at how videos look in Google Reader or, even better, subscribe to the RSS feed and experience it yourself.</p><p><a
href="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-21.47.58.png?41ed4f" class="thickbox no_icon" rel="gallery-167" title="Google Reader showing a video"><img
class="aligncenter size-large wp-image-168" title="Google Reader showing a video" src="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-21.47.58-1024x793.png?41ed4f" alt="" width="584" height="452" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/167/support-for-rss-readers/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>FAQ</title><link>http://www.margenn.com/tubal/youtube_shortcode/162/faq/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/162/faq/#comments</comments> <pubDate>Thu, 01 Dec 2011 19:57:53 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[Docs]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=162</guid> <description><![CDATA[Hey, I need to style the video player with css ¿How can I target it with a css selector? Easy, every Youtube video player is wrapped by a div or p tag with the class youtube_sc. Check it out with Firebug or Webkit&#8217;s web &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/162/faq/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h2>Hey, I need to style the video player with css ¿How can I target it with a css selector?</h2><p>Easy, every Youtube video player is wrapped by a <code>div</code> or <code>p</code> tag with the class<code> youtube_sc</code>.</p><p>Check it out with Firebug or Webkit&#8217;s web inspector.</p><p><code>p</code> tags are only used when the shortcode is inserted in a post/page wysiwyg text editor.</p><p>From version 1.8 onwards you can also target the video player through custom CSS classes you may add via <a
title="1.8 – “class” parameter" href="http://www.margenn.com/tubal/youtube_shortcode/?p=66">the <code>class</code> parameter</a>.</p><h2>Bfff, the High Definition parameter <code>hd=1</code> has no effect, my videos are still playing by default at a lower resolution!!</h2><p>You&#8217;re right, if you&#8217;re using the iframe code or the AS3 old embed code, <code>hd=1</code> parameter (720p by default) has no effect if the size of the embedded video player is smaller than 745 pixels in height.</p><p>Why is this?</p><p>With the new embed method (iframe) or the AS3 old embed code (object &#8211; Flash only), Youtube estimates the &#8220;best&#8221; video quality according to the size (dimensions) of the embedded video player. This means you need to set a height of 505px to play a video at 480p by default or a height of 745px to play it at 720p by default (when video starts playing).</p><p>The rule to calculate the height is: 25px higher than the desired video resolution/quality. So, for example, to ensure your video will play by default at a resolution of 360p, the player height should be 360+25 = 385px.</p><p>In Youtube&#8217;s website hd=1 works as expected no matter the video player size&#8230;but that only works at <a
href="http://www.youtube.com/" rel="nofollow">http://www.youtube.com</a></p><p>There are though 2 ways of forcing HD playback by default:</p><ol><li><strong>Using the <a
href="http://code.google.com/intl/en/apis/youtube/iframe_api_reference.html" rel="nofollow">iframe API</a></strong> (Javascript). Right now, it is still under development and should not be used in production.</li><li><strong>Using the old AS2 (Flash only) mode</strong>. Version 1.8.1 adds support for AS2 mode so <a
title="1.8.1 – Force HD by default (720p or 1080p) – AS2 only" href="http://www.margenn.com/tubal/youtube_shortcode/?p=188">check how to force HD playback</a>.</li></ol><p>When the iframe API is released, I&#8217;ll add that feature to the plugin, but right now, the only way to force HD playback by default is through the AS2 mode.</p><h2>WTF, I&#8217;ve installed this plugin and the WYSIWYG editor toolbar is missing or corrupt!!</h2><p>Almost all of these problems are caused by the browser’s cache, or network cache.</p><p><em>Clear your browser’s cache, quit the browser, then start it and try again.</em> If the problem persists, try reloading the page while holding down Ctrl (in IE) or Shift (in Firefox) to make the browser reload the page from the server.</p><p>This can also be caused by a network cache somewhere between you and your web host. Just wait for a few hours for it to expire.</p><p>If clearing the browser&#8217;s cache does not solve the problem, then <em>deactivate and activate the plugin again.</em></p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/162/faq/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Shortcode parameters</title><link>http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/#comments</comments> <pubDate>Thu, 01 Dec 2011 19:51:34 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[Docs]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=159</guid> <description><![CDATA[Custom Parameters url, v or video: Youtube&#8217;s video URL or ID (default value = &#8221;). Any of these is valid: Normal: http://www.youtube.com/watch?v=ZUD3qUtT3go Short: http://youtu.be/ZUD3qUtT3go Embed: http://www.youtube.com/v/ZUD3qUtT3go or http://www.youtube.com/embed/ZUD3qUtT3go SSL: https://&#8230;. Video ID: ZUD3qUtT3go width or w: Set the width of the video player in pixels (default value &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h2>Custom Parameters</h2><ul><li><code>url</code>, <code>v</code> or <code>video</code>: Youtube&#8217;s video URL or ID (default value = &#8221;). Any of these is valid:<ul><li>Normal: <a
href="http://www.youtube.com/watch?v=ZUD3qUtT3go" rel="nofollow">http://www.youtube.com/watch?v=ZUD3qUtT3go</a></li><li>Short: <a
href="http://youtu.be/ZUD3qUtT3go" rel="nofollow">http://youtu.be/ZUD3qUtT3go</a></li><li>Embed: <a
href="http://www.youtube.com/watch?v=ZUD3qUtT3go" rel="nofollow">http://www.youtube.com/v/ZUD3qUtT3go</a> or <a
href="http://www.youtube.com/watch?v=ZUD3qUtT3go" rel="nofollow">http://www.youtube.com/embed/ZUD3qUtT3go</a></li><li>SSL: https://&#8230;.</li><li>Video ID: ZUD3qUtT3go</li></ul></li><li><code>width</code> or <code>w</code>: Set the width of the video player in pixels (default value = 560). Minimum width allowed is 200px according to Youtube.</li><li><code>height</code> or <code>h</code>: Set the height of the video player in pixels (default value = 340)</li><li><code>ratio</code>: Set the aspect ratio of the video player (default value = &#8217;16:9&#8242;). Possible values: &#8217;16:9&#8242; or &#8217;4:3&#8242;.</li><li><code>class</code>: Add additional CSS class(es) to the player container (div or p) to position the player at your will.</li><li><code>embedcode</code>: Set the embed code you want to use (default value = &#8216;new&#8217;). Possible values are &#8216;new&#8217; (iframe) or &#8216;old&#8217; (object).</li><li><code>version</code>: Set the Flash player ActionScript (AS) version. Possible values are 2 or 3 (default value = 3). AS2 is deprecated (but you can still use it).</li><li><code>nocookie</code>: Set privacy mode on or off. Possible values are 0 or 1 (default value = 0). To enable privacy mode set this to 1 and no cookies will be stored in the user&#8217;s browser.</li><li><code>title</code>: Description of the video&#8217;s content or several tags related to it. Useful for SEO and Accessibility (WCAG 1.0+). (default value = &#8216;YouTube video player&#8217;)</li></ul><h2>Official Parameters</h2><p>You can find in <a
title="Official documentation" href="http://code.google.com/intl/en/apis/youtube/player_parameters.html" rel="nofollow">Youtube&#8217;s official documentation for player parameters</a> all parameters explained and their possible and default values.</p><p>I&#8217;ll list them here for a quick reference grouped by player support:</p><ul><li><strong><strong>HTML5 &#8211; </strong>AS3 &#8211; AS2</strong><br
/> <code></code></li><ul><li><code>autohide</code>: default value = 2.</li><li><code>autoplay</code>: default value = 0.</li><li><code>enablejsapi</code>: default value = 0.</li><li><code>start</code>: default value = &#8221;.</li><li><code>theme</code>: default value = &#8216;dark&#8217;.</li></ul><li><strong><strong>HTML5 &#8211; </strong>AS3<br
/> </strong></li><ul><li><code>controls</code>: default value = 1.</li><li><code>loop</code>: default value = 0.</li><li><code>origin</code>: default value = &#8221;.</li><li><code>playlist</code>: default value = &#8221;.</li></ul><li><strong>AS3<br
/> </strong></li><ul><li><code>color</code>: default value = &#8216;red&#8217;.</li><li><code>modestbranding</code>: default value = 0.</li></ul><li><strong>AS3 &#8211; AS2<br
/> </strong></li><ul><li><code>cc_load_policy</code>: default value = user&#8217;s Youtube account setting. To force subtitles set to 1.</li><li><code>disablekb</code>: default value = 0.</li><li><code>fs</code>: default value = 0.</li><li><code>iv_load_policy</code>: default value = 1.</li><li><code>playerapiid</code>: default value = &#8221;.</li><li><code>rel</code>: default value = 1.</li><li><code>showinfo</code>: default value = 1.</li></ul><li><strong>AS2</strong></li><ul><li><code>border</code>: default value = 0.</li><li><code>color1</code>: default value = &#8216;b1b1b1&#8242;.</li><li><code>color2</code>: default value = &#8216;cfcfcf&#8217;.</li><li><code>egm</code>: default value = 0.</li><li><code>hd</code>: default value = 0.</li><li><code>showsearch</code>: default value = 1.</li></ul></ul><h2>Important notes from YouTube official documentation</h2><p>The <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#modestbranding">modestbranding</a></code> parameter is supported for the AS3 embedded player and for IFrame embeds that load the AS3 player. (Note that IFrame embeds may also load the HTML5 player, which does not support this parameter.)<a
name="release_notes_02_14_2011"></a></p><p>The following parameters are supported in the AS2 player but have been deprecated for the newer AS3 and HTML5 players: <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#border">border</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#color">color1</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#color">color2</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#egm">egm</a></code>, <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#hd">hd</a></code>, and <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#showsearch">showsearch</a></code>.</p><p>The <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#loop">loop</a></code> parameter has limited support in the AS3 player and in IFrame embeds, which could load either an AS3 or HTML5 player. Currently, <strong>the <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#loop">loop</a></code> parameter only works in the AS3 player when used in conjunction with the <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#playlist">playlist</a></code> parameter</strong>. To loop a single video, set the <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#loop">loop</a></code> parameter to <code>1 </code>and set the <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#playlist">playlist</a></code> parameter value to the same video ID already specified in the <code>url</code> parameter:</p><pre>[youtube_sc url=<strong>VIDEO_ID</strong> version=3 loop=1 playlist=<strong>VIDEO_ID</strong>]</pre><p>The <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#controls">controls</a></code> and <code><a
href="http://code.google.com/intl/en/apis/youtube/player_parameters.html#playlist">playlist</a></code> parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>How to use</title><link>http://www.margenn.com/tubal/youtube_shortcode/152/how-to-use/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/152/how-to-use/#comments</comments> <pubDate>Thu, 01 Dec 2011 19:27:27 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[Docs]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=152</guid> <description><![CDATA[Shortcodes are available since WordPress 2.5. What is a shortcode? A shortcode is just a simple command for executing a script. Every script has a name to identify it. The shortcode name of this plugin is youtube_sc. WordPress parses and executes shortcodes &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/152/how-to-use/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Shortcodes are available since WordPress 2.5.</p><p><strong>What is a shortcode?</strong></p><p>A shortcode is just <strong>a simple command for executing a script</strong>.</p><p>Every script has a name to identify it. The shortcode name of this plugin is <code>youtube_sc</code>.</p><p>WordPress parses and executes shortcodes automatically if you insert them into the default text editor of your posts/pages. All you have to do is insert (write) the shortcode into the text editor wherever you want its output to be.</p><p>Shortcodes accept parameters so that you can control the behaviour (result) of the script.</p><pre>[youtube_sc url=ZUD3qUtT3go width=430]</pre><p>In the shortcode above, I&#8217;m using 2 parameters: <code>url</code> and <code>width</code></p><p>You can view the complete list of shortcode parameters this plugin accepts <a
title="Shortcode parameters" href="http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/">here</a>.</p><h2>Basic usage in a post/page editor</h2><p>Insert the shortcode manually wherever you want into the text editor or use the editor&#8217;s Youtube button (1.7+) to generate and insert the shortcode for you.</p><pre>[youtube_sc <strong>url=</strong>http://youtu.be/ZUD3qUtT3go]</pre><p>The shortcode above outputs this video:</p> <iframe
src="http://www.youtube.com/embed/ZUD3qUtT3go?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=ZUD3qUtT3go" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>The <code>url</code> parameter (or any of its aliases like <code>video</code> or <code>v</code>) is the only one required in order to display a Youtube video. Its value is either a Youtube video URL or a Youtube video ID.</p><p>This plugin gives you a great bunch of parameters so you can customize the position, appearance and behaviour of each Youtube video.</p><p>To know more about available parameters please go to the <a
title="Shortcode parameters" href="http://www.margenn.com/tubal/youtube_shortcode/159/shortcode-parameters/">Shortcode parameters</a> page.</p><p>WordPress also allows us to execute shortcodes in template files.</p><h2>Basic usage in a wordpress template file</h2><pre>&lt;?php echo do_shortcode('[youtube_sc url=http://www.youtube.com/watch?v=ZUD3qUtT3go width=300 rel=0 fs=1]'); ?&gt;</pre><p>This shortcode will embed a Youtube video of 300px wide with an automatically calculated height wherever you need in your site. It will disable related videos and enable the fullscreen button.</p><h2>Recommended shortcode parameters for any Youtube video</h2><pre>[youtube_sc url=VIDEO_ID_OR_URL rel=0 fs=1 autohide=1 modestbranding=1]</pre><p><strong>Want to know more about shortcodes?</strong></p><p>If you haven&#8217;t used shortcodes yet, please take some time and read these wordpress docs:</p><ul><li><a
href="http://codex.wordpress.org/Shortcode" target="_blank">http://codex.wordpress.org/Shortcode</a></li><li><a
href="http://codex.wordpress.org/Shortcode_API" target="_blank">http://codex.wordpress.org/Shortcode_API</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/152/how-to-use/feed/</wfw:commentRss> <slash:comments>32</slash:comments> </item> <item><title>1.8 &#8211; New aliases for &#8220;url&#8221; parameter</title><link>http://www.margenn.com/tubal/youtube_shortcode/81/new-aliases-for-url-parameter/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/81/new-aliases-for-url-parameter/#comments</comments> <pubDate>Tue, 29 Nov 2011 20:47:45 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=81</guid> <description><![CDATA[The new aliases for the url parameter are: v and video. Use the one you like most :)]]></description> <content:encoded><![CDATA[<p>The new aliases for the <code>url</code> parameter are: <code>v</code> and <code>video</code>.</p><p>Use the one you like most :)</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/81/new-aliases-for-url-parameter/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8 &#8211; Aspect ratios (16:9 or 4:3)</title><link>http://www.margenn.com/tubal/youtube_shortcode/76/aspect-ratios/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/76/aspect-ratios/#comments</comments> <pubDate>Tue, 29 Nov 2011 20:40:29 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=76</guid> <description><![CDATA[From version 1.8 onwards you can set the aspect ratio of a Youtube video via the ratio parameter. Possible values are: 16:9 for widescreen and 4:3 Here you are some examples: 16:9 aspect ratio Shortocode parameters used: v=CIcIyVQ3E_E ratio=16:9 4:3 &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/76/aspect-ratios/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.8 onwards you can set the aspect ratio of a Youtube video via the <code>ratio</code> parameter.</p><p>Possible values are: <code>16:9</code> for widescreen and <code>4:3</code></p><p>Here you are some examples:</p><p>16:9 aspect ratio<br
/> <iframe
src="http://www.youtube.com/embed/CIcIyVQ3E_E?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=CIcIyVQ3E_E" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p></p><p>Shortocode parameters used:</p><pre>v=CIcIyVQ3E_E ratio=16:9</pre><p>4:3 aspect ratio<br
/> <iframe
src="http://www.youtube.com/embed/CIcIyVQ3E_E?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=CIcIyVQ3E_E" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p></p><p>Shortocode parameters used:</p><pre>v=CIcIyVQ3E_E ratio=4:3</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/76/aspect-ratios/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8 &#8211; &#8220;class&#8221; parameter</title><link>http://www.margenn.com/tubal/youtube_shortcode/66/class-parameter/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/66/class-parameter/#comments</comments> <pubDate>Tue, 29 Nov 2011 18:14:31 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/wp_plugins/?p=66</guid> <description><![CDATA[In version 1.8 I&#8217;ve added the class parameter. All it does is add class names to the video wrapper. If you need to add 2 or more class names, all you have to do is wrap them between double quotes &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/66/class-parameter/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<iframe
src="http://www.youtube.com/embed/CIcIyVQ3E_E?version=3&amp;wmode=transparent" width="400" height="249" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=CIcIyVQ3E_E" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>In version 1.8 I&#8217;ve added the <code>class</code> parameter.</p><p>All it does is add class names to the video wrapper.</p><p>If you need to add 2 or more class names, all you have to do is wrap them between double quotes (class=&#8221;class1 class2&#8243;).</p><p>This way you can, for example, position a video to the right of your text in a post such as this one :)</p><p>Shortcode parameters used:</p><pre>url=http://youtu.be/CIcIyVQ3E_E w=400 class=alignright</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/66/class-parameter/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8 &#8211; Fluid layout (default)</title><link>http://www.margenn.com/tubal/youtube_shortcode/65/fluid-layout-default/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/65/fluid-layout-default/#comments</comments> <pubDate>Tue, 29 Nov 2011 17:46:45 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/wp_plugins/?p=65</guid> <description><![CDATA[This is the default layout from version 1.8 onwards. The video width will adjust to fit the width of its parent container. This layout is suitable for any device wether it&#8217;s desktop (big screens) or mobile (smaller screens). It doesn&#8217;t &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/65/fluid-layout-default/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>This is the default layout from version 1.8 onwards. The video width will adjust to fit the width of its parent container.</p><p>This layout is suitable for any device wether it&#8217;s desktop (big screens) or mobile (smaller screens).</p><p>It doesn&#8217;t matter if a website uses a static, fluid or elastic layout, the video will adapt to fit.</p><p><strong>Use this layout if you are designing either a mobile website or a website with fluid or elastic areas.</strong></p><p>For example, if a mobile screen it&#8217;s only 300px wide the video player will adjust to the width of its parent container and thus, it will fit perfectly (it won&#8217;t break or overflow the layout/design).</p><p><strong>Test it right now:</strong></p><p>Visit this article with your mobile phone or resize the browser window and you&#8217;ll see how the video player adapts to fit.</p><p><strong>How to use:</strong></p><p>Simply put: Do not set the <code>width</code> and <code>height</code> parameters.</p> <iframe
src="http://www.youtube.com/embed/CIcIyVQ3E_E?version=3&amp;wmode=transparent" width="560" height="340" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=CIcIyVQ3E_E" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode parameters used:</p><pre>v=CIcIyVQ3E_E</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/65/fluid-layout-default/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.8 &#8211; Static layout (Fixed size)</title><link>http://www.margenn.com/tubal/youtube_shortcode/63/static-layout/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/63/static-layout/#comments</comments> <pubDate>Tue, 29 Nov 2011 17:10:04 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.8]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/wp_plugins/?p=63</guid> <description><![CDATA[This layout was the only one available until version 1.8. It is recommended for static layouts (fixed width layouts) but not for fluid, elastic and mobile layouts. So, if you&#8217;re building a website today, use preferrably the new fluid layout &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/63/static-layout/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>This layout was the only one available until version 1.8.</p><p>It is recommended for static layouts (fixed width layouts) but not for fluid, elastic and mobile layouts.</p><p>So, <strong>if you&#8217;re building a website today, use preferrably the new fluid layout</strong> (default) version 1.8 offers.</p><p>Note however that <strong>from version 1.8.1 onwards, I&#8217;ve added a fallback solution for fixed-width videos</strong>. This fallback solution avoids fixed-width videos from breaking or overflowing a layout/design when your website is viewed in a smaller screen or the browser window is resized. The downside is the aspect ratio is not preserved.</p><p><strong>Test it right now</strong>: Resize your browser window or visit this article with your mobile phone.</p> <iframe
src="http://www.youtube.com/embed/CIcIyVQ3E_E?version=3&amp;wmode=transparent" width="450" height="277" title="YouTube video player" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=CIcIyVQ3E_E" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode parameters used:</p><pre>video=http://youtu.be/CIcIyVQ3E_E w=450</pre>]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/63/static-layout/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.7.1 &#8211; &#8220;title&#8221; attribute</title><link>http://www.margenn.com/tubal/youtube_shortcode/142/title-attribute/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/142/title-attribute/#comments</comments> <pubDate>Sun, 27 Nov 2011 18:01:43 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.7.1]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=142</guid> <description><![CDATA[From 1.7.1 onwards the plugin adds a new custom parameter: title. This parameter sets a &#8220;title&#8221; HTML attribute on both iframe &#38; object HTML elements. Its value should be a description of the video&#8217;s content or several tags related to it. It&#8217;s very useful &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/142/title-attribute/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From 1.7.1 onwards the plugin adds a new custom parameter: <code>title</code>.</p><p>This parameter sets a &#8220;title&#8221; HTML attribute on both <code>iframe</code> &amp;<code> object</code> HTML elements. Its value should be a description of the video&#8217;s content or several tags related to it.</p><p>It&#8217;s very useful for SEO and Accessibility (WCAG 1.0+).</p><p>The title may not show up when you hover the video with your mouse. If that is the case inspect the iframe tag with Firebug or your browser&#8217;s developer tools.</p><p>Here&#8217;s an example:</p> <iframe
src="http://www.youtube.com/embed/k2vkwy2vdP4?version=3&amp;wmode=transparent" width="400" height="249" title="Big wave surfing" style="background-color:#000;display:block;margin-bottom:0;max-width:100%;" frameborder="0" allowfullscreen></iframe><p
style="font-size:11px;margin-top:0;"><a
href="http://www.youtube.com/watch?v=k2vkwy2vdP4" target="_blank" title="Watch on YouTube">Watch this video on YouTube</a>.</p><p>Shortcode parameters used:</p><pre>url=k2vkwy2vdP4 title="Big wave surfing" width=400</pre><p>In order to make the shortcode work properly <strong>when creating a shortcode with a &#8220;title&#8221; attribute in a template file you must call the function</strong> <code>Youtube_shortcode::encode_str(title)</code>:</p><pre>&lt;?php echo do_shortcode('[youtube_sc url=DVwTmClYF3I title='. Youtube_shortcode::encode_str("My description of the video's content") .']'); ?&gt;</pre><p>Wether you are using double or single quotes to wrap the <code>title</code> parameter&#8217;s value, you must use that function.</p><p>However, if you&#8217;re using the TinyMCE button to embed YouTube videos you don&#8217;t need to worry about this (the plugin does it for you).</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/142/title-attribute/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.7 &#8211; TinyMCE button</title><link>http://www.margenn.com/tubal/youtube_shortcode/137/tinymce-button/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/137/tinymce-button/#comments</comments> <pubDate>Sun, 27 Nov 2011 17:45:05 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.7]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=137</guid> <description><![CDATA[From version 1.7 onwards, the plugin adds a (TinyMCE) button to WordPress rich text editors so that users can insert and customize a Youtube video easily through the shortcode. Every customization option (shortcode parameter) is available through the TinyMCE button. &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/137/tinymce-button/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.7 onwards, the plugin adds a (TinyMCE) button to WordPress rich text editors so that users can insert and customize a Youtube video easily through the shortcode.</p><p>Every customization option (shortcode parameter) is available through the TinyMCE button.</p><p>The only required parameter to insert the shortcode is the Video URL or ID.</p><p>The shortcode is automatically generated and inserted in the editor.</p><p>Here&#8217;s a screenshot:</p><p><a
href="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-18.40.15.png?41ed4f" class="thickbox no_icon" rel="gallery-137" title="TinyMCE button dialog"><img
class="aligncenter size-full wp-image-138" title="TinyMCE button dialog" src="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-18.40.15.png?41ed4f" alt="" width="500" height="372" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/137/tinymce-button/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.7.3 &#8211; Scenario: Javascript and Adobe Flash unsupported</title><link>http://www.margenn.com/tubal/youtube_shortcode/130/scenario-javascript-and-adobe-flash-unsupported/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/130/scenario-javascript-and-adobe-flash-unsupported/#comments</comments> <pubDate>Sun, 27 Nov 2011 17:03:54 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.7.3]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=130</guid> <description><![CDATA[From version 1.7.3 onwards the plugin adds a &#60;noembed&#62; tag to extend compatibility with browsers with no Javascript support and no Flash support. The following message will be shown to the user on each video: The Adobe Flash Player is required &#8230; <a
href="http://www.margenn.com/tubal/youtube_shortcode/130/scenario-javascript-and-adobe-flash-unsupported/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>From version 1.7.3 onwards the plugin adds a <code>&lt;noembed&gt;</code> tag to extend compatibility with browsers with no Javascript support and no Flash support. The following message will be shown to the user on each video:</p><blockquote><p>The Adobe Flash Player is required for video playback.<br
/> <a
href="http://get.adobe.com/flashplayer/" rel="nofollow">Get the latest Flash Player</a></p></blockquote><p>Here&#8217;s a screenshot of this website emulating this scenario (I disabled manually Js and Flash):</p><p><a
href="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-18.15.13.png?41ed4f" class="thickbox no_icon" rel="gallery-130" title="Javascript and Flash not supported"><img
class="aligncenter size-full wp-image-131" title="Javascript and Flash not supported" src="http://www.margenn.com/tubal/youtube_shortcode/wp-content/uploads/Captura-de-pantalla-2011-12-01-a-las-18.15.13.png?41ed4f" alt="" width="500" height="310" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/130/scenario-javascript-and-adobe-flash-unsupported/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>1.7.4 &#8211; New aliases for &#8220;width&#8221; and &#8220;height&#8221; parameters</title><link>http://www.margenn.com/tubal/youtube_shortcode/89/1-7-4-new-aliases-for-width-and-height-parameters/</link> <comments>http://www.margenn.com/tubal/youtube_shortcode/89/1-7-4-new-aliases-for-width-and-height-parameters/#comments</comments> <pubDate>Sun, 27 Nov 2011 02:38:13 +0000</pubDate> <dc:creator>Túbal</dc:creator> <category><![CDATA[1.7.4]]></category><guid
isPermaLink="false">http://www.margenn.com/tubal/youtube_shortcode/?p=89</guid> <description><![CDATA[The new alias for the width parameter is w and for the height parameter is h. Use the one you like most :)]]></description> <content:encoded><![CDATA[<p>The new alias for the <code>width</code> parameter is <code>w</code> and for the <code>height</code> parameter is <code>h</code>.</p><p>Use the one you like most :)</p> ]]></content:encoded> <wfw:commentRss>http://www.margenn.com/tubal/youtube_shortcode/89/1-7-4-new-aliases-for-width-and-height-parameters/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 77/79 queries in 0.683 seconds using disk: basic
Object Caching 1054/1226 objects using disk: basic

Served from: www.margenn.com @ 2012-05-31 08:30:18 -->
