Adding Sametime integration to your blog - Revisited
Bookmark :
Yesterday as I was reading eknori.de I found that Ulrich Krause was using stlinks on his blog pointing to the BleedYellow sametime server and decided to have a go at it myself. Before I did I checked with Chris Whisonant who also pointed me to a blog entry by Daniele Vistalli which I had somehow missed before. Using stlinks is pretty straight forward (specially if you are using someone else's sametime server and don't have to setup your own), like Daniele explained you just have to include a couple of lines in the <head> section of your pages and some more wherever you want the link on your page.
This goes in the <head> section:
And this goes wherever you want to place your link:
I did change something from Daniele's example, instead of passing "side:notes" as a parameter in the call to writeSametimeLink which would have a person chatting with me identified as 'side:notes/Guest' I am using getCookie("BlogSphereAuthor") as a parameter. "getCookie" is a function included in the Blogsphere template that gets the author name if the person ever commented on this blog and checked the "Remember me" box, if not the sametime server will automatically generate a user name. You can further refine this by checking if the function returns anything and if it doesn't you can provide something else as a parameter instead of having the server generate a name.
This is what I'm using:
writeSTLinksApplet(getCookie("BlogSphereAuthor"),'',false);
If you're using the DominoBlog template or any other blog engine I'm sure there is also an easy way to get to a cookie storing the comment author's name.
If you decide to use stlinks on your blog be advised that it does have some impact loading your pages and there are also some issues with firefox.
Yesterday as I was reading eknori.de I found that Ulrich Krause was using stlinks on his blog pointing to the BleedYellow sametime server and decided to have a go at it myself. Before I did I checked with Chris Whisonant who also pointed me to a blog entry by Daniele Vistalli which I had somehow missed before. Using stlinks is pretty straight forward (specially if you are using someone else's sametime server and don't have to setup your own), like Daniele explained you just have to include a couple of lines in the <head> section of your pages and some more wherever you want the link on your page.
This goes in the <head> section:
<!-- Sametime BY - integration -->
<link rel="stylesheet" href="http://im.bleedyellow.com/sametime/stlinks/stlinks.css" type="text/css" />
<script type="text/javascript" src="http://im.bleedyellow.com/sametime/stlinks/stlinks.js"></script>
<script type="text/javascript" >
setSTLinksURL('http://im.bleedyellow.com/sametime/stlinks/', 'en');
STHost = 'im.bleedyellow.com';
writeSTLinksApplet('side:notes','',false);
</script>
<!-- Sametime BY - integration -->
And this goes wherever you want to place your link:
<script type="text/javascript">
writeSametimeLink('CN=Vitor Pereira,O=BleedYellow', 'Vitor Pereira', false, 'icon:yes;');
</script>
I did change something from Daniele's example, instead of passing "side:notes" as a parameter in the call to writeSametimeLink which would have a person chatting with me identified as 'side:notes/Guest' I am using getCookie("BlogSphereAuthor") as a parameter. "getCookie" is a function included in the Blogsphere template that gets the author name if the person ever commented on this blog and checked the "Remember me" box, if not the sametime server will automatically generate a user name. You can further refine this by checking if the function returns anything and if it doesn't you can provide something else as a parameter instead of having the server generate a name.
This is what I'm using:
writeSTLinksApplet(getCookie("BlogSphereAuthor"),'',false);
If you're using the DominoBlog template or any other blog engine I'm sure there is also an easy way to get to a cookie storing the comment author's name.
If you decide to use stlinks on your blog be advised that it does have some impact loading your pages and there are also some issues with firefox.
- 





Comments
also you could just have a 'chat with me' link which unhides a div to allow users to choose a name. then you could use DOM scripting to add the writeSTLinksApplet line with their info and then when they click through the sametime link it will be set up everytime.
Posted by Garth Thomas At 04:28:06 PM On 05/27/2008 | - Website - |
Posted by Kim Portert At 02:37:25 AM On 06/08/2010 | - Website - |
Posted by pirates of caribbean 4 movie At 10:29:45 AM On 02/21/2011 | - Website - |
Posted by french bulldogs adoption At 09:49:06 AM On 10/04/2011 | - Website - |
Posted by closet doors for bedrooms closet doors At 04:31:49 AM On 10/05/2011 | - Website - |
Posted by may 2012 calendar printable At 08:16:27 AM On 10/26/2011 | - Website - |
Posted by 2012 calendar printable ideeas At 05:55:21 AM On 11/07/2011 | - Website - |