Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogMissing sorting of commentsMissing sorting of comments
Previous
 
Next
New Post
4/8/2008 3:03 AM
 

Hi,

not sure if this has been already reported:

I am on blog version 03.04.00 and noticed that the comments of a blog are not sorted at all. I figured the reason quite fast, it is a missing ORDER BY in the used stored procedure.

Here is the complete "fixed" one:

ALTER PROCEDURE [dbo].[dnn_Blog_ListComments]
@EntryID as Int,
@ShowNonApproved bit=0
AS

SELECT
    C.[CommentID],
    C.[EntryID],
    C.[UserID],
    C.[Title],
    C.[Comment],
    C.[AddedDate],
    U.[UserName],
    U.[FirstName] + ' ' + U.[LastName] AS UserFullName,
    C.[Author],
    C.[Approved]

FROM
    dbo.dnn_Blog_Comments C
    LEFT JOIN
    dbo.dnn_Users U ON C.[UserID] = U.[UserID]

WHERE
    [EntryID] = @EntryID AND
    (C.[Approved]=1 OR C.[Approved] <> @ShowNonApproved)

ORDER BY
    C.[AddedDate]

 

Please note: you might have to alter the dnn_ in the name of the stored prodecure. I use it on my systems as dnn prefix.

 

Regards,
Tom.

 

 
New Post
4/8/2008 3:33 AM
 

Hi Tom,

Excellent.  This was actually on my TODO list for this week, so thanks for posting this workaround!

Thanks again,

Don



Don Worthley
Software Architect
Element Eleven

 
New Post
4/8/2008 4:00 AM
 

Hi Tom,

I just modified the Blog_ListComments stored procedure in the databese as you suggested, and it works great. Thank you very much for the enhancement, I hope that Don will be including this in the next version, thank you Don.

Best regards,
Dario Rossa

 
New Post
4/8/2008 8:02 AM
 

Hi Guys,

Thanks for passing this along. This was scheduled to be sorted out in the next release shortly.

One less thing to go chasing after ;)

Cheers,


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogMissing sorting of commentsMissing sorting of comments


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out