Yahoo Messenger Online Status Plugin for WordPress

Now this plugin has its own page. For newer and more up to date information about this plugin, please refer to the new page.

Do you love telling everybody whether you are online or not by adding your Yahoo Messenger online status to your blog? If you do, you might have been familiar to these standard YM online status button:

online0.gif online1.gif online2.gif online3.gif online4.gif online5.gif

offline0.gif offline1.gif offline2.gif offline3.gif offline4.gif offline5.gif

Bored with these button?

For you, WordPress users, I’ve written a simple plugin which allows you to show your YM online status using your custom images, so you can make sure that your online status button looks good on your blog’s theme and layout. My Yahoo Messenger online status button on the sidebar of this blog is a simple example for this plugin. Of course, this is only an example. You can create better buttons on your own.

Interested? Just download the latest version of this plugin and put it on your blog

Latest stable version:

Installation and Usage:

  1. Decompress this plugin’s archive file. It contains a folder named ‘ym-online-status’
  2. Upload the folder into your plugins directory which is located by default in /wp-content/plugins/ After uploading this folder, you should have a structure like this: /wp-content/plugins/ym-online-status/[some files + folder]
  3. Go to your admin section and select Plugins menu. Activate this plugin from the panel.
  4. Now go to Options, select the YM Status submenu (you’ll find this new submenu after activating this plugin). Fill in the ‘Yahoo Messenger ID’ field with your yahoo id. If you’d like to enter some different ids, separate each id with a space (see further notes about using multiple yahoo ids). The ‘Text’ field on the options represents the value of ‘alt’ and ‘title’ attributes of your button. It will show up as a tooltip when you hover your mouse pointer on your button and where browsers doesn’t load your button image.
  5. Select your preferred YM status button to display.
  6. Click the ‘Update Options’ button.
  7. Enter this code into your theme file, in which your online status button will be displayed:<?php get_ym_status() ?>It’ll be nice to put it in your sidebar.php, but it is up to you where you would like it to be displayed. :)
  8. Congratulations! Now you have a unique YM online status button. :)

Using your own image

I have included some sample online status buttons which you could use on your blog. But if you’d like to use your own creation, please follow these steps:

  1. Prepare a pair of images. One is for showing the visitors that you are online, and the other one is for showing that you are offline. These paired image’s format and extension have to be identical. You can’t pair an online .jpg image with an offline .gif image. I also suggest that you use a pair of image with the same pixel dimension, although this isn’t a must.
  2. Name each of the images as online-[image_name].[extension] and offline-[image_name].[extension] As an example, you might want to name them as online-myimage.gif and offline-myimage.gif.
  3. Upload these images into this directory: /wp-content/plugins/ym-online-status/images/
  4. Get into the admin panel, select the Options menu and then the YM Status submenu. Select your custom images as your online status button just like you did before, and then click the Update Options button.

If you would like to share your custom images to WordPress communities, I would be glad to include them in this plugin, accompanied with the author’s credits and blog urls of course. :) Please send me your custom images via email: hudatoriq [at] gmail [dot] com. The images must be in PNG format, with 32 bits per pixel color depth (with 8 bit per pixel transparency).

Using multiple yahoo ids

If you want to display the online statuses of several yahoo ids, please follow these steps:

  • In the YM Status Option page, specify multiple yahoo ids in the field labeled ‘Yahoo Messenger ID’. Separate each ids with a space.
  • To display all these ids at once, simply use this function on your theme file: <?php get_ym_status('list') ?> This will display the YM status of the given ids in an unordered list format.

If it doesn’t fit your theme/layout, you can create your own HTML tags structure. Use this tags to show your custom image with link that executes Yahoo Messenger program when clicked:<a href='ymsgr:sendim?[yahoo_id]' title='[title text]'>
<img src='[weblog root]/wp-content/plugins/ym-online-status/image.php?id=[id number]' alt='[title text]' />

You should replace the value inside [ and ] as noted below:

  • [yahoo id] with your yahoo id/username
  • [title text] with your custom text that you will use as a tooltip
  • [weblog root] with your web log root url
  • [id number] with the number dengan urutan keberapa id tersebut ditulis dalam field ‘Yahoo Messenger ID’. Misalkan Anda mengisi id-id berikut: tono tini tina. Jika ingin menampilkan status online tina, ganti nilai ini dengan nomor 3. Jika ingin menampilkan status online tono, ganti dengan nomor 1.


Available translation file:

  • Bahasa Indonesia

Frequently Asked Questions

Can somebody else use my image URL to show their YM online status on other site/weblog?

Yes, they can, provided that you allow them by specifying their yahoo username in the Options panel. Otherwise, they won’t be able to do this. You actually are able to lend your friends some help by hosting their custom image status while they don’t have the ability to use it due to their bloghost service limitation. Just tell them to use this url as their image source: [your weblog url]/wp-content/plugins/ym-online-status/image.php?id=[id number]

Why does the button look bad on my blog? There is a rectangular gray background surrounding the button.

That’s probably due to incompatibility with your browser. The images included in this plugin is in PNG format. Besides storing color information, it also stores 256 level of transparency information for each pixel. It makes PNG image’s transparency look perfect on any background color. But unfortunately not all browser support this. If you use Internet Explorer prior to version 7.0, then you’ll have a good chance to face this problem. If you want your button to look fine in browsers that doesn’t support PNG’s transparency, try editing the image with some graphic editor. Remove the image transparency. Use your blog’s background color as your image’s background, then upload it back to your server.

How do I upload my custom images into the designated directory? I can’t find any upload panel to do this from the YM Status Options Menu

Unfortunately I haven’t provided a form to upload images from the Admin panel yet. You have to upload it via FTP or your web host file manager.

Copyright Notices

This YM Online Status plugin for WordPress is released under GPL (General Public License).

Yahoo!, Yahoo! Messenger, Yahoo! logo, and some smiley image taken from Yahoo! website or Yahoo Messenger software are registered trademark and properties of Yahoo! Inc. This plugin is not officially released nor supported by Yahoo! Inc. Yahoo! is not responsible for the usage of this plugin on your blog.

Version History

  • Jul 14 2007 – Version 0.2
    Bug repair – collision with other admin buttons named ‘submit’ that creates undesired update triggers
    Compatibility fixes with WordPress 2.0 regarding array serialization
    Auto redirection to configuration page after activation
    Automatically assign smile.png as the default status button after plugin activation
    Notification messages in configuration page
    Using WP’s built in ‘init’ hook to intercept user (admin) input (I should’ve done it earlier :) )
    Other minor changes (localizations, code cleaning, etc)
  • May 3 2007 – Version 0.1
    Now PHP 4 compatible (tested with PHP 4.3.11)
  • May 2 2007 – Version 0.1 Beta
    Initial release, still having problems with PHP 4.x.x

131 komentar pada “Yahoo Messenger Online Status Plugin for WordPress

  • Pingback: Koolsonic’s home sweet home

  • Pingback: Gambar2 Unik untuk Yahoo! Presence | Celoteh

  • 7 Juni 2008 pada 01:48

    Keren bos. Tapi apa bisa dipasang di blogspot ya bos, maklum newbe.
    Kalo status ym yang standard kadang gambarnya ga muncul kok bos walaupun berfungsi. Trims

  • 1 Juli 2008 pada 22:33

    wah, dari kemaren-kemaren nyari pluginya, baru hari ini bs nemu hehee.. coba dulu ah.
    thanks anyway

  • Pingback: Yahoo Messenger Status Plugin For WordPress : Internet’s Freedom

  • 15 Juli 2008 pada 00:10

    Plugin yang bagus :). Saya sudah coba dan jalan, walaupun di awal ada sedikit masalah, padahal dalam kondisi yang sama ketika dicoba di lokal tidak ada masalah.

    Akan tetapi ketika ditest di server asli gambar status tidak muncul, saat test pakai petunjuk untuk cek ../wp-content/plugins/ym-online-status/image.php, disitu ada pesan bahwa folder ym-online-status bermasalah karena writable by group. Lalu ketika saya rubah dari 777 ke 755, dan refresh sudah tidak ada masalah.

    Hmm bisa dikasih info gak kok permission 777 justru tidak bisa?

    Makasih banyak.

  • 19 Juli 2008 pada 19:08

    saya juga sudah buat dua versi, tapi tidak menggunakan wordpress, intinya sama seperti masnya ini…

    dua versi, satu pake fopen() yang jarang diperbolehkan di situs hosting tapi lebih cepet, satunya pake curl seperti masnya ini….

    pake fopen():

    PHP Code:

    yang ini pake curl
    PHP Code:

    ganti keyword “usernameanda” dengan ID yahoo anda….

    ganti offline dan online PNG/gif dengan gambar online dan offline karya anda sendiri…

    host ke suatu folder bernama apasaja.png dan beri nama php ini index.php,

    pengunaannya [img][img]

    segitu aja…

    contohnya punya saya ada di:

  • Pingback: Kang Iwan’s Web » Blog Archive » Wow, gambar YM Online Status Blogku lebih personalize euy

  • 3 September 2008 pada 19:51

    kereeeeeeennn…. saya akan coba…. trus tolong dong temen2 liat blog ku di trus komentarin dong.. aku msh baru belajar…

  • Pingback: Wow, gambar YM Online Status Blogku lebih personalize euy | Kang Iwan’s Web

  • Pingback: Wordpress Y! messengger status

  • 5 Januari 2009 pada 20:47

    [quote]tapi yang ganjil adalah statusnya selalu offline padahal saya sementara online . [/quote]

    – biasanya itu terjadi jika anda invis ke sebagian orang. –

    tapi yang lebih aneh lagi saya. di YM sudah online ke semua orang, tapi status di blog/website offline. dan ternyata, setelah dichek di vizgin malah invisible. aneh kan??

    YM gw: angga_purwana

  • 19 Januari 2009 pada 11:33

    wah boleh di coba nih, thank u . Nanti kalo error di kasih tau cara instalasinya ya .

  • 4 Februari 2009 pada 18:32

    Terima kasih pak bos.
    pluginnya aku pake di webku ya,
    walaupun kemarin waktu install sempat ada masalah di path imagenya. terpaksa aku modif dikit…

    matur suwun deh

  • 12 Februari 2009 pada 22:28

    Thanks buat sharingnya. Good posting

  • 15 Februari 2009 pada 13:37

    aku pakai plugin ym-online-status-0.3 yang di buat mas Huda untuk blog aku, mudah-mudahan belum ada masalah ( yang pake widgets)
    Sekarang aku lagi mencobanya untuk theme yang lain dengan setting manual (tanpa memakai widgets) yang aku jalankan di localhost dan berjalan dengan baik.

    Buat mas Huda thx ya.


  • 30 April 2009 pada 22:49

    Maaf mas Plugins posisinya di mana toh? apa harus yang berbayar yng keliatan plugins! Soalnya klo tak bikin manual! OL n OFF keliatan tapi begitu aq klik munculnya halaman tidak di temukan! Tolong mas! aq ndak paham bahasa inggris :D

  • 26 Mei 2009 pada 15:48

    Mas Huda, saya coba pasang plugin dari mas ke blog ku kok statusnya offline terus ya? padahal aku sudah online. aku udah ikuti saran2 dari coment yg ada diblog ini, tapi kok tetap gak bisa ya? kira2 apanya yang salah?mohon pencerahannya,mas.. Thanks

  • 18 Juni 2009 pada 14:18

    Mas Huda….mo tanya lagi donk. Lagi2 soal Offline status.

    di website saya, saya pasang 3 id YM. Awalnya sih ga ada masalah sama sekali. Tapi kenapa ya kini kok id bambang_saputra82 selalu “offline” walaupun sebenarnya online. Sedangkan 2 ID yang lain, normal2 saja. Dan bukan dengan widget dari mas huda saja. Kalau saya pakai widet ym status dari yg lain pun sama.

    Kira masalahnya dimana ya?? bagaimana memperbaikinya? Thx

  • Pingback: Yahoo Messenger Online Status Plugin for WordPress | my life my adventure|IT Resource

  • 30 Juni 2009 pada 05:05

    lama kenal mas Huda…………
    boleh konsultasi gak Dok?
    Maaf mas Plugins posisinya di mana toh? apa harus yang berbayar yng keliatan plugins!

  • 1 September 2009 pada 12:55

    Halo, saya coba pasang plugin ini di WP 2.8.4 malah bisa via widget. Cuma pas multiple YM ids, kok yg muncul cuma 1 image ya ? Thanks banget … Good Work

  • 14 Oktober 2009 pada 09:57

    makasih info pluginnya.. langsung dicoba pasang

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *