Recent posts by friends

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 2 Followers

CapSol
Not Ranked
7 Posts
Points 140
By: CapSol
Posted: Thu, Jul 3 2008 12:06 AM

I need to pull the 10 most recent messageboard posts by users in my friends list.  Is there a control that will do this or will it require custom code?  If custom code, can someone point me in the right direction?

Thanks.

 
  • Post Points: 20 |

Answered (Verified) Verified Answers

jpdavid
Not Ranked
15 Posts
Points 180
Answered (Verified) By: jpdavid
Posted: Thu, Jul 3 2008 10:23 AM In reply to

Community Server has an activity messaging component that stores data whenever certain events happen (adding forum posts/threads, adding friends etc)

You can use the ActivityMessageList control to get at the information you need:

<CSMessage:ActivityMessageList runat="server">
  <QueryOverrides runat="server" QueryType="CurrentUsersFriendsActivity" IncludedActivityMessageTypes="NewForumPost,NewForumThread" />
  <ItemTemplate>
    <CSMessage:ActivityMessageData runat="server" Property="FormattedBody" />
  </ItemTemplate>
</CSMessage:ActivityMessageList>

The API for these controls can be found at: http://getben.com/Documentation/CS2008/Chameleon/default.aspx

 

 
Answered (Verified)

All Replies

jpdavid
Not Ranked
15 Posts
Points 180
Answered (Verified) By: jpdavid
Posted: Thu, Jul 3 2008 10:23 AM In reply to

Community Server has an activity messaging component that stores data whenever certain events happen (adding forum posts/threads, adding friends etc)

You can use the ActivityMessageList control to get at the information you need:

<CSMessage:ActivityMessageList runat="server">
  <QueryOverrides runat="server" QueryType="CurrentUsersFriendsActivity" IncludedActivityMessageTypes="NewForumPost,NewForumThread" />
  <ItemTemplate>
    <CSMessage:ActivityMessageData runat="server" Property="FormattedBody" />
  </ItemTemplate>
</CSMessage:ActivityMessageList>

The API for these controls can be found at: http://getben.com/Documentation/CS2008/Chameleon/default.aspx

 

 
Answered (Verified)
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com