My Upcoming Posts

Below you can find the upcoming blog posts on Frontendbook.com with a short excerpt for them. Please come with input if you find some of them more interesting than others.

jQuery Plugin Template

In this article I will show how easily you can write your own plugin template for jquery plugins. Having a template for this eases development and lets you get up to speed quickly. I will also share this template for Textmate so that you easily can use the best editor out there for writing your jQuery plugins.

Extend Google Analytics

In this post I will go into details on how you can extend Google Analytics to better suit your needs. We will look into custom reports, user types, tracking external links, tracking downloads and more. After reading this article you will be able to better track and analyze the behavior of your visitors.

Writing a SEO-friendly Widget

In this article we will go through the steps needed in order to setup a SEO-friendly widget. If someone is willing to put your content on their website, you should thank them, but you should also take the advantage to send some link-juice back to your site with the preferred keywords you are targeting. I show you how.

Piggybacking API-loading

Sometimes you will have to write some generic JavaScript code that can be used in a wide variety of environments, maybe on platforms not hosted by you (read our Writing a SEO-friendly Widget article) or maybe as script used in a plugin on some CMS or blogging platform. Of course you should make use of any of the nice libraries that exists (jQuery, Prototype, YUI, MooTools or Dojo) but at the same time, you should not distribute these libraries as a lot of websites already have them included, and if not better alternatives exists. I show you how.

The Zen of Internal Linking

Why is internal linking important? I see internal linking as way describing your content in a more dynamic and interactional type of pattern, adding usability to the user. Internal linking done right is very close to the first idea of hypertext or hyperlinking. Look at Wikipedia, they have taken internal linking to perfection. This article will discuss the philosophy and zen behind internal linking and discuss why and who users and search engines likes it.

Follow @hising on Twitter

I am moving my blogging more and more to Twitter (@hising) and other services such as Tumblr (http://awesome.hising.com) and Posterous and will only write longer posts on this blog in the future. However I post a lot of links and are available for discussions daily on Twitter, make sure you follow me (@hising) if you are interested in the stuff I have written about in this blog.

Front-End Book is a Comment-friendly Blog

I have added three new features to this blog in order to give people who comment a little extra back whenever they take some time and add a comment to my postings.

1. Remove nofollow on comments

We are using the plugin NoFollow Free by  Michele Marcucci. That plugin removes the nofollow from author links in comments when a user has submitted x number of approved comments. On Front-End Book you must have 5 approved comments before the nofollow attribute is removed from author links.

2. Automagically add back link to commentors blog

CommentLuv by Andy Bailey lets you automagically add a link to posters last blog post if a feed is found on the site the athor of the comment has in its author link. We use CommentLuv on Front-End Book and when you comment and use an url where your blog is, CommentLuv will show last blog post.

3. Top list of commenters

To the right we are from today starting to list our best commenters with their name linked to their website and with the number of comments next to them.
Keep up the commenting!

3 tips for a more dynamic website in less than an hour

This post aims at giving you 3 tips for achieving a more dynamic webpage with very little programming and no change in your workflow. The tools we are going to use are:

What we would like to achieve is a website that feels more dynamic even when you are not writing articles on your blog/website. This article is based on a web running PHP, Smarty, WordPress and a hosting plan that gives you the possibility to create and change rights for directories. You can of course adapt these tips to any server architecture you may be using, but these examples will feature this architecture.

Integrate Yahoo Pipes for News

Yahoo Pipes lets you, easily and graphically, create advanced mashups from different external sources such as RSS and other content available online. You can aggregate, manipulate and filter the content to fit your needs. Yahoo Pipes is very powerful used correct. In this post we will focus on how to take 1 or more RSS-feeds, combine them into one and filter out the content that fits on your website as targeted news.

Below you find a screenshot of a pipe where I have aggregated a couple of RSS-feeds from startup-blogs, sorted all items on publish date and filtered out all items that have the name “social” in the title.

Screenshot of Yahoo Pipes

Pipes is very intuitive and you should be able to create a solution like this in less than 10 minutes.

Save your Pipe and give it a nice name, then click Run Pipe…, on the resulting page you will get the option to “Get as RSS”, copy that URL, it should look something like this: http://pipes.yahoo.com/pipes/pipe.run?_id=BMHzDooV3RGSSmEWJhOy0Q&_render=rss

You now have dynamic content that are filtered according to your needs, below we will show you how to integrate it to your website with WordPress Plugins or with Magpie RSS and Smarty.

Integrate Twitter to WordPress

Twitter is a micro-blogging service that lets users tweet messages to their twitter profile. If you are using twitter, why not integrate your tweets to your blog, making it more dynamic, and if you like to, more personal. Maybe you do not want to create a single post for every tweet (max 140 characters), a daily aggregation maybe suits your blog better. Alex King has built a WordPress Plugin on top of Twitters API which do just that (among other things). Downloading and installing the plugin should not take you more than 10 minutes all together.

Integrate del.icio.us as Link Manager

If you run a web site or a blog, you probably collects and share bookmarks on social bookmark services such as del.icio.us, BlinkList, simpy, Ma.gnolia, reddit and other social bookmarking sites. Why not utilize the well specified apis and tagging possibilities that they offer. In this example I have choosen to go with del.icio.us, but I am pretty sure you can do this with all of the popular social bookmarking services, the only thing is that they have to have an RSS published for the tag you are using to pinpoint your dynamic content.

In this example we are going to use del.icio.us and my bookmarks tagged with jquery as a resource for adding external links to your website that updates automatically when you add new bookmarks tagged with jquery to your online del.icio.us bookmarks.

My jQuery bookmarks can be found at http://del.icio.us/hising/jquery. By adding /rss between hostname and username, you will get the list of jQuery bookmarks in a format suitable for integration with your web site. In this case the url to the rss is http://del.icio.us/rss/hising/jquery

RSS Integration Code Example

With Magpie RSS and Smarty

Download Magpie RSS and follow the installation instructions. One thing you dont want, is to grab the feed every time someone visits your page, you are want to cache the result for a specified period of time, in this example we cache the feed response for 1 hour (set this depending on how often you think you will update your dynamic content)


channel array which contains info on the rss
//$news->items array that contains the feed items

/*
item example:
array(
	title => 'Weekly Peace Vigil',
	link => 'http://protest.net/NorthEast/calendrome.cgi?span=event&ID=210257',
	description => 'Wear a white ribbon',
	dc => array (
			subject => 'Peace'
		),
	ev => array (
		startdate => '2002-06-01T11:00:00',
		enddate => '2002-06-01T12:00:00',
		type => 'Protest',
		location => 'Northampton, MA'
	)
);
*/
?>

When you have got the result from your controller/php-file make sure you expose the response data to your view manager, and print out your items. In this example I have used the Smarty templating engine


//PHP:
require_once(YOUR_SMARTY_PATH . 'Smarty.class.php');
$smarty = new Smarty();
$smarty->assign('news', $news);
$smarty->display('template.tpl);

//Template


As WordPress Plugin

Download a plugin for integrating external RSS into your blog. There are a lot of different plugins for this, in this example we will use FeedList. Upload and enable the plugin. Then in your template add this:


 'http://del.icio.us/rss/hising/jquery',
            'num_items' => 10));
?>

More Examples on Creating a Dynamic Web Quickly

There are many other ways to create a more dynamic web site. You could use FeedBurner for creating Headline Animators. Headline Animator is an animated banner that cycles through your feed’s five most recent items. It’s an easy way to promote your content anywhere you can place a snippet of HTML. By doing this you can promote content from another blog on your website AND add a more dynamic web. All this is easy steps, under an hour of labour, to achieve a more alive web. Do you have any other tips that are a quick win when it comes to adding dynamic content to your web site?

Name and focus change

I will keep on writing about JavaScript, jQuery if I find material interesting in the future, I may review a book or two in the area. But from now on I will focus on Online Marketing, Affiliate Business, Social Networking, Search Engine Optimization and other areas that explode right now.

And btw, I changed the blogs name to “The Frontend”, still the same URL though. :-)

New WordPress Theme for the Redesign of The Interaction Design Blog

Redesign of The Interaction Design Blog (www.hising.net)

I am redesigning The Interaction Design Blog with my own theme (named Mumrik after my black cool cat). I will make the theme available for others to download. My goals with the theme is:

  • Create a clean look and feel
  • Make the blog easier to navigate and read
  • Remove unecessary information
  • Learn the WordPress theme engine
  • Make it easier to add images and movies
  • Make good use of jquery

Feel free to comment on the first draft of the design.

Dreamhost Promo Code – Full Discount

Dreamhost offers massive storage, enourmous bandwidth, good performance and are SEO- and Developer-friendly allowing unlimited numbers of domains, databases, e-mail and announcement lists (among other unlimited things at Dreamhost) to a very affordable price. Snofs can bring that affordable price even lower by giving you the maximum discount available at Dreamhost ($50). You can easily set up your own installation of WordPress, Drupal or Ruby on Rails.

Dreamhost Full Discount

For only $5.75/month you get all this (and more) when signing up on Dreamhost with our Full Discount Promotion Coupon Code FRONT50.

Click here to signup for this offer!

Another thing that is great with hosting at Dreamhost is the possibility to affiliate with Dreamhost and be able to earn money from referring people to this classy service. We at Snofs believe that the affiliate program offered by Dreamhost is the best affiliate program for publishers and customers. Customers get great discounts and publishers get a good product to sell with a nice marginal.

Dreamhost hosting for your blog

Get a Free Domain AND save $50 (MAX DISCOUNT!) by using the code FRONT50 when signing up on Dreamhost. Continue reading