Delicious Save Buttons

With a “Bookmark this on Delicious” link, you can provide your site visitors an easy way to save it to Delicious. Here is an example (with an image added before the link):

Delicious Bookmark this on Delicious

The best way to accomplish this is by including some javascript which pops up a post window. If javascript is off, it will navigate to the post page. Here is the code:

<img src=”http://static.delicious.com/img/delicious.small.gif&#8221; height=”10″ width=”10″ alt=”Delicious” /> <a href=”http://delicious.com/save&#8221; onclick=”window.open(‘http://delicious.com/save?v=5&noui&jump=close&url=’+encodeURIComponent(location.href)+’&title=’+encodeURIComponent(document.title), ‘delicious’,’toolbar=no,width=550,height=550′); return false;”> Bookmark this on Delicious</a>

Blog templates

A quick word of advice: Don’t do this unless you are a geek.

WordPress

To place this on your front page, go to Presentation -> Theme Editor -> Main Index Template. You may place the following code where you wish:

<img src=”http://static.delicious.com/img/delicious.small.gif&#8221; height=”10″ width=”10″ alt=”Delicious” /> <a href=”http://delicious.com/save&#8221; onclick=”window.open(‘http://delicious.com/save?v=5&noui&jump=close&url=’+encodeURIComponent(‘&lt;?php the_permalink() ?>’)+’&title=’+encodeURIComponent(‘<?php the_title() ?>’),’delicious’, ‘toolbar=no,width=550,height=550’); return false;”> Bookmark this on Delicious</a>

Movable Type

In your Main Index and Individual Archive templates, after </MTIfAllowComments>, add:

<img src=”http://static.delicious.com/img/delicious.small.gif&#8221; height=”10″ width=”10″ alt=”Delicious” /> <a href=”http://delicious.com/save&#8221; onclick=”window.open(‘http://delicious.com/save?v=5&noui&jump=close&url=’+encodeURIComponent(<$MTEntryPermalink$&gt;)+’&title=’+encodeURIComponent(<$MTEntryTitle$>),’delicious’, ‘toolbar=no,width=550,height=550’); return false;”> Bookmark this on Delicious</a>

Browser Buttons

If you’re looking to install the browser toolbar buttons for saving bookmarks to Delicious, here’s where to go: the Firefox buttons, Internet Explorer buttons, or bookmarklet buttons for any browser.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: