Feaured Profiles


Your profile here? Be featured now!

            


Custom YM Icon Status(PHP)

Contributed by >-Patrick-> on April 17th, 2009 Categories: Resources, Tricks and Tweaks 5,942 Views
1 Star2 Stars (+27 rating, 15 votes)
Loading ... Loading ...

Credit:
Nugra
Thnx to:
wordpress plugin (for status image online and offline)
Description:
With this trick your ym icon will be online/offline in php format which is highly recommended.

Instructions:
-First you gotta have a hosting site which php supported.(ripway,000webhost,700megs recommended).
-In you hosting site make a file called ym.php which contains:

<?php
$yahooid = “your id“;
$ch = curl_init(”http://opi.yahoo.com/online?u=”.$yahooid.”&m=t”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$status = curl_exec($ch);
curl_close($ch);
if($status == $yahooid.” is NOT ONLINE”){
//Display Offlinie image
echo “<img src=’url of offline icon‘ border=0/>”;
} elseif ($status == $yahooid.” is ONLINE”){
//Display Online image
echo “<a href=ymsgr:sendIM?$yahooid><img src=’url of online icon‘ border=0/></a>”;
}
?>

Please change text in blod with ur own ym icon status
red text : change with yuor email addres
green text : change with url your offline icon image
bold text : change with url your online image

Example for icon status:
your icon(Offline & Online):

Code:

http://i44.tinypic.com/34njo6t.png

Code:

http://i40.tinypic.com/n33tsh.png

You can put it in your Friendster profile in an image html format:

Code:

<img src="url of your ym.php>

Enjoy!
Preview: Put this in your browser:
http://nugra.comyr.com/ym.php





Credits to Friendstertalk.com for the CSS and JS codes.

Leave a Reply