Here it is - How to put Asteroids into Sametime
Category None
You're going to hate me when you see how easy this is. It turns out that this solution and the iPhone have something in common. The iPhone is basically using a web browser for it's 3rd party apps, and that is really what I'm doing here. I have often looked at Google Gadgets, Yahoo Gadgets, apple Gadgets etc. and thought, hhm that would be handy in Sametime. So I wanted to see how I could do that in Sametime with the fewest steps possible. Here's what I came up with.
Step 1 - Setup and configure the Sametime eclipse development enivronment , ok this is the hardest step and longest step. But if you follow the instructions in the Lotus Sametime 7.5.1 Integration Guide you should be in good shape. Be sure to install the samples that are included. That will give you something that looks like this.
Step 2 - To add Asteroids, Pacman etc. to Sametime we only actually care about one of the Sametime Plugin Samples, which is the branding sample also known as com.ibm.collaboration.realtime.sample.branding. To stop other samples being compiled etc. we just want to close them, the quickest way I have found to do this is to right click on "com.ibm.collaboration.realtime.sample.branding in the package explorer and choose "Close Unrelated Projects" so you end up with this:
Step 3 - Now expand the branding package by clicking the small plus to the left of it's name
Step 4 - Now double click on the file "plugin.xml" which open an Extensions window as seen here
Step 5 - Now click on the tree in the extensions window and expand out "contact list branding (stbranding)" http://www.ibm.com (website) till you see it simliar to this
Step 6 - Now we need to get a URL for the google gadget we need, so go to the Google Gadgets Site and find the one you want (for this example we will use Asteroids, click on the button "Add to your webpage", this will present a screen that looks like this:
Step 7 - Click on the button "Get the Code" this will display a new input box (sometimes this appears below the screen so be sure to scroll down to see it), it contains a like like this:
<script src="http://gmodules.com/ig/ifr?url=http://googlegadgets.neoteksystems.com/Asteroidsgadget.xml&synd=open&w=320&h=320&title=Asteroids&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Highlight the following section of the URL:
http://gmodules.com/ig/ifr?url=http://googlegadgets.neoteksystems.com/Asteroidsgadget.xml
Copy this to the clipboard and paste it into the "website" properties field replacing http://www.ibm.com like this:
Step 8 - If you were developing using Sametime 7.5 and not Sametime 7.5.1 you can now run your code and you will see Asteroids in the contact window. If you're running Sametime 7.5.1 you won't as the integrated browser within Sametime 7.5.1 has changed. In Sametime 7.5 it was using Internet Explorer, in Sametime 7.5.1 it is now using XULRunner, not an issue really except that 95% of the world has flash loaded within Internet Explorer and 0.00001% (that's me) of Sametime 7.5.1 users have Flash installed into the XULRunner integreated browser. So how do we install Flash into XULrunner? You need to do this.
Step 9 - If you want to make the area for asteroids larger, you can increase it's height by clicking on the extension "contact list branding" and change the height settings to however many pixels you want.
You're going to hate me when you see how easy this is. It turns out that this solution and the iPhone have something in common. The iPhone is basically using a web browser for it's 3rd party apps, and that is really what I'm doing here. I have often looked at Google Gadgets, Yahoo Gadgets, apple Gadgets etc. and thought, hhm that would be handy in Sametime. So I wanted to see how I could do that in Sametime with the fewest steps possible. Here's what I came up with.
Step 1 - Setup and configure the Sametime eclipse development enivronment , ok this is the hardest step and longest step. But if you follow the instructions in the Lotus Sametime 7.5.1 Integration Guide you should be in good shape. Be sure to install the samples that are included. That will give you something that looks like this.
![Step1](http://farm2.static.flickr.com/1056/544487095_1701867ed8_m.jpg)
Step 2 - To add Asteroids, Pacman etc. to Sametime we only actually care about one of the Sametime Plugin Samples, which is the branding sample also known as com.ibm.collaboration.realtime.sample.branding. To stop other samples being compiled etc. we just want to close them, the quickest way I have found to do this is to right click on "com.ibm.collaboration.realtime.sample.branding in the package explorer and choose "Close Unrelated Projects" so you end up with this:
![Step2](http://farm2.static.flickr.com/1388/544487101_dccdeae861_m.jpg)
Step 3 - Now expand the branding package by clicking the small plus to the left of it's name
![step3](http://farm2.static.flickr.com/1259/544487123_c2d5d24dbf_m.jpg)
Step 4 - Now double click on the file "plugin.xml" which open an Extensions window as seen here
![Step4](http://farm2.static.flickr.com/1079/544487127_8b60b11e64_m.jpg)
Step 5 - Now click on the tree in the extensions window and expand out "contact list branding (stbranding)" http://www.ibm.com (website) till you see it simliar to this
![step5](http://farm2.static.flickr.com/1299/544487143_0707aabcd5_m.jpg)
Step 6 - Now we need to get a URL for the google gadget we need, so go to the Google Gadgets Site and find the one you want (for this example we will use Asteroids, click on the button "Add to your webpage", this will present a screen that looks like this:
![step6](http://farm2.static.flickr.com/1283/544487157_a90003fd8d_m.jpg)
Step 7 - Click on the button "Get the Code" this will display a new input box (sometimes this appears below the screen so be sure to scroll down to see it), it contains a like like this:
<script src="http://gmodules.com/ig/ifr?url=http://googlegadgets.neoteksystems.com/Asteroidsgadget.xml&synd=open&w=320&h=320&title=Asteroids&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js"></script>
Highlight the following section of the URL:
http://gmodules.com/ig/ifr?url=http://googlegadgets.neoteksystems.com/Asteroidsgadget.xml
Copy this to the clipboard and paste it into the "website" properties field replacing http://www.ibm.com like this:
![Step7](http://farm2.static.flickr.com/1115/544490149_1be9e13392_m.jpg)
Step 8 - If you were developing using Sametime 7.5 and not Sametime 7.5.1 you can now run your code and you will see Asteroids in the contact window. If you're running Sametime 7.5.1 you won't as the integrated browser within Sametime 7.5.1 has changed. In Sametime 7.5 it was using Internet Explorer, in Sametime 7.5.1 it is now using XULRunner, not an issue really except that 95% of the world has flash loaded within Internet Explorer and 0.00001% (that's me) of Sametime 7.5.1 users have Flash installed into the XULRunner integreated browser. So how do we install Flash into XULrunner? You need to do this.
- Shutdown all instances of Sametime
- Go to a machine with Mozilla Firefox installed, and install the flash plugin from Adobes website.
- Find the two files NPSWF32.dll and flashplayer.xpt, I found them in my C:\WINDOWS\system32\Macromed\Flash directory
- Copy the two files above into the Sametime directory \Sametime Connect\plugins\com.ibm.swt.xulrunner.win32_3.2.0.200703161310\xulrunner\plugins
- Now you can restart Sametime
Step 9 - If you want to make the area for asteroids larger, you can increase it's height by clicking on the extension "contact list branding" and change the height settings to however many pixels you want.
![Step9](http://farm2.static.flickr.com/1033/544490153_1b7b138d63_m.jpg)
Comments
Can you get it working in the Notes 8 sidebar? If we can surface the entire realm of Google Gadgets in the Notes 8 sidebar fairly easily, and provisioned from the Domino server...
Well, let's just say that would make openNTF look like yesterday's news.
That is, until we build a Google Gadget that showed openNTF projects. And PROVISIONED THEM AUTOMATICALLY!!!
Posted by Nathan T. Freeman At 10:07:15 PM On 06/13/2007 | - Website - |
Posted by Carl Tyler At 08:33:46 AM On 06/14/2007 | - Website - |
Got that working no problem (well not after I got eclipse and the ST SDK working together
http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3251088316916567&dt=1182107885703&lmt=1173291137&format=234x60_as&output=html&correlator=1182107885703&channel=3276529084&url=http://googlegadgets.neoteksystems.com/AsteroidFlashgadget.htm?lang=en&country=us&.lang=en&.country=us&synd=ig&mid=0&parent=http://gmodules.com&color_bg=FFFFFF&color_text=000000&color_link=0033FF&color_url=000000&color_border=FFFFFF&ad_type=text_image&cc=100&flash=9&u_h=1050&u_w=1400&u_ah=990&u_aw=1400&u_cd=32&u_tz=60&u_his=1&u_java=true&u_nplug=18&u_nmime=58
...any thoughts?
Posted by Wayne H At 03:33:41 PM On 06/17/2007 | - Website - |
Try using these URLs
Asteroids
Space Invaders
Frogger
Tetris
Posted by Carl Tyler At 08:56:02 PM On 06/17/2007 | - Website - |
Posted by Chris Miller At 11:07:26 AM On 06/20/2007 | - Website - |
When I try and install the JRE 5.0 it says it will not install unless I have IBM hardware. (Dohhhhhhhh!!!!) this can't be true can it?
Posted by Sean At 09:00:36 AM On 07/09/2007 | - Website - |
I have one question though, I only get the plugin if I start ST751 from eclipse. If I start ST751 from the "start" menu, it won't load the plugin. Is there a way around this, and start ST751 with the plugin(s) from the start menu/shortcuts ?
Posted by Pedro Quaresma At 08:59:04 AM On 08/09/2007 | - Website - |