<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: YouTube API Hack: Link Your Videos Directly to Your YouTube Channel</title>
	<atom:link href="http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/</link>
	<description>Technologist, Artist, and Geek</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:56:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Luch</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-15391</link>
		<dc:creator>Luch</dc:creator>
		<pubDate>Tue, 01 Feb 2011 16:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-15391</guid>
		<description>Ed, thanks for the script. I used the code in combination with Floatbox.
See the results at www.rootsontheroad.nl/videogallerie.
Great!</description>
		<content:encoded><![CDATA[<p>Ed, thanks for the script. I used the code in combination with Floatbox.<br />
See the results at <a href="http://www.rootsontheroad.nl/videogallerie" rel="nofollow">http://www.rootsontheroad.nl/videogallerie</a>.<br />
Great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Stafford</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-14185</link>
		<dc:creator>Ed Stafford</dc:creator>
		<pubDate>Tue, 04 Jan 2011 20:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-14185</guid>
		<description>&lt;a href=&quot;#comment-14182&quot; rel=&quot;nofollow&quot;&gt;@Jason &lt;/a&gt; 
Jason, thanks for reading. I&#039;m not sure what might be causing the problem for you to be honest. I have not run into that problem. A few things that might help you discover the problem are:

1. If you read Ryan Dutton&#039;s comment above yours, he mentioned URL encoding the get_permalink() value returned. 
2. If you tried to cut and paste direct from the page here, you might also need to change the &quot;pretty&quot; quotes to straight quotes. 
3. Try popping the get_permalink() string in an alert box or printed to a page to make sure it is returning a properly formated string. That would help you see if there is a problem with the permalink value.</description>
		<content:encoded><![CDATA[<p><a href="#comment-14182" rel="nofollow">@Jason </a><br />
Jason, thanks for reading. I&#8217;m not sure what might be causing the problem for you to be honest. I have not run into that problem. A few things that might help you discover the problem are:</p>
<p>1. If you read Ryan Dutton&#8217;s comment above yours, he mentioned URL encoding the get_permalink() value returned.<br />
2. If you tried to cut and paste direct from the page here, you might also need to change the &#8220;pretty&#8221; quotes to straight quotes.<br />
3. Try popping the get_permalink() string in an alert box or printed to a page to make sure it is returning a properly formated string. That would help you see if there is a problem with the permalink value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-14182</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 04 Jan 2011 19:30:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-14182</guid>
		<description>I cannot seem to pull the video ID. Any ideas on why this would fail?

    $YT_VidID = substr(strstr($item-&gt;get_permalink(), ‘v=’), 2, 11);

The url for each thumb is correct except it fails to print the video ID so the links just go back to the channel page rather than to the specific video. Any help you can provide would be greatly appreciated. 

Thanks, 
Jason</description>
		<content:encoded><![CDATA[<p>I cannot seem to pull the video ID. Any ideas on why this would fail?</p>
<p>    $YT_VidID = substr(strstr($item-&gt;get_permalink(), ‘v=’), 2, 11);</p>
<p>The url for each thumb is correct except it fails to print the video ID so the links just go back to the channel page rather than to the specific video. Any help you can provide would be greatly appreciated. </p>
<p>Thanks,<br />
Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Dutton</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-12751</link>
		<dc:creator>Ryan Dutton</dc:creator>
		<pubDate>Sun, 05 Dec 2010 12:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-12751</guid>
		<description>Perfect, just what I was looking for.  Users my want to be aware of the pretty quotes when cutting and pasting the above code. Also, a space is needed before &quot;title=&quot; in the anchor tag.  something that may be specific to my situation, but using the latest version of simplepie I had to urldecode() the result from get_permalink(). Thanks.</description>
		<content:encoded><![CDATA[<p>Perfect, just what I was looking for.  Users my want to be aware of the pretty quotes when cutting and pasting the above code. Also, a space is needed before &#8220;title=&#8221; in the anchor tag.  something that may be specific to my situation, but using the latest version of simplepie I had to urldecode() the result from get_permalink(). Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Stafford</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-8609</link>
		<dc:creator>Ed Stafford</dc:creator>
		<pubDate>Sat, 10 Apr 2010 21:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-8609</guid>
		<description>&lt;a href=&quot;#comment-8606&quot; rel=&quot;nofollow&quot;&gt;@Phil &lt;/a&gt; 
Without seeing the code that you created that is throwing the error, I can only guess. BUT.. here&#039;s my best guess. the colon &quot;:&quot; character is found on the same key as the semi-colon &quot;;&quot; character. I would guess that you may have closed/ended one of your lines with the colon instead of a semi-colon (something I&#039;ve done myself). A simple slip of the shift key can drive you mad. Take a look at the end of line 4 or 5 in feed_test.php to make sure you ended your lines with a semi-colon.</description>
		<content:encoded><![CDATA[<p><a href="#comment-8606" rel="nofollow">@Phil </a><br />
Without seeing the code that you created that is throwing the error, I can only guess. BUT.. here&#8217;s my best guess. the colon &#8220;:&#8221; character is found on the same key as the semi-colon &#8220;;&#8221; character. I would guess that you may have closed/ended one of your lines with the colon instead of a semi-colon (something I&#8217;ve done myself). A simple slip of the shift key can drive you mad. Take a look at the end of line 4 or 5 in feed_test.php to make sure you ended your lines with a semi-colon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-8606</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sat, 10 Apr 2010 10:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-8606</guid>
		<description>This is exactly what I was after although I&#039;m new to PHP and I&#039;m getting 

&quot;Parse error: syntax error, unexpected &#039;:&#039; in /homepages/37/d302821836/htdocs/feed_test.php  on line 5&quot; 

when I try to run the script.  I&#039;ve installed SimplePie.inc correctly, stumped!</description>
		<content:encoded><![CDATA[<p>This is exactly what I was after although I&#8217;m new to PHP and I&#8217;m getting </p>
<p>&#8220;Parse error: syntax error, unexpected &#8216;:&#8217; in /homepages/37/d302821836/htdocs/feed_test.php  on line 5&#8243; </p>
<p>when I try to run the script.  I&#8217;ve installed SimplePie.inc correctly, stumped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Stafford</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-7395</link>
		<dc:creator>Ed Stafford</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-7395</guid>
		<description>&lt;a href=&quot;#comment-7374&quot; rel=&quot;nofollow&quot;&gt;@Freshmint Design &lt;/a&gt; 
Thanks for your comment! Very glad you found it useful.
I had a quick look through the API and don&#039;t see any built-in way of reversing the order. Here&#039;s a thought: Split the code into two loops.
1. grab the feed
2. Loop through extracting the Video ID and placing each one into a new array.
3. Reverse the new array
4. loop through the new array and build each link.</description>
		<content:encoded><![CDATA[<p><a href="#comment-7374" rel="nofollow">@Freshmint Design </a><br />
Thanks for your comment! Very glad you found it useful.<br />
I had a quick look through the API and don&#8217;t see any built-in way of reversing the order. Here&#8217;s a thought: Split the code into two loops.<br />
1. grab the feed<br />
2. Loop through extracting the Video ID and placing each one into a new array.<br />
3. Reverse the new array<br />
4. loop through the new array and build each link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Freshmint Design</title>
		<link>http://www.edwardstafford.com/2009/08/07/youtube-api-hack-link-your-videos-directly-to-your-youtube-channel/comment-page-1/#comment-7374</link>
		<dc:creator>Freshmint Design</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.edwardstafford.com/?p=105#comment-7374</guid>
		<description>Great Script... a lifesaver actually... Do you know if theres any way to reverse the item order?</description>
		<content:encoded><![CDATA[<p>Great Script&#8230; a lifesaver actually&#8230; Do you know if theres any way to reverse the item order?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

