SP 2010 OOB Social Icon

Social Icon in SP 2010 are the “I like it” and “Tags and Notes”.

Here is the code to add the social icons to the Top Ribbon next to the user profile button:

<div style="float:left; padding-top:10px;"><SharePoint:DelegateControl ControlId="GlobalSiteLink3-mini" Scope="Farm" runat="server"/></div>

It goes before <div class=”s4-trc-container-menu”> in the master page.

Use noteboard to display comments for articles

To display a comment section on any publishing page, you can simply add a noteboard web part on the page or follow this article to add a social comment control on the page layout. In the article, author also talked about how to add the rating functionality.

 

Amol Meshe summarised a few points about the noteboard web part here.

Highlights:

  1. In order to use noteboard, User Profile service application needs to be associated with your web application.
  2. Number of replies to display can be configured via Note Board web part properties.
  3. Notes goes in the same DB and mapped against the page url.

 

Found this article that explains how to display comments count using DVWP and SOAP services.

 

These links talks about how to use code to get comment counts

http://sharepoint.stackexchange.com/questions/20389/number-of-comments-with-socialcommentmanager-getcomments

http://social.technet.microsoft.com/Forums/lv/sharepoint2010programming/thread/89be1264-b7a9-47bc-a6ac-86da7658580f