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.
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
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com