Yahoo id on lava

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

12 replies · 1,404 views · started 17 years ago · 1 min read

8 participants
riderz Lead · 975 posts #1

here are the code where u can see if your yahoo friends are online u can put this in yahoo.php file or just on the index

else if($action=="yahoo")
{
	$whonick = getnick_uid($who);
  $who = $_GET["who"];
  addonline(getuid_sid($sid),"Yahoo Id","index.php?action=$action");
  $uid = getuid_sid($sid);
   //////ALL LISTS SCRIPT <<
    if($page=="" || $page<=0)$page=1;
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM yahoo"));
    $num_items = $noi[0]; //changable
    $items_per_page= 10;
   $num_pages = ceil($num_items/$items_per_page);
    if(($page>$num_pages)&&$page!=1)$page= $num_pages;
    $limit_start = ($page-1)*$items_per_page;
  $sql = "SELECT id, uid, adresa, descriere FROM yahoo ORDER by id DESC LIMIT $limit_start, $items_per_page";
    echo "<p align=\"center\">";
      // alerte
  $uid = getuid_sid($sid);
 
          echo "<a href=\"index.php?action=adaugayahoo&sid=$sid\">(Add Yahoo Id)</a><br/>";
     echo "<p>";
     echo "<p align=\"left\">";
    $items = mysql_query($sql);
    echo mysql_error();
    if(mysql_num_rows($items)>0)
    {
    while ($item = mysql_fetch_array($items))
   {
    	 $descriere = parsepm($item[3], $sid);
     $bonick = getnick_uid($item[1]);
    $byview = ">->By: <a href=\"index.php?action=viewuser&sid=$sid&who=$item[1]\">".getsimbol($item[1])."$bonick</a>";
        if(candelbl($uid,$item[0]))
    {
      $dl = "|<a href=\"index.php?action=delbl&sid=$sid&bid=$item[0]\">[X]</a>";
    }else{
      $dl = "";
   }
    echo "<table><tr><td><a href=\"http://img.msg.yahoo.com/avatar.php?yids=$item[2]\"><img src=\"http://img.msg.yahoo.com/avatar.php?yids=$item[2]\" alt=\"avatar\" class=\"thumb\"/></a></td>
        <td class=\"vInfo\">
                <img src=\"http://mail.opi.yahoo.com/online?u=$item[2]&m=g&t=0\" alt=\"\" height=\"12\" width=\"12\"/> <small><b><font color=\"#88CC00\">$item[2]</font></b>$byview</small> <br/>
	<small>$descriere</small>$dl
                </td></tr></table>";
      //  echo "$lnk";
    }
    }
    echo "</p>";
    echo "<p align=\"center\">";
   if($page>1)
    {
      $ppage = $page-1;
      echo "<a href=\"index.php?action=$action&page=$ppage&sid=$sid&view=$view\">«Back</a> ";
    }
    if($page<$num_pages)
    {
      $npage = $page+1;
      echo "<a href=\"index.php?action=$action&page=$npage&sid=$sid&view=$view\">Next»</a>";
    }
    echo "<br/>$page/$num_pages<br/>";
    if($num_pages>2)
    {
       $rets = "<form action=\"index.php\" method=\"get\">";
       $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
       $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
       $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
       $rets .= "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
       $rets .= "<input type=\"hidden\" name=\"view\" value=\"$view\"/>";
       $rets .= "<input type=\"submit\" value=\"Go to page\"/>";
       $rets .= "</form>";
        echo $rets;
    }
    echo "</p>";
  ////// UNTILL HERE >>
    echo "<p align=\"center\">";
 echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"\"/>Home</a>";
 echo "</p>";
}
 else if($action=="adaugayahoo")
{
   addvisitor();
  addonline(getuid_sid($sid),"Add Yahoo Id","index.php?action=$action");
   echo "<p align=\"center\">";
    if(getplusses(getuid_sid($sid))<75)
    {
        echo "You must have 75 credits you can add an id!";
    }else{
	 // alerte
  $uid = getuid_sid($sid);
         echo "<form action=\"index.php?action=aadaugayahoo&sid=$sid\" method=\"post\">";
    echo "Id yahoo:<input name=\"adresa\" maxlength=\"30\"/><br/>";
    echo "Description:<input name=\"descriere\" maxlength=\"10000\"/><br/>";
echo "<input type=\"submit\" value=\"Add\"/>";
echo "</form><br/>";
}
    echo "<br/><br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"\"/>Home</a>";
   echo "</p>";
  
}
else if($action=="delbl")
{
   $bid = $_GET["bid"];
  addonline(getuid_sid($sid),"delete id","");
    
  echo "<p align=\"center\">";
 if(candelmd(getuid_sid($sid), $bid))
  {
    $res = mysql_query("DELETE FROM yahoo WHERE id='".$bid."'");
    if($res)
       {
            echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>Id Deleted<br/>";
        }else{
         echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Error!<br/>";
       }
  }else{
   echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>You can remove this meditation";
 }
  echo "<br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"\"/>Home</a>";
  echo "</p>";
}
  else if($action=="aadaugayahoo")
{
  $adresa = $_POST["adresa"];
  $descriere = $_POST["descriere"];
  //$qut = $_POST["qut"];
  addonline(getuid_sid($sid),"Maximum add","");
   
      echo "<p align=\"center\">";
      $crdate = time();
      //$uid = getuid_sid($sid);
     $res = false;
     if((trim($descriere)!="")&&(trim($adresa)!=""))
     {
     $res = mysql_query("INSERT INTO yahoo SET uid='".$uid."', adresa='".$adresa."', descriere='".$descriere."'");
      }
     if($res)
      {
       echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Id Added";
      }else{
       echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error !!!";
      }
      echo "<br/><br/>";
      echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
   
}

usage

       $noi=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM yahoo"));
echo "<a href=\"index.php?action=yahoo&sid=$sid\">»Yahoo Id($noi[0])</a><br/>";

and core

///////////////////////////////
function getsimbol($uid)
 {
 $info= mysql_fetch_array(mysql_query("SELECT perm, plusses FROM ibwf_users WHERE id='".$uid."'"));
  if(isbanned($uid))
  {
    return "(x)";
  }
  if($info[0]=='4')
  {
   return "©";
  }else  if($info[0]=='3')
 {
    return "¹";
  }else if($info[0]=='2')
  {
    return "²";
  }else if($info[0]=='1')
  {
    return "³";
  }else{
     if($info[1]<10)
   {
     return ".";
    }else if($info[1]<50)
    {
       return "+";
    }else if($info[1]<125)
    {
       return "*";
    }else if($info[1]<500)
    {
       return "ª";
    }else if($info[1]<4000)
    {
        return "±";
    }else if($info[1]<6000)
    {
        return "§";
    }else if($info[1]<10000)
    {
        return ":D";
    }else
   {
        return "¤";
    }
  }
}
//////////////////////////////////////////////////////////
function candelmd($uid,$bid)
  {
    $minfo = mysql_fetch_array(mysql_query("SELECT bowner FROM lirmeditatii WHERE id='".$bid."'"));
    if(ismod($uid))
    {
      return true;
    }
    if($minfo[0]==$uid)
    {
      return true;
    }
    return false;
  }

sql

--
-- Table structure for table `yahoo`
--

CREATE TABLE IF NOT EXISTS `yahoo` (
  `id` int(100) NOT NULL auto_increment,
  `uid` int(100) NOT NULL default '0',
  `adresa` varchar(100) NOT NULL default '',
  `descriere` varchar(150) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;

--
-- Dumping data for table `yahoo`
--
-- Table structure for table `lirmeditatii`
--

CREATE TABLE IF NOT EXISTS `lirmeditatii` (
  `id` int(100) NOT NULL auto_increment,
  `bowner` int(100) NOT NULL default '0',
  `bname` varchar(30) NOT NULL default '',
  `btext` blob NOT NULL,
  `bgdate` int(100) NOT NULL default '0',
  PRIMARY KEY  (`id`),
  UNIQUE KEY `bname` (`bname`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

--
-- Dumping data for table `lirmeditatii`
--

Lol now i hope u guys can share sumthing nice with me too😊

and dont forget to say tanx


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #4

can u please check if u can make msn also work like this it would be gr8


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

anderson Developer · 146 posts #6

Can u code it for facebook? @ riders

Wait...

robzky Developer · 205 posts #7

hmm.. Nice one! Thanks for sharing..

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

riderz Lead · 975 posts #9

ive tested the yahoo registered at yahoo and it works nice now just for msn and skype hehe


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

malaysiawap Junior · 14 posts #11
$yid = "hello@yahoo.com";
$url="http://opi.yahoo.com/online?u=$yid";

$request=file_get_contents($url);
if(strlen($request)==140){
echo "</p>";
echo "<p align=\"center\">";
echo "<b>$yid YM</b>";
echo "<br/>";
echo "<img src=\"http://opi.yahoo.com/online?u=$yid&m=g&t=14&l=us\" alt=\"$yid Online\"/>";
echo "<br/>";
echo "<img src=\"http://img.msg.yahoo.com/avatar.php?yids=$yid\" alt=\"Avatar\"/>";
echo "<br/>";
echo "<a href=\"http://img.msg.yahoo.com/avatar.php?yids=$yid\">Download Avatars</a>";
echo "<br/><br/>";
echo "<a href=\"ymsgr:sendim?$yid\">Send IM</a> | <a href=\"http://profiles.yahoo.com/$yid\">Profiles</a>";
echo "<br/>";
echo "<a href=\"ymsgr:addfriend?$yid\">Add as Friends</a> | <a href=\"ymsgr:call?$yid\">Call</a>";
}else{
echo "</p>";
echo "<p align=\"center\">";
echo "<b>$yid YM</b>";
echo "<br/>";
echo "<img src=\"http://opi.yahoo.com/online?u=$yid&m=g&t=14&l=us\" alt=\"$yid Offline\"/>";
echo "<br/>";
echo "<img src=\"http://img.msg.yahoo.com/avatar.php?yids=$yid\" alt=\"Avatar\"/>";
echo "<br/>";
echo "<a href=\"http://img.msg.yahoo.com/avatar.php?yids=$yid\">Download Avatars</a>";
echo "<br/><br/>";
echo "<a href=\"ymsgr:sendim?$yid\">Send IM</a> | <a href=\"http://profiles.yahoo.com/$yid\">$yid Profiles</a>";
echo "<br/>";
echo "<a href=\"ymsgr:addfriend?$yid\">Add as Friends</a> | <a href=\"ymsgr:call?$yid\">Call</a>";
}
sharil Junior · 44 posts #12

Butt0n for next n previous are n0t working

-PeaCe-

ewanz Developer · 187 posts #13

Lol, awk leh fix je.. Huhu..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close