Current location: Hot Scripts Forums » Programming Languages » PHP » [help] Yahoo Indicator


[help] Yahoo Indicator

Reply
  #1 (permalink)  
Old 07-12-08, 09:01 PM
asoekaya asoekaya is offline
New Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
[help] Yahoo Indicator

Hello everybody
iam ave a little problem with script...
i want to crete a yahoo indicator with my own image and 2 ID in one file script..
i use below script but not work (just show a lates ID) and if i create with one ID it work normaly. so now can you all repair this script until work with two ID.. do not say try use this sintaq cause i dont now much about scriptng this script i copy from someone website.. so please paste a script you have edited okey..

o yaa.. please create this script when showing result will be in the center automaticly

thanks u very much

PHP Code:

<?

/*status yahoo
Mahmudy Sayang Syafira
*/

if(ereg(basename (__FILE__), $_SERVER['PHP_SELF']))
{
header("HTTP/1.1 404 Not Found");
exit;
}

ob_start();
global 
$koneksi_db;

$yahooid "mudies_05";
$yahooid1 "mudy_dja04";

$ch curl_init("http://opi.yahoo.com/online?u=".$yahooid."&m=t");
$ch1 curl_init("http://opi.yahoo.com/online?u=".$yahooid1."&m=t");

curl_setopt($chCURLOPT_RETURNTRANSFER1);
$status curl_exec($ch,$ch1);

curl_close($ch,$ch1);
if(
$status == $yahooid.,$yahooid1." is NOT ONLINE"){

//tampilkan gambar offline
echo "<a href='ymsgr:sendIM?mudies_05'><img src='images/kingoff.png' border='0' alt='king Mahmudy' title='King Mahmudy' /></a>";

echo 
"<a href='ymsgr:sendIM?mudy_dja04'><img src='images/queenoff.png' border='0' alt='Queen Syafira' title='Queen Syafira' /></a>";
} elseif (
$status == $yahooid.,$yahooid1." is ONLINE"){

//tampilkan gambar online
echo "<a href='ymsgr:sendIM?mudies_05'><img src='images/kingon.png' border='0' alt='king Mahmudy' title='King Mahmudy' /></a>";

echo 
"<a href='ymsgr:sendIM?mudy_dja04'><img src='images/queenon.png' border='0' alt='Queen Syafira' title='Queen Syafira' /></a>";
}

$out ob_get_contents();
ob_end_clean();

?>

Last edited by Nico; 07-13-08 at 04:23 AM. Reason: Wrappers.
Reply With Quote
  #2 (permalink)  
Old 07-13-08, 04:23 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Thread moved to PHP forum section.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yahoo Stock dips 19% - start of hostile takeover dvduval The Lounge 6 05-06-08 09:31 AM
Import yahoo, msn, Gmail address book for particular yahoo, msn, Gmail Email Id srini_r_r PHP 1 07-20-06 02:52 AM
Get Listed in Yahoo Search roxxy The Lounge 0 07-12-06 12:53 AM
Search Engine Cloaker (Check out my SE crawls) absurdness General Advertisements 0 09-29-05 04:58 AM


All times are GMT -5. The time now is 07:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.