This one is for Harald, but any Serendipity user will be able to use the code so keep reading. The Add This Bookmark and Share Widget is the little box you see under my entries that pops up and let’s users stumble or bookmark my entries.
[Hint] press the friggin’ button right now! [/Hint]
So, the code needs to go into entries.tpl of the template you’re using, just open this in your favorite text editor, and find the entry footer code for plugins which will look like this {$entry.add_footer}. Now add an HTML breakline <br /> then paste the following code;
{$entrydata.url|escape:url}
<!-- AddThis Bookmark Button BEGIN -->
<script type="text/javascript">
addthis_url = '{$entry.rdf_ident|escape:url}';
addthis_title = '{$entry.title|escape:url}';
addthis_pub = 'carlgalloway';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
<!-- AddThis Bookmark Button END -->
You need to replace ‘carlgalloway’ with your own ‘Add This‘ username, so make sure you’ve created an account. Once you’ve done this, upload the new entries.tpl to your blog server and enjoy the rush of stumbles and bookmarks you’ll get. Don’t forget to press my button!!
