Front-End Book is a Comment-friendly Blog

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

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?


What is the Cost of Your Advertising Space

Daniel Scocco has posted an interesting article on Problogger about how to decide how much you should charge for your advertising space. I have been looking for articles like these, and think this one is straight forward and to the point.


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. :-)


Wordpress Theme Mumrik is Online

I switched theme today, moving to my own theme Mumrik from bloggingpros wordpress theme. It should be a little cleaner and hopefully easier to read and navigate. Once I have sorted out all the kinks I will release it for download.


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. Read the rest of this entry »


Change of wordpress theme today

I have been irritated a lot lately about the Hemingway theme, it is too stylish. A good theme should at least show the latest blog-post in full on the first page, and if it truncates posts, it should be able to Read the rest of this entry »


Blogger gets labels and other features

Blogger has gone beta with a version that supports labels. As I see it this had to happen, you must be able to categorize your posting. Wonder how long it will take before you can merge your exisiting blogs into this new user interface.

beta.blogger.com with new features


Contact

You are more than welcome to contact us if you would like to discuss anything regarding the blog.

About

Front-End Book is run and primarily written by Mattias Hising, an experienced Lead Developer from Uppsala, Sweden. I try to focus my efforts on Front-End related issues, as I find the problems to solve are more complex and interesting than the ones in traditional back-end development.

Twitter | GitHub | FriendFeed | LinkedIn | StumbleUpon | Facebook | Delicious