Add the following to your header/sidebar/parent .ASCX control
Skin-BlogStats.ascx ---------------------------------------------------------------------------------
<%@ Control Language="C#" %>
Blog Stats
Posts -
Comments -
Trackbacks -
BlogStats.cs ---------------------------------------------------------------------------------
using System.Web.UI.WebControls;
using CommunityServer.Blogs.Controls;
namespace CommunityServer.Blogs.Controls
{
///
/// Summary description for BlogTitleHeader.
///
public class BlogStats : WeblogThemedControl
{
public BlogStats()
{
}
protected override void AttachChildControls()
{
Literal T = FindControl( "trackbackCount" ) as Literal;
if(T != null)
T.Text = CurrentWeblog.TrackbackCount.ToString() ;
Literal P = FindControl( "postCount" ) as Literal;
if(P != null)
P.Text = CurrentWeblog.PostCount.ToString() ;
Literal C = FindControl( "commentCount" ) as Literal;
if(C != null)
C.Text = CurrentWeblog.CommentCount.ToString() ;
Literal A = FindControl( "articleCount" ) as Literal;
if(A != null)
A.Text = CurrentWeblog.ArticleCount.ToString() ;
}
}
}