Register  Login  
  February 8, 2010  
Search_Blog Minimize
Print  

Blog_Archive Minimize
Print  

Blog    
View_Blog Minimize
Jun 24

Written by: host
Wednesday, June 24, 2009 9:01 PM 

As I mentioned in a recent Blog posting, I am attempting to blog more.  With blogs postings come comments to my blog -- this is a appreciated and unfortunately sometimes overlooked.  So I have added a new report to my site that display recent blog comments.  This way when I do my daily site review I can check if I have comments that require responses.

I also have missed some feedback messages -- even though they generate an email, I do miss them so I have a report to display all the unanswered feedback messages.

You can use the Reports module to display the information or one of the several other SQL grid modules to display the report.  For obvious reasons I use SQLGridSelectedView.

The SQL is simple:

 select
    Author, Title, Comment, addeddate from dbo.Blog_Comments
where
    DateDiff(d, AddedDate, Getdate()) < 90
    and Author <> 'Host'
order by
    AddedDate desc

I also added a display of the recent blog post to using this SQL.  Inspired by this DotnetNuke Forum posting - I believe this is from mamlin at eguanasolutions.com

select top 5
    ''+ble.Title+'' as [Latest Blog Entries]
from
    blog_entries ble
    inner join blog_blogs bb on bb.Blogid = ble.Blogid
where
    ble.Published = 1
    and bb.Portalid = 2
    and bb.[public] = 1    -- ensure blog is public
order by
    ble.AddedDate desc

Lastly, I needed to see if I missed any feedback messages -- I have missed feedback and its "bad form" to not respond in a timely mannor, so here is the SQL to report on feedback.

select
    DateCreated as [Created],
    Subject,
    Message,
    CreatedbyEmail as [Email]
from
    dbo.Feedback
where
    status = 2
order by
    DateCreated desc

Hope this helps.  
Paul

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 

Blog_List Maximize
Print  

  Home | Blog | Forum | Subscriptions | Free Modules   Page generated in 0.0400576 seconds.
  Copyright 2010 by TressleWorks   Terms Of Use | Privacy Statement