SharePoint Experts, Information Architects, Expert Witness

We provide consulting in a broad array of business and technology from architecture to design to deployment of global systems with a focus on surfacing data in the enterprise. Specialists in Microsoft, we are a premier provider of SharePoint Expertise (including 2016 and Office 365). We also provide Expert Witness/Legal Expert in eDiscovery, source discovery, patent infringement, piracy and more! We also have established SICG DLDS s.a. - our counterpart in Costa Rica that specializes in water systems (http://www.crwatersolutions.com) - Contact me direct: david_sterling@sterling-consulting.com or call 704-873-8846 x704.

Search This Blog

Tuesday, April 26, 2011

Enabling Presence in SharePoint 2010

Are your Icon's gray and lifeless? Could be because Presence is not enabled for SharePoint. Here's your answer:

NameCtrl Control

SharePoint 2010
Published: May 2010
An ActiveX control that enables a webpage to display presence information for people, and lets the user take various actions with respect to those people through an on-object user interface (UI) in Microsoft SharePoint Foundation.

This control is defined in NAME.dll, a dynamic-link library (DLL) that is installed in the %ProgramFiles%\Microsoft Office\Office14\ directory on the client computer during Microsoft Office Setup.
To instantiate this control, use the following function in ECMAScript (JavaScript, JScript):

var obj = new ActiveXObject('Name.NameCtrl.1');

In both cases, the argument is the programmatic identifier (ProgId) of the control, Name.NameCtrl.1. For more information about ProgIds, see <ProgID> Key.
In SharePoint Foundation, when a page that contains a view of a document library opens, code in the file OWS.js determines whether Microsoft Office is installed and, if it is, instantiates the control. After the control is instantiated, presence information is displayed whenever the mouse pointer passes over the name of a user on a webpage.


The file OWS.js is located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033 directory on each front-end web server in a SharePoint Foundation deployment.

The above from: http://msdn.microsoft.com/en-us/library/ms455335.aspx

----
The correct steps to add this are as follows:

1) Navigate to c:\Program files\common files\microsoft shared\web server extensions\14\template\layouts\1033\
2) Copy the OWS.js file to OWS_HOLD.js
3) Edit the OWS.js file using notepad
4) The File is trimmed for spaces, etc. so will not look formatted; at the very start of the file add:
var obj = new ActiveXObject('Name.NameCtrl.1');
5) Save the file and exit notepad

Repeat this on all front end servers.

To test it - navigate to the site from outside of the server; you should be prompted for install the Name.dll ActiveX control and User Icon's should work!

2 comments:

Anonymous said...

this didn't work for me

David M. Sterling said...

There is a good chance you are missing something or ActiveX is being blocked by your browser. I would suggest you a) verify the changes made in the .js file(s), b) check your browser settings and c) perform a farm reboot to ensure that the updated .js files are loaded (and not cached). Dave.