dasBlog Extra Macros

Download | Introduction | Installation and Use | Disclaimer

Download:
Version 1.2

Introduction:

DasBlog Extra Macros

dasBlog 1.8 has custom macros. This essentially means that anyone can create macros for dasBlog and distribute it separately. This is a pretty nice feature. I created a set of custom macros to add links to  blog posts like the one above for del.icio.us. Clicking on the link will post this blog entry to the social bookmarking site automatically.

Here is the complete set of macros.

  1. Bloglines Citation
    Use:
    <%BloglinesCitations(“Citations”)|extra%>
    Description: Creates a link to bloglines citations for the current post
    Template: itemTemplate.blogtemplate
  2. Post to Delicious
    Use:
    <%Delicious(“del.icio.us”)|extra%>
    Description: Creates a link to save the post to del.icio.us
    Template: itemTemplate.blogtemplate
  3. Technorati Linking Blogs
    Use:
    <%TechnoratiLinkingBlogs(“Linking Blogs”)|extra%>
    Description: Creates a link to the linking blogs using Technorati
    Template: itemTemplate.blogtemplate
  4. Digg This
    Use:
    <%Digg(“DiggThis”)|extra%>
    Description: Creates a link to submit post to Digg
    Template: itemTemplate.blogtemplate
  5. Comment Count Link
    Use:
    <%CommentCountLink()|extra%>
    Description: Creates a link to the comments page with just the number of comments as link text. I have seen some wordpress themes use such a link.
    Template: itemTemplate.blogtemplate
  6. FeedBurner Circulation
    Use:
    <%FeedBurnerCirculation()|extra%>
    Description: This shows the number of subscribers as tracked by FeedBurner. This is shown only if the new dasBlog feature to redirect feeds to FeedBurner is used.
    Template: Any template
  7. Item Title Text
    Use:
    <%ItemTitleText()|extra%>
    Description: This gives the items title in plain text.
    Template: itemTemplate.blogtemplate
  8. Time Since
    Use:
    <%TimeSince()|extra%>
    Description: This gives the time since the item was published eg. Published 1 week, 3 days ago.
    Template: itemTemplate.blogtemplate
  9. Word Count
    Use:
    <%WordCount()|extra%>
    Description: This gives in plain text the number of words in the current post.
    Template: itemTemplate.blogtemplate
  10. FeedBlitz NEW
    Use:
    <%FeedBlitz(“feedid”)|extra%>
    Description: This macro generates the FeedBlitz subscription form. The feed id is passed as a parameter.
    Template: Any template
  11. Link Permalink NEW
    Use:
    <%LinkPermalink(“linkText”,”linkUrl”)|extra%>
    Description: This is a generic macro that lets you create ‘digg this’ like submission links. For example if you pass ‘digg this’ as linkText and ‘http://digg.com/submit?phase=2&url=’ as the linkUrl you can create a link to submit the post to Digg. The macro adds the permalink of the post after the linkUrl.
    Template: itemTemplate.blogtemplate
  12. Navigator Links List NEW
    Use:
    <%NavigatorLinksList()|extra%>
    Description: The navigation links in dasBlog is rendered in a table. Too many tables is bad. This macro renders the same as HTML list. The advantage of a list is that using CSS this can be rendered horizontally as it appears in this blog’s top banner.
    Template: Any template
  13. Single Item Include NEW
    Use:
    <%SingleItemInclude(“path to file”)|extra%>
    Description: This macro includes the contents of the file (passed as parameter) when only one item is displayed in a page. I have used this to include AdSence ads. These ads show up below the post in Permalink page and comments page. But in other aggregated pages like homepage and archive pages it does not show up.
    Template: Any template
  14. Recent Comments NEW
    Use:
    <%RecentComments(“count”)|extra%>
    Description: A macro to show recent comments. The number of comments to be displayed is passed as parameter (count).
    Template:Any template

Installation and Use:

1. Download dasBlog Extras. Unzip the ExtraMacros.dll and upload it to the bin directory of your dasBlog installation.
2. Uncomment or add the following in dasBlog’s web.config:

<section name=”newtelligence.DasBlog.Macros” type=”newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core” />

3. The add the following snippet to the same file:

<newtelligence.DasBlog.Macros>
<add macro=”extra” type=”ExtraMacros.Extra, ExtraMacros”/>
</newtelligence.DasBlog.Macros>

4. Then add the macros as it appears in the above table to your theme’s template file. The template files are found in <dasBlog Home>\themes\<your theme name>\*.blogtemplate

Disclaimer:

The Software comes “as is”, with no warranties. None whatsoever. This means no express, implied or statutory warranty, including without limitation, warranties of merchantability or fitness for a particular purpose or any warranty of title or non-infringement.

One comment on “dasBlog Extra Macros
  1. great
    i love your blog a lot.

Ads By Google