I promise this is the last Wordpress related post I’m going to make for a long time. I finished with my template and this is the last thing I made for it. I wanted a way to allow people to add my posts to their Del.icio.us collection. I tried Arne Brachhold’s del.icio.us plugin but it wasn’t what I wanted. For one thing, it only worked on single.php. I wanted the bookmark link to be available on the index.php too. Not everyone will visit the individual post page. I also wanted it to have a pop-up. I quite liked the way the old del.icio.us pop-up bookmarklet worked. So here’s how you make a better del.icio.us bookmark. Place this code anywhere within the loop. It works for pages, templates, index.php and single.php.
<a href=”http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title('’, ‘’, true); ?>”>add to del.icio.us</a>
And that’s it. But that’s without the pop-up. If you want the pop-up method, first paste this simple javascript pop-up maker in your head tag.
<script type=\"text/javascript\">
function openpopup(popurl){
var
winpops=window.open(popurl,\"\",
\"width=700,height=250,status,resizable\")
}
</script>
Then use this link in your loop instead of the earlier one I showed you.
<a href=”javascript:openpopup(’http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title('’, ‘’, true); ?>’)”>add to del.icio.us</a>