RSS feed
<< December 31, 2007 | Home | January 2, 2008 >>

Add digg to your blog

Web 2.0 encompasses a variety of new ideas many of which reflect a new paradigm for engaging users to collaborate on an idea instead of simply consuming it. I love this concept because it is one of the principles of the Burning Man movement: Participation. Digg is one of these new Web 2.0 technologies, it offers a collaborative approach to sharing content. I've altered this blog to now include Digg links for each posting. If you think an article is worth sharing you can click on the Digg link for that article.

If you run a Pebble blog, you can edit your blogEntry.jsp file with the diff information in the code sample below to add Digg links to your own blog.

diff -bBdNrw -U5 WEB-INF/jsp/blogEntry.jsp.rel 
WEB-INF/jsp/blogEntry.jsp
--- WEB-INF/jsp/blogEntry.jsp.rel       2007-06-25 20:05:30.000000000 -0700
+++ WEB-INF/jsp/blogEntry.jsp   2008-01-10 12:16:21.210626630 -0800
@@ -11,11 +11,23 @@
 </c:choose>

   <%@ include file="/WEB-INF/fragments/blogEntryLinks.jspf" %>

   <a name="a${blogEntry.id}"></a>
-  <h1><a href="${blogEntry.permalink}">${blogEntry.title}</a></h1>
+  <h1>
+<div style="float:right; text-align:right;">
+<!--[digg]-->
+<script type="text/javascript">
+digg_url = '${blogEntry.localPermalink}';
+digg_skin = 'compact';
+digg_window = 'new';
+</script>
+<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
+<!--[/digg]-->
+</div>
+<a href="${blogEntry.permalink}">${blogEntry.title}</a></h1>
+
   <h2>${blogEntry.subtitle}</h2>

   <div class="contentItemBody">
     <c:choose>
       <c:when test="${displayMode == 'detail'}">

If you use blog software other than Pebble you can add the code segment below to add Digg to your site. Place the code wherever you want the link to appear. You will need to replace ${blogEntry.localPermalink} with the URL for the article. Visit the Digg integration page for more information.

<!--[digg]-->
<script type="text/javascript">
digg_url = '${blogEntry.localPermalink}';
digg_skin = 'compact';
digg_window = 'new';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
<!--[/digg]-->

On the old Blogger templates you <$BlogItemPermalinkUrl$> will work. If you're running the old templates you should see a toolbar item under the Template tab that erads "Customize Design". It's between "Pick New" and "AdSense". The page allows you to "UPGRADE YOUR TEMPLATE". If you are using the new templates, there is an option to revert to the classic template. This option is under the "Edit HTML" item in the Template tab. It's between "Fonts and Colors" and "Pick New Template". Be careful as you're likely to lose any customization changes you've made in your new template, I'm not sure.

<< December 31, 2007 | Home | January 2, 2008 >>