Tag: twitter
Sociable Wordpress Plugin
by Hersey on Apr.10, 2009, under Cool Stuff, Tools
This afternoon I installed a Wordpress Plugin called Sociable that automatically adds icons that link to different social networking/bookmarking sites such as Twitter and Facebook to post. Neat little tool since it allow people to share your post with others on these networks by basically just clicking on the icons. Just check out the Share & Enjoy icons at the bottom of this post.
I regularly post to Twitter and it updates my Facebook status. Anyway the Sociable plugin works well but I found another version Sociable-Italia that has a feature that creates TinyUrls to help you keep to the 140 character limit of twitter. Other than TinyUrls and the settings page being in Italian in Sociable-Italia, I think the plugins are basically identical.
Anyway I added the code that generates the TinyUrl from Sociable-Italia to the Sociable plugin by editing sociable.php in the wp-content/plugins/sociable directory. Find the line
$url = $site['url'];
and add this after it
if ($sitename == ‘TwitThis’) {
$twitperma = file_get_contents(‘http://tinyurl.com/api-create.php?url=’.$permalink);
$url = str_replace(‘PERMALINK’, $twitperma, $url);
} else {
$url = str_replace(‘PERMALINK’, $permalink, $url);
}
I also added the title of the post to the twitthis icon. Find the line:
‘url’ => ‘http://twitter.com/home?status=PERMALINK’,
and change it to this
‘url’ => ‘http://twitter.com/home?status=PERMALINK :: TITLE’,
Of course if I have to update the plugin in the future this will stop working unless I remember to redo this, perhaps the author of the plugin will add this to a future release.
Great little plugin – download it here.
Sexy Unix Commands
by Hersey on Mar.24, 2009, under Cool Stuff
Got this as a re-tweet on Twitter from https://twitter.com/cinnamongirl13 and got a kick out of it.
“Sexy Unix Commands: date; unzip; touch; strip; finger; mount; gasp; yes; uptime;”
Another good one from her;
“The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit”
