Features

  • Renders lync presence on the basis of account name ("DomainName\\UserName" or "i:0%23.f|membership|username@domain.com")

Prerequisites

  • SharePoint 2013
  • JQuery 1.8.x +

Installation

<script src="http://code.jquery.com/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="/SiteAssets/jquery.lyncpresence.js" type="text/javascript"></script>
  • Add following javascript
jQuery(document).ready(function () {
   var settings = {type: "default", redirectToProfile: true};
   
   //AccountName : 'DomainNam\\UserName' OR 'i:0%23.f|membership|username@domain.com'
   selector.createpresence('AccountName', settings);
});

Settings

type:

Output for the lync presence. default : "default"
Options
  • default
  • withpicturesmall
  • withpicture
  • pictureonlysmall
  • pictureonly
  • presenceonly

Output

Default


With Picture [Small]


With Picture


Picture Only [Small]


Picture Only


Presence Only


Contact card

Last edited Aug 19, 2014 at 6:26 PM by Hemant_Mane, version 3