Posts Tagged: social bookmarking

Add social bookmarking icons to your sidebar without using widgets

March 18th, 2009

As social bookmarking sites such as Twitter, Facebook and Linked in become more and more popular, these days, I find myself being asked to make adjustments to several WordPress websites by adding social bookmarking links and icons to the sidebar. After 2 such web updates this week, I was asked by a friend to send me the code so that they could add it to their site. So instead of doing the work and sending it to him, I thought I would share it with you all.

The following examples are just code snippets that you can add to your sidebar.php template file. These snippets will not work if your website use sidebar widgets. (That’s not exactly true, but it’s a bit more complicated.)

The first example is very simple and can be seen live on the kitsilano.ca website.

Kitsilano sidebar example

First you’ll need to edit your sidebar.php template and add the following lines of code:

<h2>Follow Us</h2>
<ul>
	<li class="rss"><a href="[insert your rss link here]">Get our Feed</a></li>
	<li class="twitter"><a href="[insert your twitter link here]">On Twitter</a></li>
</ul>

Next you can adjust the styling by adding this piece of code to your style.css

#sidebar li.rss {
	background:url(images/rss.gif) 0 50% no-repeat;
}
#sidebar li.twitter {
	background:url(images/twitter.gif) 0 50%  no-repeat;
}
#sidebar li.rss a, 
#sidebar li.twitter a {
	padding-left:20px;
	}

The icons will also have to be uploaded in your templates’ images folder. You can use your own icons or grab the ones that I’ve used by downloading the zip file.

The second example may look a bit more complex, but is just as easy and can be seen on the mudcreative.com sidebar.

Mudcreative Social Bookmarking example

First insert these lines of code in your sidebar.php:

<div id="social_media">
<h2>Follow Us</h2>
<ul>
	<li><a href="[url here]"><img src="<?php bloginfo('template_directory'); ?>/images/linkedin.png" alt="View our linked in profile" width="32" height="32" border="0" /></a></li>
	<li><a href="[url here]"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" alt="On Twitter" width="32" height="32" border="0"></a></li>
	<li><a href="[url here]"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" alt="Via our RSS feed" width="32" height="32" border="0" /></a></li>
	<li><a href="[url here]"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="On Facebook" width="32" height="32" border="0"></a></li>
</ul>
</div>

Next, add the following to your style.css

#social_media {
	width:200px;
	background:#F2F7F7;
	border:1px solid #ACD0D1;
	padding: 0 0 5px 0; margin-bottom:10px;
}
#social_media ul {
	list-style-type:none; 
	margin:0 0 0 6px; padding:0;
}
#social_media ul li {
	display:inline; 
	padding: 0 6px 0 0;
}

Depending on what your stylesheet already contains, you may need to make a few tweaks, but it should be pretty straightforward. Here is zip file with the code snippets and icons. Have fun.

Web 2.0 – The Evolution of the Internet

March 22nd, 2007

Still confused about Web 2.0? Mhairi from Outsmart sales and marketing has written a great article explaining what’s what.

When I first heard the term “Web 2.0” I assumed it must be a new developer tool or software release. However, Web 2.0 is actually a buzzword that was coined in 2004 by O‘Reilly Media and Media Live International to describe how the Internet has evolved over the last few years to become a dynamic and interactive medium.

There seems to be a lot of confusion surrounding the term. It is often incorrectly used to describe the next generation of tools available on the web now when in fact it is simply jargon to describe how the Internet has changed. It is important to distinguish between the two: Web 2.0 is the result of all these new applications that have become available – it is not the tools themselves.

Let’s look at the attributes of next generation web technology that have brought this Web 2.0 evolution:

Dynamic applications are at the forefront of the next phase of the Internet. A great example of how dynamic web applications have become is online maps. Ten years ago if you were looking for directions on the web, the best you could expect was to be able to view a high level map. Today applications like Google Maps allow you to drill down to the exact location of your departure and destination and find exact directions on the best route to take. This service is both instantaneous and highly targeted to the end users’ requirements.

Social media technologies also play a major role in furthering the development of the Internet. Social media allow people to quickly and easily communicate and interact with other interested parties. The popularity of web logging both in written (blog) and video (vlog) form has taken off as has podcasting. These all take advantage of new broadcast technologies that allow users to easily publish thoughts, ideas, images and sound clips online. The web audience for blogs, vlogs and podcasts is flocking to tools that bring the information they want to them. RSS feeds make it possible for frequently updated content to be fed directly to those who want to see it and tools that store, share and recommend relevant links in one central place.such as del.icio.us (the bookmarks manager) are experiencing unprecedented growth

Web 2.0 tools make it possible for people to work together like never before. Collaborative technologies such as wikis are allowing users to input, change, and edit relevant material and make it available to all. Perhaps the most recognised wiki right now is the online encyclopaedia Wikipedia. Other popular collaborative technologies (made possible by enhanced delivery methods) include: applications that allow you to manage, edit and present photos and videos online such as Photosite and YouTube; as well as tools that simply allow you to share whimsy like Twitter (which allows you to share brief comments or thoughts at a moment in time). Incidentally Twitter’s traffic (according to Information Week grew 55% last week – further proof of the rise in popularity of Web 2.0 technologies.

Web 1.0 made information on line available to anyone Web 2.0 makes brings it to them in the form they want, when they want and allows them to easily share it with others. This is an exciting time and the possibilities Web 2.0 brings appear endless. Only time will tell how the Internet will continue to evolve but right now its all about instantaneous collaboration and interaction.

Related materials: