Blogzerk Forums
Welcome, Guest. Please login or register.
August 20, 2008, 09:34:09 PM
100 Posts in 33 Topics by 13 Members
Latest Member: duonexus
Home Help Search Login Register
Blogzerk Forums  |  Tips and Tricks  |  Look and Feel  |  HOWTO: Adding a "Post to del.icio.us!" Link to Your Blogzerk Blog « previous next »
Pages: [1] Go Down Print
Author Topic: HOWTO: Adding a "Post to del.icio.us!" Link to Your Blogzerk Blog  (Read 1611 times)
Zerkie
Blogzerk Administrator
Administrator
Jr. Member
*****
Offline Offline

Posts: 57


View Profile WWW
HOWTO: Adding a "Post to del.icio.us!" Link to Your Blogzerk Blog
« on: January 06, 2006, 03:42:34 PM »

del.icio.us is a great resource for tagging and sharing blog posts, not to mention bringing visitors to your blog. To give your blog readers an easy way to post an article on your blog to del.icio.us, you can add a link to your category and article templates. For this example, we are going to put at "Post to del.icio.us!" link next to the Permanent Link and Cosmos links in both the category and article view.

To do this, first customize your category template. Edit the code for the template and find the block of code that looks like this:

Code:
{{if cosmos_url}}
&nbsp;|&nbsp; <a href="{{cosmos_url}}">Cosmos</a>
{{/if}}

After that code, copy and paste the following:

Code:
&nbsp;|&nbsp; <a href="http://del.icio.us/post?url={{permalink_url}}&title={{if title}}{{var name=title escape=html}}{{else}}Untitled{{/if}}" target="_blank">Post to del.icio.us!</a>

Save your changes. You should now see a link next to your Permalink and Cosmos (if enabled) links in the category view. Repeat this change for the article template. The code to find and to add is the same in both templates.
« Last Edit: January 06, 2006, 03:56:12 PM by Zerkie » Logged

Pages: [1] Go Up Print 
« previous next »
Jump to: