Subscribe via

Adding More Sites Social Homes Widget Plugin

Thaya Kareeson


Social Homes Widget is a small but neat little plugin that lets you add links to your various social homepages in your sidebar. Of course you can do this manually, but it’s a lot nicer to be able to manage this in the widgets section in wp-admin instead of having to dive into your sidebar.php every time you want to modify the list.
The plugin supports 19 different social home links. This is more than enough for most people, but not me. Today I found that I needed to add my Plurk homepage to this list. So I found a quick hack to get this done fast, instead of submitting a request to the author. All I did was:

1. Added ‘Plurk’ to the global services list (variable $services near the top of the page).

$services = array('del.icio.us', 'Flickr', ... , 'Plurk');

2. Added the following to big switch statement in widget_socialhomes():

// Plurk
case 19:
$link = 'http://plurk.com/user/'.htmlspecialchars($options[$i]['handle'], ENT_QUOTES);
$icon = 'http://www.plurk.com/static/favicon.png';
break;

Now “Plurk” should appear as one of the options in the Social Homes drop down menus in wp-admin > Design > Widgets > Social Homes. Short and Sweet. Enjoy!

Save and Share
Del.icio.us
StumbleUpon
Digg
Reddit

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Currently experiencing problems with Intense Debate commenting system. Please make sure your browser's Javascript is enabled and try again later.