<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Eric Barnes</title>
	
	<link>http://ericlbarnes.com</link>
	<description>Business, Customer Service, and Software Development</description>
	<lastBuildDate>Thu, 05 Nov 2009 01:28:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/EricLBarnes" type="application/rss+xml" /><feedburner:emailServiceId>EricLBarnes</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>CodeIgniter TextMate Bundles</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/NEKYmhQMsDs/</link>
		<comments>http://ericlbarnes.com/codeigniter/codeigniter-textmate-bundles/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 19:45:55 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=465</guid>
		<description><![CDATA[One of the best things about working with TextMate is the powerful bundle system it includes. I have been using it a lot lately with the CodeIgniter bundle. Here are two that are worth looking at: 

TextMate Codeigniter 1.6.3 Bundle
CodeIgniter Textmate Bundle

Either one of those cover pretty much everything except the automatic creation of models [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One of the best things about working with TextMate is the powerful bundle system it includes. I have been using it a lot lately with the CodeIgniter bundle. Here are two that are worth looking at: </p>
<ul>
<li><a href="http://www.sellersrank.com/codeigniter-textmate-bundle-download/">TextMate Codeigniter 1.6.3 Bundle</a></li>
<li><a href="http://sourceforge.net/projects/cibundle/">CodeIgniter Textmate Bundle</a></li>
</ul>
<p>Either one of those cover pretty much everything except the automatic creation of models and controllers.  Since models and controllers require you to have the class name the same as the file name it would make sense and be a lot easier to just have this automatically happen when you call the bundle. </p>
<p>For my projects I created a new command that would do this automatically for you. Here is how I did it. <span id="more-465"></span></p>
<h3>Step 1.</h3>
<p>Open the textmate bundle editor and add a &#8220;new command&#8221;:<br />
<div id="attachment_466" class="wp-caption alignnone" style="width: 291px">
	<img src="http://ericlbarnes.com/wp-content/uploads/2009/11/Picture-1.png" alt="New Command" title="New Command" width="291" height="64" class="size-full wp-image-466" />
	<p class="wp-caption-text">New Command</p>
</div></p>
<h3>Step 2.</h3>
<p>Now on the right side of the bundle editor set it up like this screen shot:<br />
<div id="attachment_467" class="wp-caption alignnone" style="width: 446px">
	<img src="http://ericlbarnes.com/wp-content/uploads/2009/11/Picture-2-446x450.png" alt="Edit Command" title="Edit Command" width="446" height="450" class="size-medium wp-image-467" />
	<p class="wp-caption-text">Edit Command</p>
</div></p>
<h3>Step 3.</h3>
<p>The final step is to now insert the code to create the model for you. Here is the code I used: </p>
<ul>
<li><a href="http://gist.github.com/224382">CodeIgniter TextMate Model Snippet</a></li>
<li><a href="http://gist.github.com/224388">CodeIgniter TextMate Controller Snippet</a></li>
</ul>
<p>If you look at those you will notice I am just using the global TM_FILENAME and then using php to process it into a workable format. Pretty easy but a huge time saver. If you have TextMate tips or improvements for this code please be sure and comment below.</p>
<h3>Download</h3>
<p>Here is a direct download of the bundle for this tutorial which includes the model, controller, and one for the end of the file:  </p>
<div class="banner_download"><a href="http://ericlbarnes.com/downloads/CI_Snippets.tmbundle" class="download"><img src="/images/download_green.gif" alt="download" class="download_button" /></a></div>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=NEKYmhQMsDs:a8-lsss7ATg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=NEKYmhQMsDs:a8-lsss7ATg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=NEKYmhQMsDs:a8-lsss7ATg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=NEKYmhQMsDs:a8-lsss7ATg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=NEKYmhQMsDs:a8-lsss7ATg:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/codeigniter/codeigniter-textmate-bundles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/codeigniter/codeigniter-textmate-bundles/</feedburner:origLink></item>
		<item>
		<title>Moving To GitHub</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/erpqEY9RSrQ/</link>
		<comments>http://ericlbarnes.com/general/moving-to-github/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 04:28:43 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Develop]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=463</guid>
		<description><![CDATA[
This is just a quick update to let every one know I am in the process of moving all the code on this site over to github. The main reason for this is because it is a whole lot easier to create repositories for each different line of code I have.  And the fact [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/general/moving-to-github/" title="Permanent link to Moving To GitHub"><img class="post_image alignright" src="http://ericlbarnes.com/wp-content/uploads/2009/10/git-150x150.png" width="150" height="150" alt="Post image for Moving To GitHub" /></a>
</p><p>This is just a quick update to let every one know I am in the process of moving all the code on this site over to <a href="http://github.com/">github</a>. The main reason for this is because it is a whole lot easier to create repositories for each different line of code I have.  And the fact that git seems pretty awesome to work with. <img src='http://ericlbarnes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Most of you want see any difference as the code will still remain the same but will allow me to better track each individual project. Plus I will no longer be sharing one single Google Code repository as I am now. I hated setting it up this way and has been a pain to manage.  The reason I initially went with one repository was because I didn&#8217;t see the need to go through all the steps to create a whole bunch when some of my releases are just one or two files. </p>
<p>That is where github is so nice. Now it is a simple as adding the name then committing.  If you are interesting in using git for your own work I highly recommend checking out this <a href="http://net.tutsplus.com/tutorials/other/easy-version-control-with-git/">git article</a> from nettuts.</p>
<p>As I learn more about it myself I am sure I will write a few tips that I come across but the basics are pretty simple as long as you follow the instructions.  If any one is a git user please leave a comment with any tips or tutorials that you have found useful. </p>
<p>Happy Coding! </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=erpqEY9RSrQ:CPzsZKj9gLs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=erpqEY9RSrQ:CPzsZKj9gLs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=erpqEY9RSrQ:CPzsZKj9gLs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=erpqEY9RSrQ:CPzsZKj9gLs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=erpqEY9RSrQ:CPzsZKj9gLs:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/general/moving-to-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/general/moving-to-github/</feedburner:origLink></item>
		<item>
		<title>68 Classifieds Auction For Bill Cherry</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/tK8q1yu9Ats/</link>
		<comments>http://ericlbarnes.com/noteworthy/68-classifieds-auction-for-bill-cherry/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 12:30:26 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Noteworthy]]></category>
		<category><![CDATA[68c-mod]]></category>
		<category><![CDATA[motorcycles]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=458</guid>
		<description><![CDATA[
This past April, the owner of a local bicycle store was paralyzed in a motorcycle wreck. He had stopped behind a dump truck, waiting for the car ahead of it to turn left. The person driving the jeep behind him failed to stop and hit him from behind. More info >>
He was airlifted to a [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/noteworthy/68-classifieds-auction-for-bill-cherry/" title="Permanent link to 68 Classifieds Auction For Bill Cherry"><img class="post_image alignright frame" src="http://ericlbarnes.com/wp-content/uploads/2009/10/l.VPUUfCqjfrXriUhb-337x450.jpg" width="337" height="450" alt="Post image for 68 Classifieds Auction For Bill Cherry" /></a>
</p><p>This past April, the owner of a local bicycle store was paralyzed in a motorcycle wreck. He had stopped behind a dump truck, waiting for the car ahead of it to turn left. The person driving the jeep behind him failed to stop and hit him from behind. <a href="http://www.gastongazette.com/news/cherry-33315-hall-business.html">More info >></a></p>
<p>He was airlifted to a local hospital where he spent the next 12 weeks having multiple surgeries and getting to a point where he could get back home. The hospital stay alone cost over $200,000. This doesn&#8217;t include the operations, rehabilitation, medicine, etc. From what I understand, he passed $1M months ago.</p>
<p>The driver of the jeep was underinsured. The amount the Cherry&#8217;s owe is staggering. Through all this, Bill is still his same old self. He&#8217;s got an amazing attitude.</p>
<p><a href="http://www.wcnc.com/video/news-index.html?nvid=402651">More info &raquo;</a><br />
<a href="http://www.gastongazette.com/news/cherry-34893-belmont-open.html">More info &raquo;</a></p>
<h3>THE AUCTION</h3>
<p>This afternoon at four o&#8217; clock, there&#8217;s an auction in our town to raise money for the Cherry&#8217;s. Local merchants have donated a variety of items to be bid on. Blair and I want to participate. So, here it is -</p>
<p>What we&#8217;re auctioning:</p>
<ul>
<li>1 <a href="http://www.68classifieds.com/shopping/products/68developer/">68 Classifieds Developer license</a>. ($249.99)</li>
<li>a year of free hosting ($360)</li>
<li>installation ($49.99)</li>
<li>any and every module we offer ($115)</li>
<li>template conversion (pick a template you like from <a href="http://themeforest.net/?ref=suzkaw">ThemeForest</a> , we&#8217;ll convert it to a 68 Classifieds template bundle.) ($200 estimate)</li>
<li><a href="http://www.templatecodes.com/">Templatecodes</a> will give a copy of their system of 8 templates, the numerous add-ons and the Checkout Plus system to the successful bidder. </li>
<li>Also includes a copy of the <a href="http://mike-n-tosh.com/blog/products-page/68-classifieds-mods/gallery-view-module/">Gallery View Module</a>. ($30.00) </li>
</ul>
<h3>HOW TO BID:</h3>
<p>Reply to <a href="http://www.68classifieds.com/forums/v4-1-questions-support/8597-68-classifieds-license-auction.html">this forum thread</a> with the amount you would like to offer for the license and services above. Current bid is <strike>$200</strike> <strike>$500</strike> $600. </p>
<h3>AUCTION END:</h3>
<p>The auction ends at 5p.m. Eastern, October 15th.</p>
<p><strong>All monies collected from the winning bidder will be sent to the Cherry&#8217;s.</strong></p>
<p>If you&#8217;re not interested in bidding but would still like to make a donation, please visit <a href="http://www.belmontbicycles.com">Belmont Bicycles</a> and click on the Donate button there.</p>
<p>THANK YOU!!!! </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=tK8q1yu9Ats:kaxO86MwSqo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=tK8q1yu9Ats:kaxO86MwSqo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=tK8q1yu9Ats:kaxO86MwSqo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=tK8q1yu9Ats:kaxO86MwSqo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=tK8q1yu9Ats:kaxO86MwSqo:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/noteworthy/68-classifieds-auction-for-bill-cherry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/noteworthy/68-classifieds-auction-for-bill-cherry/</feedburner:origLink></item>
		<item>
		<title>Eric Barnes Revamped With Thesis</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/2fhpnxQu8fs/</link>
		<comments>http://ericlbarnes.com/design/eric-barnes-revamped-with-thesis/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 17:07:16 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=454</guid>
		<description><![CDATA[
As many of the readers here probably know I like to change themes.  So far this is my forth revision just this year. This time around I decided to go back to a template I picked up from ThemeForest and use the Thesis WordPress framework.  
I have been hearing how great Thesis is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.diythemes.com/thesis/get-thesis?a_aid=4a823d9fdbd7c&amp;a_bid=ec98e1f7"><img src="https://diythemes.com/aff/accounts/default1/banners/thesis-theme-tap.jpg" alt="" title="" class="aligncenter"  /></a><img style="border:0" src="https://diythemes.com/aff/scripts/imp.php?a_aid=4a823d9fdbd7c&amp;a_bid=ec98e1f7" width="1" height="1" alt="" /><br />
<span class="drop_cap">A</span>s many of the readers here probably know I like to change themes.  So far this is my forth revision just this year. This time around I decided to go back to a template I picked up from <a href="http://themeforest.net/?ref=suzkaw">ThemeForest</a> and use the <a href="http://diythemes.com/?a_aid=4a823d9fdbd7c">Thesis WordPress framework</a>.  </p>
<p>I have been hearing how great Thesis is and from all the testimonials is the reason I decided to go with it. Plus they offer a developer license which I can use on some of my other sites. </p>
<p>For those using Thesis or are interested in it here is a list of resources that I found most beneficial:<br />
<span id="more-454"></span></p>
<ul>
<li><a href="http://www.blogussion.com/thesis/4-ways-customized-thesis-theme/">4 Great Ways I Customized my Thesis Theme</a></li>
<li><a href="http://www.artofblog.com/customize-thesis-creating-useful-404-pages/">Thesis 404 pages</a></li>
<li><a href="http://diythemes.com/thesis/rtfm/">Thesis User Guide</a></li>
<li><a href="http://mattflies.com/tech/100-resources-for-thesis-wordpress-theme-users/">100 Resources for Thesis Wordpress Theme Users</a></li>
</ul>
<h3>Thesis Benefits</h3>
<p>With this being my first real try at customizing Thesis I wanted to share some of the benefits.  </p>
<p>Number 1 &#8211; The custom stylesheet and custom class &lt;body class=&quot;custom&quot;&gt; which allows you over ride almost any style by adding .custom to it.  This is a live saver and pretty genius on their part. I think in the future I will use a method like this on my new templates. </p>
<p>Number 2 &#8211; A custom functions file which allows you to use their filters and hooks to change things around. This was a little confusing to me at first but after reading a few tutorials it is pretty simple to do almost anything you can ever want. </p>
<p>Number 3 &#8211; Is an <a href="https://diythemes.com/aff/affiliates/signup.php?a_aid=506393d5">affiliate program</a> that any one can join and it pays 33% commission on all sales.  </p>
<p>Finally number 4 &#8211; they include a lot of functionality that you do not have to use custom plugins for. I prefer to keep my plugins to a minimum and by them including a lot of the important ones it makes keeping everything up to date so much easier. </p>
<h3>Thesis Cons</h3>
<p>I have no complaints about the framework itself. My only complaint is that pretty much every Thesis site looks similar and you can pick one out in a crowd easier than finding a <a href="http://www.google.com/search?q=gothapotamus">gothapotamus</a>. (<em>Yea I just wanted to use that in a sentence</em>) </p>
<p>Over all I happy I decided to go with <a href="http://diythemes.com/?a_aid=4a823d9fdbd7c">Thesis</a> and would recommend it. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=2fhpnxQu8fs:f0mvxWO_xDM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=2fhpnxQu8fs:f0mvxWO_xDM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=2fhpnxQu8fs:f0mvxWO_xDM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=2fhpnxQu8fs:f0mvxWO_xDM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=2fhpnxQu8fs:f0mvxWO_xDM:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/design/eric-barnes-revamped-with-thesis/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/design/eric-barnes-revamped-with-thesis/</feedburner:origLink></item>
		<item>
		<title>Tagging with Versions App</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/nr8R7jhfkvQ/</link>
		<comments>http://ericlbarnes.com/how-to/tagging-with-versions-app/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 03:20:53 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=450</guid>
		<description><![CDATA[
I have been using Versions App for a few months now and I am loving the simplicity of the app. However as much as I love it I kept going back to my old svn client when I needed to branch or tag. I never could get my head around how it was done in [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/how-to/tagging-with-versions-app/" title="Permanent link to Tagging with Versions App"><img class="post_image alignright" src="http://ericlbarnes.com/wp-content/uploads/2009/09/versions.jpg" width="250" height="190" alt="Post image for Tagging with Versions App" /></a>
</p><p>I have been using <a href="http://versionsapp.com/">Versions App</a> for a few months now and I am loving the simplicity of the app. However as much as I love it I kept going back to my old svn client when I needed to branch or tag. I never could get my head around how it was done in Versions and the user guide wasn&#8217;t very helpful to me. Although it does explain it clearly. <img src='http://ericlbarnes.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  </p>
<p>So if you use Versions and want to quickly create a tag just go to the remote svn folder. Hold down the <strong>option key</strong> and drag the trunk into the tags folder.  Next a dialog prompt will display and ask you for the new folder name and finally to commit it.  The tricky part for me was the option key. I seemed to always miss that step. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=nr8R7jhfkvQ:7RnTlmqCn3Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=nr8R7jhfkvQ:7RnTlmqCn3Y:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=nr8R7jhfkvQ:7RnTlmqCn3Y:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=nr8R7jhfkvQ:7RnTlmqCn3Y:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=nr8R7jhfkvQ:7RnTlmqCn3Y:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/how-to/tagging-with-versions-app/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/how-to/tagging-with-versions-app/</feedburner:origLink></item>
		<item>
		<title>Integrate SimplePie with 68 Classifieds</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/Sb7tAfiiKEk/</link>
		<comments>http://ericlbarnes.com/68classifieds/tips/integrate-simplepie-with-68-classifieds/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 13:02:20 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[68c-tips]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=445</guid>
		<description><![CDATA[
This tutorial is meant to show you how to include SimplePie into your 68 Classifieds site. 
SimplePie is a very fast and easy-to-use class, written in PHP, that puts the &#8217;simple&#8217; back into &#8216;really simple syndication&#8217;. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/68classifieds/tips/integrate-simplepie-with-68-classifieds/" title="Permanent link to Integrate SimplePie with 68 Classifieds"><img class="post_image alignright" src="http://ericlbarnes.com/wp-content/uploads/2009/08/simplepie-68classifieds.gif" width="283" height="167" alt="SimplePie with 68 Classifieds" /></a>
</p><p>This tutorial is meant to show you how to include <a href="http://simplepie.org/">SimplePie</a> into your <a href="http://www.68classifieds.com">68 Classifieds</a> site. </p>
<blockquote><p><span class="drop_cap">S</span>implePie is a very fast and easy-to-use class, written in PHP, that puts the &#8217;simple&#8217; back into &#8216;really simple syndication&#8217;. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance.</p></blockquote>
<h3>Step 1.</h3>
<p><a href="http://simplepie.org/downloads/">Download SimplePie</a>.  For this tutorial I used <strong>v1.2</strong></p>
<h3> Step 2.</h3>
<p>Upload <strong>simplepie.inc</strong> to &#8220;includes/simplepie&#8221; directory. If this folder does not exist you should create it. Next make the cache directory in your sites root writable. </p>
<h3> Step 3.</h3>
<p>Now we are going to do the actual integration. For the purpose of this tutorial we will just hard code into the index.php file so it is only available on the home page. Of course you can put this in init or a plugin to make it global. But we are going for simple. </p>
<p>Open index.php file and add this to process the feed with SimplePie: </p>
<pre>
include_once('includes/simplepie/simplepie.inc');
$feed = new SimplePie();
$feed->set_feed_url('http://feeds.feedburner.com/EricLBarnes');
$success = $feed->init();
$feed->handle_content_type();
foreach($feed->get_items() as $item)
{
	$rss['title'] =  $item->get_title();
	$rss['link'] =  $item->get_link();
	$rss['date'] =  $item->get_date();
	$items[] = $rss;
}
$class_tpl->assign('rss_feed', $items);
</pre>
<p>The code above pulls in the rss for this site and loops through the items and assigns it to the &#8220;$items&#8221; array. Finally it assigns $items to the template as a variable named $rss_feed. You can change <strong>$feed->set_feed_url</strong> to your own rss feed. </p>
<h3>Step 4.</h3>
<p>Now open your home.tpl template file and at the bottom add this code: </p>
<pre>
&lt;h3&gt;Feed&lt;/h3&gt;
&lt;ul&gt;
{foreach from=$rss_feed item=&quot;entry&quot;}
    &lt;li&gt;
    &lt;a href=&quot;{$entry.link}&quot;&gt;{$entry.title}&lt;/a&gt; - {$entry.date}
    &lt;/li&gt;
{/foreach}
&lt;/ul&gt;
</pre>
<p>Once that is added you can save the template and then view your sites home page. Hopefully you will have a nice list of latest entries from the rss feed. Of course you can format it better and also pull out more information than what is shown. If you wish for more details please consult the <a href="http://simplepie.org/wiki/">SimplePie Documentation</a>.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Sb7tAfiiKEk:yHSN944rr4g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Sb7tAfiiKEk:yHSN944rr4g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=Sb7tAfiiKEk:yHSN944rr4g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Sb7tAfiiKEk:yHSN944rr4g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=Sb7tAfiiKEk:yHSN944rr4g:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/68classifieds/tips/integrate-simplepie-with-68-classifieds/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/68classifieds/tips/integrate-simplepie-with-68-classifieds/</feedburner:origLink></item>
		<item>
		<title>Campaign Monitor Module</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/Igez8_70ykI/</link>
		<comments>http://ericlbarnes.com/68classifieds/modules/campaign-monitor-module/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 00:46:39 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Modules]]></category>
		<category><![CDATA[68c-mod]]></category>
		<category><![CDATA[newsletter]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=314</guid>
		<description><![CDATA[
I am proud to announce my latest 68 Classifieds module. This is a module that integrates with Campaign Monitors API and automatically syncs your newsletter subscribers to your Campaign Monitor mailing list. 
It is set up to use 68 Classifieds internal cron job so it will sync users once daily.

Requirements
In order to use this module [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/68classifieds/modules/campaign-monitor-module/" title="Permanent link to Campaign Monitor Module"><img class="post_image alignright" src="http://ericlbarnes.com/wp-content/uploads/2009/08/campaign-monitor.gif" width="283" height="225" alt="68 Classifieds Campaign Monitor Module" /></a>
</p><p>I am proud to announce my latest 68 Classifieds module. This is a module that integrates with Campaign Monitors API and automatically syncs your newsletter subscribers to your <a href="http://www.campaignmonitor.com/">Campaign Monitor</a> mailing list. </p>
<p>It is set up to use <a href="http://www.68classifieds.com/">68 Classifieds</a> internal cron job so it will sync users once daily.<br />
<span id="more-314"></span></p>
<h3>Requirements</h3>
<p>In order to use this module you must use <a href="http://www.68classifieds.com/">68 Classifieds</a> v4.1.x and above. As well as have an account with <a href="http://www.campaignmonitor.com/">Campaign Monitor</a>.</p>
<h3>Instructions</h3>
<p>Download the module and open campaignmonitor/hooks.php file. In this file find the following lines: </p>
<pre>
var $api_key = '';
var $client_id = '';
var $list_id = '';
</pre>
<p>Inside the single quotes add your ids. They can be found from the following sections in your Campaign Monitor Account: </p>
<ul>
<li><strong>api_key</strong> &#8211; You can find your unique API key under Account Details in your Account Settings.</li>
<li><strong>client_id</strong> &#8211; You can find the API Client ID under Client Details on the Manage this Client page under Manage Clients.</li>
<li><strong>list_id</strong> &#8211; You can find the API Subscriber List ID under &#8216;edit list name/type&#8217; on the Subscriber List page under Manage Subscribers. It&#8217;s the link next to the list name at the top.</li>
</ul>
<h3>Change Log</h3>
<ul>
<li>v1.0.0 &#8211; August 27, 2009 &#8211; First release.</li>
</ul>
<p class="note">If you use this module please leave a comment letting me know how it works for you and if you can think of any features that need to be added.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Igez8_70ykI:Wo2-kYwXxY0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Igez8_70ykI:Wo2-kYwXxY0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=Igez8_70ykI:Wo2-kYwXxY0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=Igez8_70ykI:Wo2-kYwXxY0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=Igez8_70ykI:Wo2-kYwXxY0:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/68classifieds/modules/campaign-monitor-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/68classifieds/modules/campaign-monitor-module/</feedburner:origLink></item>
		<item>
		<title>68 Classifieds Twitter Feeder v0.3</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/wLIVNpT9n9w/</link>
		<comments>http://ericlbarnes.com/68classifieds/updates/68-classifieds-twitter-feeder-v0-3/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 15:12:52 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[Module Updates]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=423</guid>
		<description><![CDATA[
v0.3 of my Classifieds Twitter Feeder module is now released and can be download here.
This release fixes a few bugs and also adds in new debugging options to help you pinpoint problems with it not posting to your Twitter account. All users should upgrade and the only file changed is the hooks.php. 
This is an [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/68classifieds/updates/68-classifieds-twitter-feeder-v0-3/" title="Permanent link to 68 Classifieds Twitter Feeder v0.3"><img class="post_image alignright frame" src="http://ericlbarnes.com/wp-content/uploads/2009/03/twitter-mod.gif" width="400" height="135" alt="Post image for 68 Classifieds Twitter Feeder v0.3" /></a>
</p><p>v0.3 of my <a href="http://ericlbarnes.com/68classifieds/modules/classifieds-twitter-feeder/">Classifieds Twitter Feeder</a> module is now released and can be download <a href="http://ericlbarnes.com/68classifieds/modules/classifieds-twitter-feeder/">here</a>.</p>
<p>This release fixes a few bugs and also adds in new debugging options to help you pinpoint problems with it not posting to your Twitter account. All users should upgrade and the only file changed is the <a href="http://code.google.com/p/elbmods/source/browse/twitter/trunk/twitter/hooks.php?spec=svn89&#038;r=89">hooks.php</a>. </p>
<p>This is an announcement post and if you wish to comment please do so in the original post. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=wLIVNpT9n9w:C3dGz85s3OM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=wLIVNpT9n9w:C3dGz85s3OM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=wLIVNpT9n9w:C3dGz85s3OM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=wLIVNpT9n9w:C3dGz85s3OM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=wLIVNpT9n9w:C3dGz85s3OM:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/68classifieds/updates/68-classifieds-twitter-feeder-v0-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/68classifieds/updates/68-classifieds-twitter-feeder-v0-3/</feedburner:origLink></item>
		<item>
		<title>snowski bbPress Theme</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/5Ne9yCOSPqs/</link>
		<comments>http://ericlbarnes.com/projects/snowski/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 13:46:03 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[bbpress]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=421</guid>
		<description><![CDATA[
I am happy to release my newest theme for bbPress. It is named snowski for really no reason other than a unique recommendation from Mohit Kumar.
This theme features a nice clean look and includes a jQuery slider for login and registration. 

Only tested with bbPress v1.0.2
Instructions
Download the latest zip file and extract it to your [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://ericlbarnes.com/projects/snowski/" title="Permanent link to snowski bbPress Theme"><img class="post_image aligncenter" src="http://ericlbarnes.com/wp-content/uploads/2009/08/snowski.png" width="501" height="262" alt="snowski bbPress Theme" /></a>
</p><p>I am happy to release my newest theme for bbPress. It is named snowski for really no reason other than a unique recommendation from <a href="http://buddypress.org/developers/mohitkr05/">Mohit Kumar</a>.</p>
<p>This theme features a nice clean look and includes a <a href="http://web-kreation.com/index.php/tutorials/nice-clean-sliding-login-panel-built-with-jquery/">jQuery slider</a> for login and registration. </p>
<div class="banner_download"><a href="http://github.com/ericbarnes/snowski/archives/master" class="download"><img src="/images/download_green.gif" alt="download" class="download_button" /></a><a href="http://ericlbarnes.com/bbpress/"><img src="/images/demo.gif" alt="Demo" class="demo_button" /></a></div>
<p>Only tested with bbPress v1.0.2</p>
<h3>Instructions</h3>
<p>Download the latest zip file and extract it to your computer. Next upload the &#8220;snowski&#8221; folder to your &#8220;my-templates&#8221; folder. Then visit admin and activate it.</p>
<p>If you want to change the text on the left column of the slider please edit the <strong>intro.php</strong> file. </p>
<h3>Change log</h3>
<p>Join my <a href="http://www.feedburner.com/fb/a/emailverifySubmit?feedId=525381&amp;loc=en_US">newsletter</a> or <a href="http://feeds2.feedburner.com/EricLBarnes">RSS Feed</a> to stay up to date with new releases</p>
<ul>
<li>v1.0.1 &#8211; October 29, 2009 &#8211; Moved to github. No changes</li>
<li>v1.0.1 &#8211; October 02, 2009 &#8211; Fixed jQuery conflict.</li>
<li>v1.0.0 &#8211; August 22, 2009 &#8211; First Release</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=5Ne9yCOSPqs:l9SsL7VrCPI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=5Ne9yCOSPqs:l9SsL7VrCPI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=5Ne9yCOSPqs:l9SsL7VrCPI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=5Ne9yCOSPqs:l9SsL7VrCPI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=5Ne9yCOSPqs:l9SsL7VrCPI:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/projects/snowski/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/projects/snowski/</feedburner:origLink></item>
		<item>
		<title>Import Listings into 68 Classifieds</title>
		<link>http://feedproxy.google.com/~r/EricLBarnes/~3/4lsy_7-ejns/</link>
		<comments>http://ericlbarnes.com/68classifieds/tips/import-listings-into-68-classifieds/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 17:31:22 +0000</pubDate>
		<dc:creator>Eric Barnes</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[68c-tips]]></category>

		<guid isPermaLink="false">http://ericlbarnes.com/?p=420</guid>
		<description><![CDATA[Recently I needed a way of importing listings from another site into a 68 Classifieds site. As of right now 68 Classifieds doesn&#8217;t have an api so the only real way of doing it is to create some custom code to interact with the script.  In this post I will outline how I got [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Recently I needed a way of importing listings from another site into a 68 Classifieds site. As of right now 68 Classifieds doesn&#8217;t have an api so the only real way of doing it is to create some custom code to interact with the script.  In this post I will outline how I got it working so if you ever have the need you can do it too. Keep in mind this is very crude and just enough to get the job I needed done.<br />
<span id="more-420"></span></p>
<h3>The Data</h3>
<p>The data you are importing needs to be a delmited file. I used a pipe delimited text file with the following lines:</p>
<pre>
OWNER|TITLE|SECTION|LINK|DESCRIPTION|PRICE|MAKE|MODEL|HOURS|SERIAL|LOCATION|
1|Test Import|1|http://yoursite.com|Test desc|2399|Ford|Taurus|55000|none|My Town
1|Test Import 2|1|http://yoursite.com|Test desc 2|2399|Toyota|Tundra|55000|none|My Town
</pre>
<p>The first line is just the header which is not used but I included it for reference. The next two lines are two different vehicles to import. The important step is to make sure the lines align with the heading line and to have each on their own line. </p>
<h3>The Import Script</h3>
<p>The import script is where all the processing will be.  This file is designed to be saved in your 68 Classifieds root.  You can view and download the full file from <a href="http://gist.github.com/169827">GitHub</a>.  I will go through all the sections below so you can see how to modify it suit your needs. </p>
<p>At the top of this file is this section: </p>
<pre>
$expiration = '30'; // Change 30 to the number of days these should expire.
$make_extra_field_id = 6; // The id of the make extra field
$model_extra_field_id = 7; // The id of the model extra field
$hours_extra_field_id = 8; // The id of the hours extra field
$serial_extra_field_id = 9; // The id of the serial extra field
$location_extra_field_id = 10; // The id of the location extra field
</pre>
<p>This allows you define what extra fields you are using and have them line up with your data.txt file. As you can see I am setting the expiration for 30 days, then defining the id of each extra field I am using. </p>
<p>The next part you will probably want to modify is the <strong>for</strong> loop.  Inside this loop I am assigning out the data. This looks like this: </p>
<pre>
$data['owner'] = $arr[0];
$data['title'] = $arr[1];
$data['section'] = $arr[2];
$data['url'] = $arr[3];
$data['description'] = $arr[4];
$data['price'] = $arr[5];
</pre>
<p>Basically the $arr[number] is a map to the data file. So $arr[0] is the data in the first pipe and on on. Just remember it always starts with zero instead of one.</p>
<p>The final piece of data is the extra fields which look like this: </p>
<pre>
$extra['make'] = $arr[6];
extra_field($listingid, $make_extra_field_id, $extra['make']);
</pre>
<p>The first line $extra['make'] = $arr[6]; is just like above this maps to 5th deliminator in the data file. Next we call the function <strong>extra_field</strong> which takes the listingid, the extra field id, and finally the text as parameters. </p>
<h3>The Full File</h3>
<p><script src="http://gist.github.com/169827.js"></script></p>
<h3>Wrap Up</h3>
<p>Trying to explain this was actually a lot harder than I thought. So if you need any clarification on anything please comment below. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=4lsy_7-ejns:YLggTgGyv60:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=4lsy_7-ejns:YLggTgGyv60:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=4lsy_7-ejns:YLggTgGyv60:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/EricLBarnes?a=4lsy_7-ejns:YLggTgGyv60:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/EricLBarnes?i=4lsy_7-ejns:YLggTgGyv60:F7zBnMyn0Lo" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://ericlbarnes.com/68classifieds/tips/import-listings-into-68-classifieds/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://ericlbarnes.com/68classifieds/tips/import-listings-into-68-classifieds/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 0.793 seconds. --><!-- Cached page generated by WP-Super-Cache on 2009-11-04 20:51:03 -->
