Business, Tech, Life, and Whatever else

Post image for Tagging with Versions App

Tagging with Versions App

by Eric Barnes on September 14, 2009

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 Versions and the user guide wasn’t very helpful to me. Although it does explain it clearly. ;-)

So if you use Versions and want to quickly create a tag just go to the remote svn folder. Hold down the option key 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.

{ 2 comments }

SimplePie with 68 Classifieds

Integrate SimplePie with 68 Classifieds

by Eric Barnes on September 1, 2009

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 ’simple’ back into ‘really simple syndication’. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility and standards compliance.

Step 1.

Download SimplePie. For this tutorial I used v1.2

Step 2.

Upload simplepie.inc to “includes/simplepie” directory. If this folder does not exist you should create it. Next make the cache directory in your sites root writable.

Step 3.

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.

Open index.php file and add this to process the feed with SimplePie:

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);

The code above pulls in the rss for this site and loops through the items and assigns it to the “$items” array. Finally it assigns $items to the template as a variable named $rss_feed. You can change $feed->set_feed_url to your own rss feed.

Step 4.

Now open your home.tpl template file and at the bottom add this code:

<h3>Feed</h3>
<ul>
{foreach from=$rss_feed item="entry"}
    <li>
    <a href="{$entry.link}">{$entry.title}</a> - {$entry.date}
    </li>
{/foreach}
</ul>

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 SimplePie Documentation.

{ 3 comments }

68 Classifieds Campaign Monitor Module

Campaign Monitor Module

by Eric Barnes on August 27, 2009

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.
[click to continue…]

{ 0 comments }

Post image for 68 Classifieds Twitter Feeder v0.3

68 Classifieds Twitter Feeder v0.3

by Eric Barnes on August 25, 2009

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 announcement post and if you wish to comment please do so in the original post.

{ Comments on this entry are closed }

snowski bbPress Theme

by Eric Barnes on August 22, 2009

snowski bbPress Theme

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 computer. Next upload the “snowski” folder to your “my-templates” folder. Then visit admin and activate it.

If you want to change the text on the left column of the slider please edit the intro.php file.

Change log

Join my newsletter or RSS Feed to stay up to date with new releases

  • v1.0.1 – October 29, 2009 – Moved to github. No changes
  • v1.0.1 – October 02, 2009 – Fixed jQuery conflict.
  • v1.0.0 – August 22, 2009 – First Release

{ 26 comments }

Import Listings into 68 Classifieds

by Eric Barnes on August 18, 2009

Recently I needed a way of importing listings from another site into a 68 Classifieds site. As of right now 68 Classifieds doesn’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.
[click to continue…]

{ 11 comments }