<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum &#124; ThemeFuse &#187; Topic: Tell prettyPhoto to allow FullScreen-youtube?</title>
		<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube</link>
		<description>Best place for theme related questions</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 05:15:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://themefuse.com/forum/search.php</link>
		</textInput>
		<atom:link href="http://themefuse.com/forum/rss/topic/tell-prettyphoto-to-allow-fullscreen-youtube" rel="self" type="application/rss+xml" />

		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42105</link>
			<pubDate>Mon, 02 Apr 2012 22:43:20 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">42105@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Of course, no joy can last long... :/&#60;/p&#62;
&#60;p&#62;The iframe-youtube video shows through the prettyBox popup. Aaaarg. :(&#60;/p&#62;
&#60;p&#62;EDIT: adding 'wmode=transparent' to the urls supposedly fixes the problem. I'll deal with that in the morning.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>Max on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42084</link>
			<pubDate>Mon, 02 Apr 2012 21:53:05 +0000</pubDate>
			<dc:creator>Max</dc:creator>
			<guid isPermaLink="false">42084@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;&#60;strong&#62;How do I post code with highlighting like you do?&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;I'm using code shortcode.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42046</link>
			<pubDate>Mon, 02 Apr 2012 19:39:48 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">42046@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Okay, so I added support for youtu.be and other variants of youtube url, making them all use iframe-embedding. Here's the relevant new sections. (let me know and I'll happily email the complete file to you)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$resurce_type = $output = &#38;quot;&#38;quot;;		

	if(strpos($link, &#38;#039;youtu.be/&#38;#039;) !== false)
	{
		$link = str_replace(&#38;#039;youtu.be/&#38;#039;, &#38;#039;www.youtube.com/embed/&#38;#039;, $link);
		$resurce_type = &#38;quot;youframe&#38;quot;;
	}
	else if(strpos($link, &#38;#039;youtube.com/watch?v=&#38;#039;) !== false)
	{
		$link = str_replace(&#38;#039;youtube.com/watch?v=&#38;#039;, &#38;#039;youtube.com/embed/&#38;#039;, $link);
		$resurce_type = &#38;quot;youframe&#38;quot;;
	}
	else if(strpos($link, &#38;#039;youtube.com/v/&#38;#039;) !== false)
	{
		$link = str_replace(&#38;#039;youtube.com/v/&#38;#039;, &#38;#039;youtube.com/embed/&#38;#039;, $link);
		$resurce_type = &#38;quot;youframe&#38;quot;;
	}&#60;/code&#62;&#60;/pre&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42038</link>
			<pubDate>Mon, 02 Apr 2012 19:22:21 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">42038@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;How do I post code with highlighting like you do? Neither backticks nor the code tag seems to do the trick.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42037</link>
			<pubDate>Mon, 02 Apr 2012 19:19:59 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">42037@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Actually, the $flash_markup seems to be entirely correct. Even using a fresh piece of embed code straight off youtube, it still doesn't give me fullScreen-button on my site. This is strange.&#60;/p&#62;
&#60;p&#62;As a workaround, I added support for the YouTube iframe-embedding. &#60;/p&#62;
&#60;p&#62;In get_embed.php add an if-statement to the others;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( preg_match(&#38;#039;/youtube\.com\/embed/i&#38;#039;,$link) )
		{
			$resurce_type = &#38;quot;youframe&#38;quot;;
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Add fullscreen param to $iframe_markup;&#60;br /&#62;
&#60;code&#62;$iframe_markup 		= &#38;#039;&#38;lt;iframe src =&#38;quot;{path}&#38;quot; width=&#38;quot;{width}&#38;quot; height=&#38;quot;{height}&#38;quot; frameborder=&#38;quot;no&#38;quot; allowfullscreen&#38;gt;&#38;lt;/iframe&#38;gt;&#38;#039;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Lastly, add a case handler for the youframe;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;case &#38;#039;youframe&#38;#039;:
				$search		= array(&#38;quot;{width}&#38;quot;, &#38;quot;{height}&#38;quot;, &#38;quot;{path}&#38;quot;);
				$replace	= array($width, $height, $link);
				$output 	= str_replace($search, $replace, $iframe_markup);
			break;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Works great;&#60;br /&#62;
&#60;a href=&#34;http://www.gotlandindies.org/blog/news/zeal-invites-to-playtest-red-frontier/&#34; rel=&#34;nofollow&#34;&#62;&#60;br /&#62;
example post&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Though you need to make sure you get the &#34;embed&#34;-url of the youtube clip. If you want to write a str_replace / regexp to modify a standard youtube-url for iframe embeding, that would be sweet.&#60;/p&#62;
&#60;p&#62;iframe-url looks like:&#60;br /&#62;
&#60;code&#62;&#60;a href=&#34;http://www.youtube.com/embed/e4oSjVov4jI&#34; rel=&#34;nofollow&#34;&#62;http://www.youtube.com/embed/e4oSjVov4jI&#60;/a&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;old-style url looks like:&#60;br /&#62;
&#60;code&#62;&#60;a href=&#34;http://www.youtube.com/watch?v=e4oSjVov4jI&#34; rel=&#34;nofollow&#34;&#62;http://www.youtube.com/watch?v=e4oSjVov4jI&#60;/a&#62;&#60;/code&#62;&#60;br /&#62;
or&#60;br /&#62;
&#60;code&#62;&#60;a href=&#34;http://youtu.be/e4oSjVov4jI&#34; rel=&#34;nofollow&#34;&#62;http://youtu.be/e4oSjVov4jI&#60;/a&#62;&#60;/code&#62;
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>Max on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42027</link>
			<pubDate>Mon, 02 Apr 2012 19:00:34 +0000</pubDate>
			<dc:creator>Max</dc:creator>
			<guid isPermaLink="false">42027@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Sorry, my bad. You have to change this code:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
&#38;lt;?php echo tfuse_get_embed(520, 293, PREFIX . &#38;quot;_post_video&#38;quot;); ?&#38;gt;
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;br /&#62;
to:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
&#38;lt;?php echo $post_video; ?&#38;gt;
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42024</link>
			<pubDate>Mon, 02 Apr 2012 18:52:54 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">42024@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Thanks, but single.php still invokes tfuse_get_embed to perform the embedding, which obviously doesn't cope too well with the HTML-markup provided from YouTube. :)&#60;/p&#62;
&#60;p&#62;But now that I've found tfuse_get_embed (in get_embed.php) I could probably just add the allowFullscreen parameter (and support for &#60;a href=&#34;http://youtu.be&#34; rel=&#34;nofollow&#34;&#62;http://youtu.be&#60;/a&#62; URL) there? &#60;/p&#62;
&#60;p&#62;I'll report back shortly.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>Max on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-42018</link>
			<pubDate>Mon, 02 Apr 2012 18:28:42 +0000</pubDate>
			<dc:creator>Max</dc:creator>
			<guid isPermaLink="false">42018@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
this have nothing with prettyphoto. The prettyphoto notice is for other purposes, only in case if is opened in lightbox. In your case is not used prettyphoto. There are another changes that need to be made.&#60;/p&#62;
&#60;p&#62;1. In post_options.php file located in library\tfuse_mods\options find this code:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
$post_options[] = array(	&#38;quot;name&#38;quot; 		=&#38;gt; &#38;quot;Custom Post Video&#38;quot;,
								&#38;quot;desc&#38;quot; 		=&#38;gt; &#38;quot;Read &#38;lt;a target=&#38;#039;_blank&#38;#039; href=&#38;#039;&#60;a href=&#34;http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/&#38;#039;&#38;gt;prettyPhoto&#34; rel=&#34;nofollow&#34;&#62;http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/&#38;#039;&#38;gt;prettyPhoto&#60;/a&#62; documentation&#38;lt;/a&#38;gt; for info on how to add video or flash in this URL.&#38;quot;,
								&#38;quot;id&#38;quot; 		=&#38;gt; &#38;quot;{$prefix}_post_video&#38;quot;,
								&#38;quot;std&#38;quot; 		=&#38;gt; &#38;quot;&#38;quot;,
								&#38;quot;type&#38;quot; 		=&#38;gt; &#38;quot;text&#38;quot;); 
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;br /&#62;
and replace with:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
$post_options[] = array(	&#38;quot;name&#38;quot; 		=&#38;gt; &#38;quot;Custom Post Video&#38;quot;,
								&#38;quot;desc&#38;quot; 		=&#38;gt; &#38;quot;Read &#38;lt;a target=&#38;#039;_blank&#38;#039; href=&#38;#039;&#60;a href=&#34;http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/&#38;#039;&#38;gt;prettyPhoto&#34; rel=&#34;nofollow&#34;&#62;http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/&#38;#039;&#38;gt;prettyPhoto&#60;/a&#62; documentation&#38;lt;/a&#38;gt; for info on how to add video or flash in this URL.&#38;quot;,
								&#38;quot;id&#38;quot; 		=&#38;gt; &#38;quot;{$prefix}_post_video&#38;quot;,
								&#38;quot;std&#38;quot; 		=&#38;gt; &#38;quot;&#38;quot;,
								&#38;quot;type&#38;quot; 		=&#38;gt; &#38;quot;textarea&#38;quot;); 
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;br /&#62;
This would replace the text field with a textarea where you would add embed code.&#60;/p&#62;
&#60;p&#62;2. In single.php file find this code:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
$post_video   		= get_post_meta($post-&#38;gt;ID, PREFIX . &#38;quot;_post_video&#38;quot;, true);
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;br /&#62;
and replace with:&#60;br /&#62;

&#60;div class=&#34;box forum&#34;&#62;
&#60;div class=&#34;box-top&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;div class=&#34;box-content&#34;&#62;
&#60;pre class=&#34;brush: php; gutter: false; first-line: 1; auto-links: false &#34;&#62;
$post_video =   stripslashes (html_entity_decode(get_post_meta($post-&#38;gt;ID, PREFIX . &#38;quot;_post_video&#38;quot;, true),ENT_QUOTES, &#38;#039;UTF-8&#38;#039;));
&#60;/pre&#62;
&#60;/div&#62;
&#60;div class=&#34;box-bot&#34;&#62;&#60;span&#62;&#60;/span&#62;&#60;/div&#62;
&#60;/div&#62;&#60;/p&#62;
&#60;p&#62;This is all, need to work.&#60;br /&#62;
Cheers,&#60;br /&#62;
Max.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-41974</link>
			<pubDate>Mon, 02 Apr 2012 09:04:37 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">41974@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Ah, sorry.&#60;/p&#62;
&#60;p&#62;When using the &#34;custom post video&#34; field, as shown here; &#60;a href=&#34;http://www.gotlandindies.org/blog/news/zeal-invites-to-playtest-red-frontier/&#34; rel=&#34;nofollow&#34;&#62;http://www.gotlandindies.org/blog/news/zeal-invites-to-playtest-red-frontier/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'd like to have youtube embedded with fullScreen-button. It says in the admin interface that prettyPhoto is responsible for embedding the link, and prettyPhoto does support youtube fullScreen-parameter. Though I can't find a simple way to set it up.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>Max on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-41959</link>
			<pubDate>Mon, 02 Apr 2012 03:29:04 +0000</pubDate>
			<dc:creator>Max</dc:creator>
			<guid isPermaLink="false">41959@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
you mean to have the video opened in full screen mode or to have the full screen option when is opened with prettyphoto.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Max.
&#60;/p&#62;
</description>
		</item>
		<item>
			<title>ulfben on "Tell prettyPhoto to allow FullScreen-youtube?"</title>
			<link>http://themefuse.com/forum/freshfolio-wp/tell-prettyphoto-to-allow-fullscreen-youtube#post-41937</link>
			<pubDate>Sun, 01 Apr 2012 21:35:00 +0000</pubDate>
			<dc:creator>ulfben</dc:creator>
			<guid isPermaLink="false">41937@http://themefuse.com/forum/</guid>
			<description>&#60;p&#62;How do we configure prettyPhoto to embed youtube videos with full-screen support? It's supported by prettyPhoto, but I don't know how FreshFolio configures the script.
&#60;/p&#62;
</description>
		</item>

	</channel>
</rss>
