Add YM Online Status on your site
It’s very easy to add YM Online status on your site just copy paste several codes, configure it to detect your YM!ID and it’s done.Use this code and replace my ID with yours (sendIM? and u=) and choose a graphic (t=) from 0 – 15.
<a href="ymsgr:sendIM?am3n_group"> <img src="http://opi.yahoo.com/online?u=am3n_group&m=g&t=14" border="0" /></a>
If you use WordPress or Joomla even better, there are plugin for those script.Wordpress users can use Yahoo Messenger Online Status and for Joomla can use JP Yahoo Messenger Status With Custom Image
But there is a catch, the visitor need to install Yahoo Messenger client on his/her PC and also need to have Yahoo ID. My friend at Rawabokor use another method, he is redirecting visitor to use YM WebMessenger chat with him. So visitor doesn’t have to install Yahoo Messenger on his/her PC but rather straight open up a new site, login with their Yahoo ID. and have a chat with you. Below is the code: (change with your id after target=)
<a href="http://messenger.yahoo.com/edit/send/?.target=am3n_group"><img src="http://opi.yahoo.com/online?u=am3n_group&m=g&t=14" border="0" /></a>
Now what if your visitor don’t have a Yahoo ID but you still want them to have a chat with you. Here’s the simple how-to you can follow:
1. Put this Javascript in your head section, it will open livechat.html on the center of the screen.Change am3n.net with your site.
<script type="text/javascript">
// custom size, centered popup
function custom_sized_centered_popup(width, height)
{
mypopup = window.open("http://am3n.net/livechat.html","PopupWindow",
"menubar=0,toolbar=0,resizable=1,width=" + width + ",height=" + height);
// calculate the center of the page
x = (screen.availWidth - width) / 2;
y = ((screen.availHeight - height) / 2);
// move to the center of the page
mypopup.moveTo(x, y);
}
</script>
2.Put this php script on your body, the place where you want the YM Status will show. Change $id with your YM ID and $online/$offline with your own picture/graphic showing that you are online or offline. You should create those picture by yourself.
You can also change the width and height of the popup window (410,490).
<a href="#" onClick="custom_sized_centered_popup(410, 490);">
<?php
$id = "am3n_group";
$online = "http://am3n.net/online.png";
$offline = "http://am3n.net/offline.png";
$buka = fopen("http://opi.yahoo.com/online?u=".$id."&m=t","r")
or die
("<img src='http://opi.yahoo.com/online?u=".$id."&m=g&t=2'/>");
while ($baca = fread( $buka, 2048 ))
{ $status .= $baca; }
fclose($buka);
if($status == $id." is ONLINE"){
echo "<img border=0 src='".$online."'/>";
} else {
echo "<img border=0 src='".$offline."'/>";
}
?>
</a>
3. Create livechat.html with content like below. You should get your own personal pingbox from Yahoo! Messenger Pingbox, replace below sample with what you get from Yahoo!
<object id="pingbox" type="application/x-shockwave-flash" data="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" width="400" height="480"> <param name="movie" value="http://wgweb.msg.yahoo.com/badge/Pingbox.swf" /> <param name="allowScriptAccess" value="always" /> <param name="flashvars" value="wid=PlBHMui6TjFTEEQgAp.hC7OsIWc-" /></object>
And for shortcut, you can generate a simple code on YMGen.com
There are many opensource script that can provide live chat feature for your site, like the famouse LiveZilla, but the fantastic of using Yahoo ID is that you can always online using your phone, Blackberry or just SMS. So you can provide 24×7 support (or chat
)
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.