Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
Welcome to AspAdvice Sign in | Join | Help

comment count tip

  •  01-03-2008, 2:26 PM

    comment count tip

    I've been working with the new chicago template on my blog and found a workaround for something that was bugging me.

    In the footer where I display article information such as article rss feed, last updated date and comment count, my template originally looked like this

    [rss logo]  | updated:  $_article_edited  | $_comment_count

    ...and that looks good while comments are open but if the commenting period expires and no comments were entered, Vine Type will return nothing for $_formatted_comment_count making the output look like this

    [rss] | updated: 15 Nov 2007 |

    and that "|" at the end was bugging me.  So I removed the bar from the template and changed the vinetype.config file for the formatted comment count to look like this:

    $formatted_comment_0: | awaiting first comment

    $formatted_comment_1: | $_comment_count comment

    $formatted_comment_2: | $_comment_count comments

    and the config file like this

     [rss logo]  | updated:  $_article_edited  $_comment_count

    putting the bar into the config file.  Now if articles close without comments, no bar appears after the date.

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: ,
View Complete Thread