diff --git a/OurUmbraco.Site/xslt/forum-topicsYouParticipated.xslt b/OurUmbraco.Site/xslt/forum-topicsYouParticipated.xslt index e802d132..ea33bfda 100644 --- a/OurUmbraco.Site/xslt/forum-topicsYouParticipated.xslt +++ b/OurUmbraco.Site/xslt/forum-topicsYouParticipated.xslt @@ -14,12 +14,13 @@ - + + - + 0 + - - 0 + @@ -32,9 +33,8 @@ - 15 - - + + @@ -48,70 +48,66 @@ - - - solved - + + + solved + - - - + + - + + + + + + + + + + - +
- - - - - Started by: - - - - - -   - Topic has been solved - - - - - - - - by + + + + + + Started by: + - + + + +   - Topic has been solved + + + + + + + + by - - - - - - - - -
+ + + + Pages: +
    + + + 0 + + - -
      - -
    • - - current - - - - -
    • -
    - - - +

    Error

    You have to be logged in to view your posts! - +
    @@ -121,6 +117,29 @@ + + + + + +
  • + + + current + + + + + +
  • + + + + + + +
    +
    \ No newline at end of file diff --git a/uForum/Library/RawXml.cs b/uForum/Library/RawXml.cs index 1b854372..ec77d84e 100644 --- a/uForum/Library/RawXml.cs +++ b/uForum/Library/RawXml.cs @@ -44,7 +44,19 @@ namespace uForum.Library { return Businesslogic.Data.GetDataSet(sql, "topic"); } - + + public static XPathNodeIterator CountTopicsWithParticipation(int memberId) + { + + string sql = @"SELECT count(DISTINCT forumTopics.id) + FROM [forumTopics] + LEFT JOIN forumComments ON forumComments.topicId = forumTopics.id + where forumTopics.memberId = " + memberId + " OR forumComments.memberId = " + memberId; + + var x = Businesslogic.Data.GetDataSet(sql, "yourTopicsCount"); + return x; + } + public static XPathNodeIterator TopicsWithAuthor(int memberId) { return Businesslogic.Data.GetDataSet("SELECT * FROM forumTopics where memberid = " + memberId.ToString(), "topic"); }