Sometime we see on a website or web blog, a picture that show us presence status whether a user is online on Yahoo! Messenger or not. I think it’s a nice feature that we can get information that someone is online or not.
Adding to Webpage
Adding such feature on website is simple. A simple way to get the script is by visitting http://messenger.yahoo.com/addpresence.php.
Go to “Add OPI to your webpage section, and insert your Yahoo! ID into the input box.

After we inserted a Yahoo! user ID, the script will be generated. The script will be like this:
<a href=”http://messenger.yahoo.com/edit/send/?.target=matt_cempreng”>
<img border=”0″ src=”http://opi.yahoo.com/yahooonline/u=matt_cempreng/m=g/t=2/l=us/opi.jpg”>
<a>
Copy the script and paste it to the webpage.
Testing User’s Presence from Browser
Sometime testing a YM user presence is important to any purpose. We can test user’s status whether online or not by the graphical icon. The yellow icon marks the user is online, otherwise the gray one is displayed.
From the script above we can test user’s status. Watch this:
http://opi.yahoo.com/online?u=matt_cempreng
as we can see the format is: http://opi.yahoo.com/online?u=[Yahoo!_user_ID], insert it to the browser’s address bar and the web browser will display the status icon.

To get more verbose just add more variable: &m=g&t=2 to the script. The new script is like this:
http://opi.yahoo.com/online?u=matt_cempreng&m=g&t=2
Now we can see the bigger icon

So we can learn the script format.
http://opi.yahoo.com/online?u=[Yahoo!_user_ID] to get user’s status
&m=g to show user’s status graphical icon
&t=[number] to get various icon type by changing the [number] value
I change the value &m=g&t=8 the result is:
