I while ago I had shared instructions on how to enable STLinks in Lotus Connections. STLinks was a way to add instant messaging awareness to any web application by using pure JavaScript.
Lotus Connections is integrated out of the box with Lotus Sametime. This integration, however, requires that you have the Lotus Sametime client installed, configured, and running in order for the awareness to work. A customer was asking me the other day if we could enable awareness without requiring the Sametime client. The answer is yes.
With the latest Sametime 8.5+ version there's an AJAX API for awareness similar to STLinks. Here's how you can use that API to add awareness in Lotus Connections:
1. Enable SSO between Lotus Connections and Sametime
2. The first step is to initialize the API. Add the following code to header.html
<!-- Adding for Sametime Awareness - START -->
<link rel="stylesheet" type="text/css" href="http://stproxy.acme.com/stwebclient/dojo_1.2.3/sametime/themes/WebClientAll.css" /> <script type="text/javascript"> // Settings for the proxy var stproxyConfig = { // Replace with the appropriate server & port server: "http://stproxy.acme.com", tokenLogin: true, // We want to not display the login UI isConnectClient: false };
// Commmented following line since djConfig is already initialized by Lotus Connections. // You will receive following error if you don't comment the following lines: // djConfig.locale is undefined // sap04/profiles/bundles/js/gzip_238210590/baseBundle.js //djConfig = { // parseOnLoad: true // //isDebug: true //}; </script> <script type="text/javascript" src="http://stproxy.acme.com/stbaseapi/baseComps.js"></script> <script type="text/javascript" src="http://stproxy.acme.com/stwebclient/dojo_1.2.3/sametime/livenameLight.js"></script> <script type="text/javascript" src="http://stproxy.acme.com/stwebclient/widgets.js"></script> <script type="text/javascript"> // User ID and password //var userID = "userID"; //var password = "password"; // Logged in correctly function loggedInOK() { // You can do other actions now that you are logged in } function logout() { stproxy.login.logout(); }
// Error callback function loginFailed(reason, error) { // Something has gone wrong: display some information alert("Error: " + reason + ": " + error); } // Log in anonymously function loginUser() { stproxy.login.loginByToken(null, stproxy.awareness.AVAILABLE, "I'm available", loggedInOK, loginFailed); return true; }
stproxy.addOnLoad(loginUser);
</script>
<!-- Adding for Sametime Awareness - END -->
3. Now add the following code anywhere in a page (for example, a blog or a wiki)
4. An alternative is that you would like to add it as field in a user's Profile page. To do so, modify profiles-config.xml to add an attribute that looks like this:
You may have heard this before, but I think it's worth repeating. I consider myself a newbie in the world of Enterprise 2.0. I started blogging internally at IBM about 4 years ago (even though our blogging platform has been around for almost 8 years). At the same time, I became an avid social bookmarker (again, even though our social bookmarking platform has been around for about 6 years). So what took me so long to get started?
Back in 2006, I was working in IBM's consulting organization. Deadlines were tight. Connectivity was scarce as I was constantly traveling. I was inundated in emails (most were from different people asking the same question) and stuck in mail jail. So did I really have time to "play" with these technologies? What's in it for me?
It wasn't until I caught up a video of one of our internal Enterprise 2.0 evangelists, Luis Suarez (which ended up being a recording of a Lunch-N-Learn I missed). The video concentrated on social bookmarking and how it's a great way to improve efficiency and productivity. What I really liked about the video was that it was focused on the employee and the benefits they would personally get from using these tools. After watching the video, I decided to give it a try, and got hooked!
And if you've been reading my blog for a while, you know that Lotus Knows I like Videos. To that end, an IBMer has produced a set of short clipss, each centered around a specific feature of Enterprise 2.0 (e.g. microblogging, wikis, file sharing, etc) and how it can solve day-to-day business challenges. Of course, these clips are centered around Lotus Connections, but I could see how these could be adjusted for other platforms. Thus, feel free to use these videos to promote adoption of your Lotus Connections deployment (or simply to get some ideas for your own).