Articles Blogs Photos Projects Services About

Technology and Making



Saturday, 28 February 2009

Quick-n-easy Digg, Stumbleupon and Reddit icons for externally hosted Blogger blogs

It took me a while to figure these out, and I'm sure others are in the same position. These code snippets, added to your Template, will insert the latest icon-size submission buttons for Digg, Reddit and Stumbleupon into your externally-hosted Blogger posts. The submission fields for URL and Title are automatically filled in, making it easy for people to share your content. Easily customisable.

Digg:


<script type="text/javascript">
digg_url = '<$BlogItemPermalinkURL$>';
digg_title = '<$BlogItemTitle$>';
digg_skin = 'icon';
digg_bgcolor = '#cccccc';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>



Reddit:


<a href="http://www.reddit.com/submit" onclick="window.location = 'http://www.reddit.com/submit?url=' + '<$BlogItemPermalinkURL$>'; return false"> <img src="http://www.reddit.com/static/spreddit1.gif" alt="submit to reddit" border="0" /></a>



StumbleUpon:


<a href="http://www.stumbleupon.com/submit?url=<$BlogItemPermalinkURL$>"> <img border=0 src="http://cdn.stumble-upon.com/images/16x16_su_3d.gif" alt=""></a>



Thanks to Madhukar for his suggestion of Quick Escape, a web-based tool which instantly converts HTML into correctly escaped code. Very handy indeed.
Reblog this post [with Zemanta]

Labels: , , , , , , , , , ,

submit to reddit
Return to top

0 Comments:

Post a Comment

<< Home



Powered by Blogger

Add to Technorati Favorites
Powered by FeedBurner

Zemanta


Search Silverknife

Creative Commons License

Unless otherwise stated, all work on this site is © Mark Hewitt and licensed under Creative Commons Attribution- Noncommercial- Share Alike 2.5 License

Site Map