Few days ago. I find a case, where my client asks to place their Yahoo! Messenger online status as an online support in their site. So the visitor can see if the online support currently online and using Yahoo! Messenger or not. If a Yahoo! Messenger user clicks their online presence, an instant message window will open for them so they can type an instant message. Yeah i use Yahoo! presence service, but the default presence image doesn't look fit with the website design i make. And i'm bored with it, so i decide to create new presence image.
Heres the default presence image:
you might have been familiar to these standard YM online status button. Bored right?
Heres my own Yahoo! presence image:
Hey!! Don't say its bored too.... its better than Yahoo! default presence image (i think)
Maybe you want to customize it with your name, so its look like this
Of course, this is only an example. You can create better buttons on your own.
The image done. Now how to place it in our site. Since Yahoo! presence image service didn't allow us to change the image directly.
I create some PHP Class, which allows visitor to view your Yahoo! online status using your custom images. According to online doc, we can use "http://opi.yahoo.com/online?u=
How to use it.
- 1. Download the class
- 2. Extract and upload it to your webserver.
- 3. Upload your online and offline presence image. Remember, the file name must be in this format, "online_youryahooID.gif" and "offline_youryahooID.gif"
- 4. Add this line
Be sure to replace out "youryahooID" with your own Yahoo! ID.
You may add more than 1 Yahoo ID if you want, the code should be like this.