<?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>CyberCoded &#187; PHP</title>
	<atom:link href="http://www.cybercoded.net/info/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cybercoded.net</link>
	<description>Trying to help others with their Wordpress, PHP and other Web issues.</description>
	<lastBuildDate>Sun, 05 Feb 2012 09:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Used Car Database</title>
		<link>http://www.cybercoded.net/used-car-database/</link>
		<comments>http://www.cybercoded.net/used-car-database/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 16:14:23 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Custom Programming]]></category>
		<category><![CDATA[CyberCoder]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Used Car Database]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=835</guid>
		<description><![CDATA[For quite some time now I have needed and wanted to make a database listing of Used Cars by Year, Make and Model. I finally have the used car database complete. The result is a database that should help any programmer needing the same information for their used car project. The Used Car Database currently [...]]]></description>
			<content:encoded><![CDATA[<p>For quite some time now I have needed and wanted to make a database listing of Used Cars by Year, Make and Model. </p>
<p>I finally have the used car database complete. The result is a database that should help any programmer needing the same information for their used car project.</p>
<p>The Used Car Database currently has over 5,200 cars listed by Year, Make and Model, from 1989-2009.</p>
<p>The data matches what is listed in the Kelley Blue Book which has been the nation&#8217;s number-one-selling automotive book, I did this to have a good reference point for data validity.</p>
<p>The file download includes 2 file formats of the database. A CSV file and a MySQL export file. Between these 2 formats, most programmers should be able to incorporate this data into a project easily.</p>
<p>Here is a random sampling of the data.</p>
<p>2002 Saturn SC2<br />
2009 Chevrolet Colorado<br />
1992 Mercury Sable<br />
1994 Dodge Viper<br />
2007 Chevrolet Equinox<br />
1994 Suzuki Samurai<br />
1999 Lexus LS 400<br />
1999 Dodge Durango<br />
2001 Ford Mustang<br />
1992 Buick Riviera</p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?i=320162&#038;c=single&#038;cl=35732" target="ejejcsingle"><img src="http://www.e-junkie.com/ej/x-click-butcc.gif" border="0" alt="Buy Now"/></a></p>
<p><a href="https://www.e-junkie.com/ecom/gb.php?c=cart&#038;i=320162&#038;cl=35732&#038;ejc=2" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"><img src="http://www.e-junkie.com/ej/ej_add_to_cart.gif" border="0" alt="Add to Cart"/></a></p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/used-car-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Threaded Comments</title>
		<link>http://www.cybercoded.net/wordpress-threaded-comments/</link>
		<comments>http://www.cybercoded.net/wordpress-threaded-comments/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 14:47:22 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Wordpress Themes]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress How To]]></category>
		<category><![CDATA[Worpress Threaded Comments]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=793</guid>
		<description><![CDATA[I have been needing to change my comments to Threaded Comments for some time. I finally took the time to do this, and thought I would share these simple steps to accomplish Threaded Comments using the latest standard WordPress system without any plugins. The one thing you need before you start is a copy of [...]]]></description>
			<content:encoded><![CDATA[<p>I have been needing to change my comments to Threaded Comments for some time. I finally took the time to do this, and thought I would share these simple steps to accomplish Threaded Comments using the latest standard WordPress system without any plugins.</p>
<p>The one thing you need before you start is a copy of WordPress 2.7+ so you can copy some code. Just a little side tip here. Even though most of my sites and clients have one button install of WordPress, I keep a copy of each version that is released on a thumb drive with my other web stuff so I always have it handy. I also sync that thumb drive up to a hard drive in my office for backup!</p>
<p>Here are the steps to take to convert your comments to threaded comments as they appear here on my site.</p>
<ul>
<li>Copy \wp-content\themes\default\comments.php from WordPress 2.7+</li>
<li>Copy \wp-content\themes\default\comments-popup.php from WordPress 2.7+</li>
<li>Copy code from \wp-content\themes\default\header.php, and place in your header file.  &lt;?php if ( is_singular() ) wp_enqueue_script( &#8216;comment-reply&#8217; ); ?&gt;</li>
<li>Copy the Updated styling code from this great article by <a style="text-decoration: none;" title="Chris Harrison" href="http://cdharrison.com/2008/12/threaded-comments/" target="_blank">Chris Harrison</a></li>
</ul>
<div>I modified 2 lines of code in the stlyesheet once I copied it over from Chris Harrisons&#8217; Example. I did not like the word &#8220;says&#8221; showing up, so I turned it off, and I changed the meta link to the comment to match the rest of the site.</div>
<p>Turn off  &#8221;says&#8221; :</p>
<div>
<ul>
<li>From : ol.commentlist li div.vcard span.says {}</li>
<li>To: ol.commentlist li div.vcard span.says {display:none;}</li>
</ul>
</div>
<div>Change Meta link color:</div>
<div>
<ul>
<li>From: ol.commentlist li div.comment-meta a { color:#ccc; }</li>
<li>To: ol.commentlist li div.comment-meta a { color:#003366; }</li>
</ul>
</div>
<p>That&#8217;s it, about a 5 minute process to convert to WP Threaded Comments on a WordPress blog. Pretty painless too. Big thanks to <a title="Chris Harrison" href="http://cdharrison.com/2008/12/threaded-comments/" target="_blank">Chris Harrison</a> for his excellent post on styling Threaded comments!</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/wordpress-threaded-comments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Help</title>
		<link>http://www.cybercoded.net/php-help/</link>
		<comments>http://www.cybercoded.net/php-help/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 16:14:41 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Consultant]]></category>
		<category><![CDATA[PHP Developer]]></category>
		<category><![CDATA[PHP Help]]></category>
		<category><![CDATA[PHP Programmer]]></category>
		<category><![CDATA[PHP Software]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=763</guid>
		<description><![CDATA[Thought I would share a few of my favorite resources for PHP Help, no real secrets here, just some good links. PHP Freaks W3Schools PHP Tutorials PHP Net PHP Classes The thing I liked about getting into PHP Programming was the amount of help and sample code out there is unbelievable, and if you work [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I would share a few of my favorite resources for PHP Help, no real secrets here, just some good links.</p>
<p><a href="http://www.phpfreaks.com/" target="_blank">PHP Freaks</a></p>
<p><a href="http://www.w3schools.com/PHP/DEfaULT.asP" target="_blank">W3Schools PHP Tutorials</a></p>
<p><a href="http://us.php.net/" target="_blank">PHP Net</a></p>
<p><a href="http://www.phpclasses.org" target="_blank">PHP Classes</a></p>
<p>The thing I liked about getting into PHP Programming was the amount of help and sample code out there is unbelievable, and if you work in WordPress you have a great place to test PHP stuff.</p>
<p>I would recommend setting up a dummy WordPress site, just to try things out, it is an excellent way to learn from the ground up.</p>
<p>If you ever need to just ask a simple question, give Twitter a try, there is always someone willing to help.</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/php-help/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web Programming</title>
		<link>http://www.cybercoded.net/web-programming/</link>
		<comments>http://www.cybercoded.net/web-programming/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 13:05:12 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.cybercoder.net/web-programming.html</guid>
		<description><![CDATA[Years ago I started programming in ASP (Active Server Pages). This was a great language and was fairly easy to migrate into. However, the &#8220;cost of inclusion&#8221; was rather high as it is a Microsoft language and required (of course) that you be hosted on a Microsoft platform server. Then Microsoft decided to upgrade ASP [...]]]></description>
			<content:encoded><![CDATA[<p>Years ago I started programming in ASP (Active Server Pages). This was a great language and was fairly easy to migrate into. However, the &#8220;cost of inclusion&#8221; was rather high as it is a Microsoft language and required (of course) that you be hosted on a Microsoft platform server. Then Microsoft decided to upgrade ASP to ASP.net.</p>
<p>At that point they lost me. With the advent of  Linux and the world of open source it just did not make any sense to stick with something that required so much overhead. Another key downside was the database programming required either SQL Server or MS Access. One was too expensive and the other not robust enough.</p>
<p>I switched to PHP and MySQL and I have never been happier. It is easy to find a hosting company that supports these languages and there is a wide realm of support and samples for both. If you like web programming PHP is a must to check out.</p>
<p>And of course the ever popular WordPress platform is PHP based.</p>
<p><a title="Database" href="http://www.cybercoder.net/tags/Database/"><br />
</a></p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/web-programming/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Love and Hate</title>
		<link>http://www.cybercoded.net/wordpress-love-and-hate/</link>
		<comments>http://www.cybercoded.net/wordpress-love-and-hate/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 02:26:41 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter Search]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Programming]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=360</guid>
		<description><![CDATA[I am a big WordPress fan, of course some of that comes from me liking to do PHP coding and WordPress is a very open platform to work with leaving lots of room for coding creativity. But if you watch this WordPress Twitter Search it seems every so often someone has a little spat with [...]]]></description>
			<content:encoded><![CDATA[<p>I am a big WordPress fan, of course some of that comes from me liking to do PHP coding and WordPress is a very open platform to work with leaving lots of room for coding creativity.</p>
<p>But if you watch this <a title="Wordpress Twitter Search " href="http://search.twitter.com/search?q=+wordpress" target="_blank">WordPress Twitter Search</a> it seems every so often someone has a little spat with their WordPress installation. Like WordPress is picking on them personally or something, lol.</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/wordpress-love-and-hate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XML Parsing Error in WordPress</title>
		<link>http://www.cybercoded.net/xml-parsing-error-wordpress/</link>
		<comments>http://www.cybercoded.net/xml-parsing-error-wordpress/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 19:09:58 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Automatic Plugin Update]]></category>
		<category><![CDATA[Wordpress How To]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[Wordpress Programmer]]></category>
		<category><![CDATA[Wordpress Upgrade]]></category>
		<category><![CDATA[XML Parsing Error]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=223</guid>
		<description><![CDATA[I have posted about this problem before, however, since the WordPress Automatic Plugin Updates (WPAU) have been working there is a new culprit for this bug. It appears to be somewhat of a random bug that occurs when you run an automatic upgrade on a plugin. To catch this bug before it causes an unexpected [...]]]></description>
			<content:encoded><![CDATA[<p>I have <a href="http://www.cybercoded.net/wordpress-xml-parsing-error/">posted about this problem before</a>, however, since the WordPress Automatic Plugin Updates (WPAU) have been working there is a new culprit for this bug. It appears to be somewhat of a random bug that occurs when you run an automatic upgrade on a plugin.</p>
<p>To catch this bug before it causes an unexpected problem you should check each plugin immediately after running an upgrade. Simply click the Edit button next to Deactivate, scroll to the very bottom of the file and make sure there is no whitespace at the end of the file. If there is whitespace, simply delete it, and save the plugin. <a href="http://www.cybercoded.net/wordpress-xml-parsing-error/">See example images</a></p>
<p>If you do not check your plugins this bug can become a real pain. The main reason is that once it occurs you have no idea if it is in the WordPress PHP, Plugins or Theme files.</p>
<p>Reference Link : <a href="http://wordpress.org/search/xml+parsing+error?forums=1">Search › xml parsing error</a></p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/xml-parsing-error-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Template Hierarchy</title>
		<link>http://www.cybercoded.net/wordpress-template-hierarchy/</link>
		<comments>http://www.cybercoded.net/wordpress-template-hierarchy/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 15:11:48 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Custom Programming]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hierarchy]]></category>
		<category><![CDATA[Wordpress How To]]></category>
		<category><![CDATA[Wordpress Page Templates]]></category>
		<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://www.cybercoder.net/wordpress-template-hierarchy.html</guid>
		<description><![CDATA[The WordPress Template Hierarchy is a critical part of truly understanding how your WordPress blog works. Have you ever wondered why some WordPress themes have certain files while others do not? A WordPress theme requires only two files as I have discussed before, the index.php and style.css. If you took a basic WordPress Theme and [...]]]></description>
			<content:encoded><![CDATA[<p>The WordPress Template Hierarchy is a critical part of truly understanding how your WordPress blog works.</p>
<p>Have you ever wondered why some WordPress themes have certain files while others do not?</p>
<p>A WordPress theme requires only two files as <a title="Wordpress Theme CyberCoder" href="http://www.cybercoded.net/new-wordpress-theme-from-cybercoder.html">I have discussed before</a>, the index.php and style.css. If you took a basic WordPress Theme and deleted all the files except those two in the theme folder, it would still work. However, the pages would basically look the same.</p>
<p>Now the question is, where do these other files come from? And how does WordPress know which ones to look for? This is actually a very simple process. WordPress uses a page hierarchy to choose which files to use for each type of page.</p>
<p>As an example if there is a single.php file, WordPress will use that for the individual (single) post, if that file does not exist, it will use the Index.php file.</p>
<p>There are 10 basic WordPress Theme pages, these are:</p>
<ul>
<li>404 (Not Found) page</li>
<li>Attachment page</li>
<li>Author page</li>
<li>Category page</li>
<li>Date page</li>
<li>Search Result page</li>
<li>Single Post page</li>
<li>Tag page</li>
<li>The Main (Index) page</li>
<li>WordPress Page</li>
</ul>
<p>This gives us the ability to customize each type of page. <a title="Wordpress Heirarchy" href="http://codex.wordpress.org/Template_Hierarchy">This WordPress Codex page</a> explains the Hierarchy.</p>
<p>Let&#8217;s look at the Tag.php page as a more specific example.</p>
<p>The Tag page hierarchy goes like this.</p>
<ul>
<li>The Tag Template with a matching slug. If the tag&#8217;s slug were sometag, WordPress would look for tag-sometag.php</li>
<li>tag.php</li>
<li>archive.php</li>
<li>index.php</li>
</ul>
<p>So if your WordPress theme does not have a Tag.php page you can easily copy the archive.php page to create a custom tag page, if you do not have a archive page, you could copy the index page to start your tag page.</p>
<p>To help you I have created a simple text file that lists the WordPress heirarchy that <a title="Wordpress Page Heirarchy" href="http://www.cybercoded.net/wp-content/uploads/2008/02/wp-hierachy.zip">you can download here</a>.</p>
<p>So with just a little thought and practice it is very easy to create very unique pages for your WordPress Theme.</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/wordpress-template-hierarchy/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Google AJAX Partner Bar</title>
		<link>http://www.cybercoded.net/google-ajax-partner-bar/</link>
		<comments>http://www.cybercoded.net/google-ajax-partner-bar/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 12:23:31 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Google AJAX API]]></category>
		<category><![CDATA[Google Partner Bar]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>

		<guid isPermaLink="false">http://www.cybercoded.net/?p=356</guid>
		<description><![CDATA[The Google AJAX Search API team just keeps coming up with some really cool tools. This time it is something called the Partner Bar. The Partner Bar was built based on a request they had to help a customer configure and link to their Partners. You can read the full post from Mark Lucovsky here. [...]]]></description>
			<content:encoded><![CDATA[<p>The Google AJAX Search API team just keeps coming up with some really cool tools. This time it is something called the Partner Bar. The Partner Bar was built based on a request they had to help a customer configure and link to their Partners.</p>
<p>You can read the full post from Mark Lucovsky <a href="http://googleajaxsearchapi.blogspot.com/2007/12/partnerbar-contextual-cross-linking.html">here</a>.</p>
<p>To show how easy these API&#8217;s are to work with I built a simple Partner Bar and plugged it in below.  This API would make an excellent WordPress Plugin, I am just limited in time. So here is what I did.</p>
<p>I took the sample code and placed it in a seperate PHP file in my Themes folder.  First I modified the feeds included in the sample and included the file in my header.php. Then I placed the required div  tag in the body of this post.</p>
<p>I can see where the Partner Bar could be utilizied on a blog or website to either support your partners, but it may also be a good way of selling ad space in the form of a RSS list from the customer. And since this is an AJAX API it is not machine readable and able to pass page rank. So there is a win win!</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/google-ajax-partner-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress XML Parsing Error</title>
		<link>http://www.cybercoded.net/wordpress-xml-parsing-error/</link>
		<comments>http://www.cybercoded.net/wordpress-xml-parsing-error/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 20:20:32 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Error]]></category>
		<category><![CDATA[Wordpress How To]]></category>
		<category><![CDATA[Wordpress Plugin]]></category>
		<category><![CDATA[XML Parsing Error]]></category>

		<guid isPermaLink="false">http://www.cybercoder.net/wordpress-xml-parsing-error.html</guid>
		<description><![CDATA[No sooner did I write the post about troubleshooting I came across a WordPress error that took way more time to solve than I expected. One thing I know as a programmer is that every single character in a file is critical. I can not even guess how many times a simple question mark or [...]]]></description>
			<content:encoded><![CDATA[<p>No sooner did I write the post about troubleshooting I came across a WordPress error that took way more time to solve than I expected.</p>
<p>One thing I know as a programmer is that every single character in a file is critical. I can not even guess how many times a simple question mark or apostrophe has caused me to lose hours of time trying to find. And here is a perfect case of troubleshooting a WordPress error that was so simple, yet so hard. The error was an XML Parsing Error.<br />
I have a new site (<a title="NonPartyPolitics.com" href="http://www.nonpartypolitics.com">NonPartyPolitics.com</a>) that I have been working on and I realized the RSS Feed was not displaying, the following error was popping up.</p>
<p><img src="http://www.cybercoded.net/wp-content/uploads/2008/01/xmlparsing.gif" alt="XML Parsing Error" /></p>
<p>Looks pretty obvious, there was an error at line 2, column 1. Step one was to see what was happening, so the first thing I did was look at the source of this page. Nothing jumped out at me, so I loaded a working WordPress site, pulled up the RSS feed and looked at the source, I placed the 2 files side by side and there it was. On the feed with the error there were 2 blank lines before the code. Interesting. I then pulled up the home page for both sites and the same thing, there were 2 extra blank lines on the home page source. This told me that the problem was probably not in the RSS code, but it could still be in the code somewhere.</p>
<p>The next logical step was thinking of what I changed last. I really had not done much outside the template except installing a couple plugins. So, I turned off all plugins. Now the hard part was having a little patience. I could see that on the home page the 2 blank lines were now gone, but I had to edit a post and wait for the feed to catch up.</p>
<p>Sure enough that was it, 2 blank lines were gone in the feed. Now, which plugin?</p>
<p>Here is a little logic for you, if I have 2 blank lines, and I know a plugin is causing it, all I need to know is which plugin is issuing 2 extra carriage returns. The key to this is to know that I was not looking for the plugin actually writing the blank lines, I was looking for a plugin with 2 extra carriage returns. And I found the culprit.</p>
<p>I am not going to call it by name because the plugin worked fined on other sites and it did not download from the original like this. Either I did something to cause this problem, or it was just a fluke.</p>
<p>Here is the plugin before I fixed it&#8230;..</p>
<p><img src="http://www.cybercoded.net/wp-content/uploads/2008/01/plugin1.gif" alt="Plugin1" /></p>
<p>and here is the plugin after the fix&#8230;</p>
<p><img src="http://www.cybercoded.net/wp-content/uploads/2008/01/plugin2.gif" alt="Plugin 2" /></p>
<p>So there we go, a real WordPress troubleshooting case solved. All of that because of 2 extra carriage returns.</p>
<p>Make sure when you are working with code you are aware of every character and every space!</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/wordpress-xml-parsing-error/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Add YouTube Layout to Google AJAX API</title>
		<link>http://www.cybercoded.net/add-youtube-layout-to-google-ajax-api/</link>
		<comments>http://www.cybercoded.net/add-youtube-layout-to-google-ajax-api/#comments</comments>
		<pubDate>Sat, 22 Sep 2007 17:23:01 +0000</pubDate>
		<dc:creator>David Cooley</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Google AJAX API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[YouTube]]></category>
		<category><![CDATA[YouTube Layout]]></category>

		<guid isPermaLink="false">http://www.cybercoder.net/add-youtube-layout-to-google-ajax-api.html</guid>
		<description><![CDATA[First things first, a big thanks to my friend Garry Conn for the great idea. Garry had a post this morning (Free YouTube Layouts) on how to add a You Tube layout to videos embedded in a blog post. I had not seen this done before and really liked the way it adds a little [...]]]></description>
			<content:encoded><![CDATA[<p>First things first, a big thanks to my friend <a href="http://www.garryconn.com" title="Garry Conn">Garry Conn</a> for the great idea. Garry had a post this morning (<a href="http://www.garryconn.com/free-youtube-layouts.php">Free YouTube Layouts</a>) on how to add a You Tube layout to videos embedded in a blog post. I had not seen this done before and really liked the way it adds a little something to an otherwise plain video embed.  Of course, the bad news is this caused me to get off track on my objectives for the day to see if I could do the same thing with the Google AJAX API videos, like I need any help getting off track.</p>
<p>By adding an image to the background and a few little tweaks of the CSS file I was able to get the same result. I think it actually helps augment the video player and video title. <strong>To see the results click on one of the URL&#8217;s below and click on a video in the left sidebar.</strong></p>
<p>I placed this new page in its own folder to demonstrate the ability of making a dynamic page that can have different URL structures. Using PHP I setup a default variable or you can pass any variables to create the following.</p>
<ul>
<li>Page Name</li>
<li>Page Title</li>
<li>Keywords</li>
<li>Description</li>
<li>API results</li>
</ul>
<p>Examples : (default variable is &#8220;Blog Search&#8221;)</p>
<p><a href="http://www.cybercoder.net/layout/">http://www.cybercoder.net/layout/</a></p>
<p><a href="http://www.cybercoder.net/layout/You-Tube-Layouts">http://www.cybercoder.net/layout/You-Tube-Layouts</a></p>
<p><a href="http://www.cybercoder.net/layout/You-Tube-Layouts/">http://www.cybercoder.net/layout/You-Tube-Layouts/</a></p>
<p><a href="http://www.cybercoder.net/layout/You-Tube-Layouts.html">http://www.cybercoder.net/layout/You-Tube-Layouts.html</a></p>
<p>The search box will pass input to PHP and the result will be displayed with the following URL. It is not hard to convert this search box to use any of the above URL structures.</p>
<p><a href="http://www.cybercoder.net/layout/index.php?a=You+Tube-Layouts">http://www.cybercoder.net/layout/index.php?a=You+Tube-Layouts</a></p>
<p>This project took approximately 2 hours to complete. The bulk of the time was getting a good image formatted just right for the results. No programming was needed on the actual page as the CSS file took care of everything once the image was formatted. I also use the htaccess file to create the redirects for the multiple URL structures.</p>
<p><g:plusone></g:plusone>&nbsp;&nbsp;<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CyberCoder" data-related="DavidCooley">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></p>]]></content:encoded>
			<wfw:commentRss>http://www.cybercoded.net/add-youtube-layout-to-google-ajax-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

