Adding Add This to Drupal

It's been quite a common thing to see on many blog sites, and web 2.0 type properties to allow people and actively encourage people to share content. There is a module to do forwarding, but as any Drupal Ninja knows the fewer modules the better. We also like to leverage other established best of breed services when we can... read about how we can get this functionality online in a minute..

So.. let's look at how to add the Addthis.com simple site share code.

The standard code you can get on their site.
You can see an example below

<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub = "markstrefford";</script>
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- AddThis Button END -->

So how should you add this.. well there are a few option.. 1) update you page template, 2) update your block theme, 3) add an extra block and position that, 4) add it using CCK etc..

I'll let you think about what would be the easiest, cleanest, most scaleable.

tags for Adding Add This to Drupal

To get the last Drupal Ninja Tips

Sign Up Below
First Name *
Email *

Recent comments