Today I was tasked with adding several Social Bookmarking sites to a client's website, at work. Whilst reading through the various APIs for each site, I decided to look at AddThis that I had come across over the weekend.
AddThis saved me 2 days (estimated) development time, by combining all of the popular Social Bookmarking sites in one easy-to-integrate solution. I was so impressed that I decided to add AddThis to slickhouse!
AddThis provides a WordPress plugin from the outset, but I often find plugins to be too restrictive. AddThis is also available as a standard button or a dropdown menu, displaying several options. All 3 options use a new window to display the various Social Bookmarking sites.
I decided to opt for the dropdown, but hard-coded into the WordPress theme files. Firstly, to display AddThis on the main pages, open index.php and add the AddThis code. However, as you'll most likely be calling this code several times on the page, you need to define the URL and Title for each instance of AddThis:
= '<?php the_permalink() ?>';
addthis_title = '<?php the_title(); ?>';
On a single WordPress page (single.php), you can use the default code provided by AddThis easily enough, or use the above alterations - either way will work fine, as you should only be calling AddThis once.
And hey presto - AddThis has been added to WordPress! Feel free to use AddThis to add slickhouse posts to your preferred Social Bookmarking site. Personally, I'm a Digg/Google user.