HomeMy Projects | My DasBlog themes and macros 
PageInfo - RSS, Microformats and Microsummaries for this page

  • DasBlog Themes
  • DasBlog Macros
dasblog DirectionalRedux theme [discuss]

A new take on the Directional theme with inset date flags and updated graphics. An original JForsythe design with contributions from Jon Stovall

dasblog Directional theme [discuss]

Here is a theme designed to enhance blogs with some offset date flags. An original JForsythe design.

dasblog Kubrick theme [discuss]

The most famous of all blog themes; ported to dasBlog. Originally created by Binary Bonsai.

Kubrick template for dasBlog
Theme installation: all themes should be extracted and placed into the /themes/[foldername] directory of your dasBlog installation.
  • DasBlog Themes
  • DasBlog Macros
jforsytheMacros.dll

A collection of my dasblog macros in a single library. They work with dasblog 1.8 and higher (1.9 suggested). All of these macros are used with the format <% Command(parameters) | jforsythe %> installation help

Download jforsytheMacros.zip [25k]
last updated January 12 2007

jforsytheMacros - Reference

  • Conditional Content for Different Page Views

    This macro will output the content provided for a type of page (there are a total of 11 differnet view types supported).

    Usage:

    ConditionViewType(view condition, "content")


    View types supported: commentview, dailyview, monthview, yearview, currentmonthview, categoryview, searchresultsview, homepageview, edititemview, loginview, defaultview

    example: <%ConditionViewType("homepageview", "<strong>Welcome to my blog</strong>")|jforsythe%>


    ConditionViewType Example
  • Works In Progress List

    This macro will show a list of all posts that you have that are not "public". These are probably your blog posts that are Works-in-progress. Admins and contributors will get a list of these items on the "Add Entry" page only. You should put the macro on the homeTemplate.blogtemplate page that your admin view uses, directly under the <%bodytext%> macro for best usability.

    Usage:

    WorksInProgress()


    example: <%WorksInProgress()|jforsythe%>


    WorksInProgress Example
  • Page View Type String

    This macro works well with breadcrumb scripts. It returns the type of page view your users are using for each page of your dasBlog.

    Usage:

    PageViewType(Start Padding, End Padding)


    example: <%PageViewType(" > ", ".")|jforsythe%>


    PageViewType Example
  • Naked Page Title

    This macro replaces the default <title> macro. It leaves the blog name in the html <title> tag on aggregated views (main page, category, date), but on an item page it removes the blog name leaving just the entry title. This supposedly improves search engine indexing.

    Usage:

    NakedPageTitle()


    example: <%NakedPageTitle()|jforsythe%>


    NakedPageTitle Example
  • Naked Item Title

    This macro replaces the default <itemTitle> macro. It hyperlinks the title on aggregated views (main page, category, date), but on an item page it removes the hyperlink. This supposedly improves search engine indexing.

    Usage:

    NakedItemTitle()


    example: <%NakedItemTitle()|jforsythe%>


    NakedItemTitle Example
  • Get RSS Macro

    This macro will request and (optionally) cache a remote RSS file and output it as an unordered list <ul> with customizable styles. Use this macro to syndicate any blog RSS, recent news items, or even your own dasBlog recent comments/posts/changes; essentially any RSS with a title and description node should work.

    Very Important: This macro depends on the skmRSS library ver. 1.9.3 (so the skmRss.dll needs to be in your /bin folder [skmRss.dll is included in jforsytheMacros.zip]).

    Note: Enabling caching will create a new folder in your dasBlog/content directory named getrsscache to hold the cached RSS.

    Usage:

    GetRSS(Rss URL, ID for <ul>, item limit, show titles, link titles, max title characters (0=all), show description, link description, max description characters (0=all), show pub date, show elapsed format, clean HTML, Minutes to Cache Items (0=no cache), debug mode) and getRss.css support styles


    example: <%GetRSS("http://feeds.feedburner.com/jforsytheprojects", "JF_proj_recent", 5, true, true, 0, false, false, 0, true, true, true, 1500, false)|jforsythe%>


    getRSS Example
  • Recent Comments Macro

    This macro builds a 'Recent Comments' div block with list elements for each recent comment. This version shows all comments for admin users and only comments not marked as spam for visitors. Comments marked as spam and held in system for review are marked as red. This is based on voidclass RecentComments macro and needs dasblog 1.9 with AKISMET support.

    Usage:

    RecentComments(visitor count, admin count, title trim, text trim, author trim, show text) and recentcomments.css support styles


    example: <%RecentComments(5, 30, 20, 0, 12, false)|jforsythe%>


    Recent Comments
  • Google Site Search Macro

    This macro builds a Google site search with the same elements as the DasBlog search widget (so your stylesheets don't need to be changed). You must set your domain and the number of items to return with the search.

    Usage:

    GoogleSiteSearch("domain", num_of_results_per_page)


    example: <%GoogleSiteSearch("dasblog.us", 20)|jforsythe%>


    Google Site Search Example
  • FeedBurner FeedFlare Macro

    This macro adds FeedFlare support in Item View only for the current version of dasblog.

    Usage:

    FeedBurnerFlareSingle("FeedburnerUsername")


    example: <%FeedBurnerFlareSingle("feedburnername")|jforsythe%>


    Feedburner Example
  • FeedBurner FeedFlare for 1.8 Macro

    This macro adds FeedFlare support in v1.8 of dasblog.

    Usage:

    FeedBurnerFlareSingle_onepointeight("FeedburnerUsername")


    example: <%FeedBurnerFlareSingle_onepointeight( "feedburnername")|jforsythe%>
  • Show String on Item View only Macro

    This macro includes passed "content" on any page which is an item view.

    Usage:

    StringOnItemView("content")


    example: <%StringOnItemView("<b>this is an item only view</b>")|jforsythe%>
  • Show String on Non-Item View only Macro

    This macro includes passed "content" on any page which is a non-item view.

    Usage:

    StringOnNonItemView("content")


    example: <%StringOnItemView("<b>this is an aggregated view</b>")|jforsythe%>
jforsytheMacros.dll installation
  1. Download and extract jforsytheMacros.zip to your computer and upload jforsytheMacros.dll to the /bin directory of your DasBlog installation folder

    You may also need to copy support dlls (for example: skmRss.dll) to your /bin directory as well

  2. In web.config in your dasblog installation directory:

    Make sure this line is not commented out:

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

    And add the following lines in the Macros section:

    <newtelligence.DasBlog.Macros>
        <add macro="jforsythe" type="jforsytheMacros.jforsythe, jforsytheMacros"/>
    </newtelligence.DasBlog.Macros>

  3. Add any/all of the above macros to your .blogtemplate files where appropriate