Add Google Buzz to your Site!

February 18th, 2010

So as everyone knows Google has released Buzz and by now most everyone has it. The number one question is how do I add it to my site so that people can share my content with their buzz friends. Well, if you are running WordPress it’s pretty easy. Head on over to Wordpress.org and search for the plugin called Google Buzz for Wordpress. If you are not running WordPress you can just use this link and replace out the variables (designated by <<>>)

http://www.google.com/reader/link?url=<<URL>>&title=<<TITLE>>&srcURL=<<SRC>>&srcTitle=<<SRCTITLE>>

Where
URL = Url of the page you want to share
TITLE = Title of the page that you are sharing
SRC = Source of the page that you are sharing. for instance you may share http://www.kapustabrothers.com/ to buzz but found the link and shared it from aol.com so the SRC would be aol.com.
SRCTITLE = The title of the source.

It’s that simple. A box will pop up you can add some tags and some comments and click post. This will post directly to your buzz feed for all your buzzy friends to see.

Next are the icons. What should you use for an icon? Well you can search the net for them but I found some pretty cool simple ones from http://www.chethstudios.net/

All you have to do is wrap the icon with the link and your all set. I suggest setting a rel and a target too if applicable.


Google Buzz


Google Buzz


Google Buzz


Google Buzz


Google Buzz


Google Buzz


Google Buzz


Google Buzz

Update: Here is another icon that I found floating around on the interwebs.

Google Buzz

Enjoy!

Bookmark and Share

Obama Countdown Widget

February 9th, 2010

New Obama Countdown Widget now Live!

Bookmark and Share

Gravatar Zend Framework View Helper

December 18th, 2009

I have worked on a Zend Framework these past couple of days and needed the ability to display a users avatar. This is easy by using Automattic’s gravatar project. The easiest way to add a users avatar is to use a (this) view helper. Basically in your view you just pass the user’s email address and a desired size and your all set. Make sure in the view helper you specify the default image if the user doesn’t have an avatar to display.

You can download the source here. Comments and improvements are always welcome.

<?php
/**
 *
 * @author Shaun Farrell
 * @version 1.0
 */
require_once 'Zend/View/Interface.php';

/**
 * Gravatar helper
 *
 * @uses viewHelper Zend_View_Helper
 */
class Zend_View_Helper_Gravatar {

	/**
	 * @var Zend_View_Interface
	 */
	public $view;
	/**
	 *
	 * @var unknown_type
	 */
	protected $_gravatarUrl = "http://www.gravatar.com/avatar.php?";
	/**
	 *
	 * @var unknown_type
	 */
	protected $_defaultImage = "http://everquest.allakhazam.com/pgfx/item_576.png";

	/**
	 *
	 * @param $emailAddress
	 * @param $size
	 * @param $imgAlt
	 */
	public function gravatar($emailAddress, $size = "40", $imgAlt = "")
	{
		$gravatarId = "gravatar_id=" . md5(strtolower(trim($emailAddress)));
		$url = $this->_gravatarUrl . $gravatarId . "&default=" . urlencode($this->_defaultImage) .
			"&size=" . $size;

		echo "<img src=\"$url\" alt=\"$imgAlt\" />";
		return null;
	}

	/**
	 * Sets the view field
	 * @param $view Zend_View_Interface
	 */
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
	}
}
Bookmark and Share

After the Deadline (AtD)

December 10th, 2009

Yesterday I had the great opportunity to here Raphael Mudge the creator of AtD present After the Deadline at DC PHP.  Below is a recording of the talk.  I hope to write some more about AtD after I play around with it more.

http://www.vimeo.com/8095568
Bookmark and Share

The Wedding

November 10th, 2009

More Photos at http://www.flickr.com/photos/farrelley/sets/72157622771069328/

Wedding

Wedding

Wedding

Bookmark and Share