Friday, January 12, 2007

Adding subscription and bookmark buttons to your WordPress!

Though you can find this in the WordPress Guides, I thought it might be nice to show it here again with the corrections in place to make it all work:
<h2>Subscribe/bookmark:</h2>
<ul>

<li>
 <a href="<?php bloginfo('rss2_url'); ?>" 
 title="<?php _e('Syndicate this site using RSS'); ?>" target="subscriptions">
 <img src="<?php bloginfo('template_directory'); ?>/img/add-rss2.0.png"
 alt="<?php _e('Syndicate this site using RSS'); ?>" width="80" height="15" />
 </a>
</li>

<li>
 <a href="<?php bloginfo('comments_rss2_url'); ?>" 
 title="<?php _e('The latest comments to all posts in RSS'); ?>"
 target="subscriptions">
 <img src="<?php bloginfo('template_directory'); ?>/img/comments-rss.png"
 alt="<?php _e('The latest comments to all posts in RSS'); ?>" 
 width="80" height="15" />
 </a>
</li>

<li>
 <a href="http://www.bloglines.com/sub/<?php bloginfo('rss2_url'); ?>" 
 target="subscriptions">
 <img src="http://www.bloglines.com/images/sub_modern1.gif" 
 alt="Subscribe with Bloglines" width="94" height="20" />
 </a>
</li>

<li>
 <a href="http://www.newsburst.com/Source/?add=<?php 
 bloginfo('rss2_url'); ?>" target="subscriptions">
 <img src="http://i.i.com.com/cnwk.1d/i/newsbursts/btn/newsburst3.gif"
 alt="Add your feed to Newsburst from CNET News.com" width="96" height="20" />
 </a>
</li>

<li>
 <a href="http://www.google.com/reader/preview/*/feed/<?php 
 bloginfo('rss2_url'); ?>" title="Subscribe in Google Reader">
 <img src="<?php bloginfo('template_directory'); ?>/img/googleread2.jpg"
 alt="Subscribe in Google Reader" width="91" height="17" />
 </a>
</li>

<li>
 <a href="http://client.pluck.com/pluckit/prompt.aspx?GCID=C12286x053&a=<?php 
 bloginfo('rss2_url'); ?>&t=<?php bloginfo('name'); ?>        "
 target="subscriptions"><img src="http://www.pluck.com/images/pluck/pluspluck.png"
 alt="Subscribe with Pluck RSS reader" width="91" height="17" />
 </a>
</li>

<li>
 <a href="http://add.my.yahoo.com/rss?url=<?php bloginfo('rss2_url'); ?>"
 title="Add to My Yahoo!" target="subscriptions">
 <img src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif" 
 alt="Add to My Yahoo!" />
 </a>
</li>

<li>
 <a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?php 
 bloginfo('rss2_url'); ?>" 
 title="Subscribe in NewsGator Online" target="subscriptions">
 <img src="http://www.newsgator.com/images/ngsub1.gif" 
 alt="Subscribe in NewsGator Online" width="91" />
 </a>
</li>

<li>
 <a href="http://my.msn.com/addtomymsn.armx?id=rss&ut=<?php bloginfo('rss2_url');
 ?>&tt=CENTRALDIRECTORY&ru=http://rss.msn.com'"
 target="subscriptions"><img src="http://sc.msn.com/c/rss/rss_mymsn.gif" 
 alt="Add to My MSN" />
 </a>
</li>

<li>
 <a href="http://feeds.my.aol.com/add.jsp?url=<?php bloginfo('rss2_url'); ?>"
 title="Subscribe in your AOL" target="subscriptions">
 <img src="<?php bloginfo('template_directory'); ?>/img/addtomyaol.gif"
 alt="<?php _e('The latest comments to all posts in RSS'); ?>"
 </a>
</li>

<li>
 <a href="http://www.rojo.com/add-subscription?resource=<?php 
 bloginfo('rss2_url'); ?>" target="subscriptions">
 <img src="http://www.rojo.com/skins/static/images/add-to-rojo.gif"
 alt="Subscribe in Rojo" width="52" height="17" />
 </a>
</li>

<li>
 <a href="http://www.furl.net/storeIt.jsp?t=<?php bloginfo('name');
 ?>&u=<?php bloginfo('url'); ?>" title="Furl It!" target="subscriptions">
 <img src="<?php bloginfo('template_directory'); ?>/img/furlit.png"
 alt="Furl It!" width="80" height="15" />
 </a>
</li>

<li>
 <a href="http://digg.com/submit" title="Digg It!" target="subscriptions">
 <img src="<?php bloginfo('template_directory'); ?>/img/digg.gif" alt="Digg It!"
 width="80" height="15" />
 </a>
</li>

<li>
 <script language="javascript" type="text/javascript" 
 src="http://www.spurl.net/jsspurl.php"></script>
</li>

</ul>

Don't forget to get this tarball of the button images and unpack in your theme directory.