1 min read

Adding "post to" links for del.icio.us, digg, and ma.gnolia in Textpattern

Here’s how to add “post to” links for del.icio.us, digg, and ma.gnolia to individual articles in Textpattern.

Update: Fixed it so the links add urlencoded titles to the output. It’s a bit ugly, but seems to work ok. And I’m having some issues with displaying the PHP code properly, so bear with me.

del.icio.us


post to <a href="http://del.icio.us/post?url=<txp:permlink />&amp;title=<txp:php>$a = title (array ());echo urlencode($a);</txp:php>">del.icio.us

digg

post to <a href="http://www.digg.com/submit?phase=2&amp;url=<txp:permlink />">digg</a>

ma.gnolia


post to <a href="http://ma.gnolia.com/bookmarklet/add?url=<txp:permlink />&amp;title=<txp:php>$a = title (array ());echo urlencode($a);</txp:php>">ma.gnolia</a>

Clicking one of the those links will automatically post a permanent link for an article and, in the case of del.icio.us and ma.gnolia, the title to one of the above services.