Here's a little hack I made a while ago and completely forgot about: The idea is to add a little "Save to Delicious" link next to the links listed in the Links plugin.
We need 2 new variables for that. Open public_html/links/index.php and in function prepare_link_item, add the 2 lines as pointed out below:
Text Formatted Code
$template->set_var ('link_url', $url);
$template->set_var ('link_actual_url', $A['url']);
$template->set_var ('link_actual_url_encoded', urlencode($A['url'])); // <-- add this line
$template->set_var ('link_name', stripslashes ($A['title']));
$template->set_var ('link_name_encoded', urlencode(stripslashes ($A['title']))); // <-- add this line
Then, open plugins/links/templates/linkdetails.thtml and add the link to Delicious, e.g. like so (this is the complete file):
Text Formatted Code
<li>
<strong>{link_html}</strong> ({link_hits}) <span><a href="http://delicious.com/save?url={link_actual_url_encoded}&title={link_name_encoded}" title="Save to Delicious"><img src="{site_url}/images/icons/delicious.small.gif" alt="[Delicious]"></a></span> {edit_icon} {link_broken}<br{xhtml}>
{link_description}
</li>
I've downloaded the delicious.small.gif icon from here: http://static.delicious.com/img/delicious.small.gif and put it into the site's public_html/images/icons directory.
Now you see the Delicious icon next to every link in your Links section. Clicking on it will take you to
[*1] where, assuming you have an account, it will let you save it to your bookmarks. The title is automatically filled in from the title in the Links plugin.
P.S. The 2 new variables will also be built into the next Geeklog release.