masters!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    masters!!!

    masters......I have questions about making the profile private,,,I have followed the instructions...but when I view profiles it says that
    >>>code profile<<<
    Privacy Profile !!! This profile can only see members with a list of friends and members of the Administration..but still users can see the whole profile...with that sentence....pls,,,teach me how to fix it,,or post here ur version of private profile

    #2
    Query diz sQL c0de
    PHP Code:
    ALTER TABLE `ibwf_usersADD `privateprochar(1NOT NULL default '0' 
    In core.php
    PHP Code:
    function isprivatepro($uid)
    {
      
    $priv mysql_fetch_array(mysql_query("SELECT privatepro FROM ibwf_users WHERE id='".$uid."'"));
      if(
    $priv[0]==1)
      {
        return 
    true;
      }else{
        return 
    false;
      }

    then diz, in profile..juz modify..haizt! just simple..use ur head huh?No m0re questi0ns..
    PHP Code:


    if($mime=="xhtml")


    {


    echo 
    "<table border=\"0\" width=\"99%\" cellspacing=\"0\" cellpadding=\"0\" class=\"boxed\" align=\"center\">";


    echo 
    "<tr><td class=\"boxedTitle\" height=\"20\"><h1 align=\"center\" class=\"boxedTitleText\">".$whonick."</h1></td></tr>";


    echo 
    "<tr><td class=\"boxedContent\">";


    echo 
    startcenter($mime);


    }else{


    echo 
    startcenter($mime);


    echo 
    "<b>".$whonick."</b><br/>";


    }


    if(
    $lastloc=="cht")


    {


    $rid $_GET["rid"];


    $rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));


        
    $rname $rooms[1];


    }


      if(
    $whonick!="")


      {


    if(
    isadmin($uid))


      {


      echo 
    "<a href=\"admincp?action=user&amp;who=$who\">*Admin Tools*</a><br/>";


      }


    if(
    ismod($uid))


      {


      echo 
    "<a href=\"modcp?action=user&amp;who=$who\">*Moderator Tools*</a><br/>";


      }


    $viewed mysql_fetch_array(mysql_query("SELECT viewed FROM lastview WHERE whonick='".$whonick."' AND lastview='".getnick_uid($uid)."'"));


    if(
    $who=="$uid")


    {


    echo 
    "";


    }else if(
    $viewed[0]==1)


    {


      
    mysql_query("UPDATE lastview SET ltime='".time()."' WHERE lastview='".getnick_uid($uid)."' AND whonick='".$whonick."'");


    }else{


    if(
    $uid!=OR $uid!="")


    {


      
    mysql_query("INSERT INTO lastview SET lastview='".getnick_uid($uid)."', whonick='".$whonick."', ltime='".time()."', viewed='1'");


    }


    }


     
    $sql mysql_fetch_array(mysql_query("SELECT lastview, ltime FROM lastview WHERE whonick='".$whonick."' ORDER BY ltime DESC LIMIT 1"));


    $count mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lastview WHERE whonick='".$whonick."'"));


    $b getuid_nick($sql[0]);


    $link "<a href=\"profile-$b\">$sql[0]</a>";


    if(
    $count[0]>0)


    {


    echo 
    "Who's Viewed Me: $link - ";


    echo 
    date("dMy - g:i:s a");


    if(
    $count[0]>1)


    {


    echo 
    " [<a href=\"profile?action=proviewer&amp;who=$who\">+</a>]";


    }


    }


     
    $noi mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'"));


    $timeon mysql_fetch_array(mysql_query("SELECT timeon FROM ibwf_users WHERE id='".$who."'"));


      
    $var1 date("g:i:s a",$noi[0]);


      
    $var2 time();


      
    $var21 date("g:i:s a");


      
    $var3 $var21 $var1;


      
    $var4 date("s",$var3);


      
    $remain time() - $noi[0];


      
    $idle gettimemsg($remain);


      
    $ton gettimemsg($timeon[0]);


    if(
    $idle=="")


    {


    echo 
    "<br/>";


    }else{


      echo 
    "<br/>Idle For: $idle<br/>";


     }


    if(
    $ton=="")


    {


    echo 
    "";


    }else{


    echo 
    "Time Online: ".gettimemsg($timeon[0])."<br/>";


    }


      
    $wer mysql_fetch_array(mysql_query("SELECT place, placedet from ibwf_online WHERE userid='".$who."'"));


    if(
    $wer[1]=="")


    {


      echo 
    "";


      }else{


      echo 
    "Action/Where: $wer[0] [<a href=\"$wer[1]\">go there, too!</a>]<br/>";


      }


     if(
    $who==$uid)


     {


     echo 
    "<a href=\"index-uset\">*Edit My Profile*</a><br/>";


        }


    if(
    isonline($who))


    {


     echo 
    "[ ".$whonick." is online ]<br/>";


      }else{


     echo 
    "[ ".$whonick." is offline ]<br/>";


      }


      
    $avlink getavatar($who);


    $av basename($avlink); 


      if(
    $avlink=="")


      {


      echo 
    "<img src=\"image?src=images/nopic.jpg&amp;h=120&amp;w=120\" alt=\"No Photo\"/><br/>";


      }else if(
    preg_match("/usergallery/i"$avlink))


    {


    echo 
    "<a href=\"image?src=avats/$av&amp;h=120&amp;w=120\"><img src=\"image?src=usergallery/$av&amp;h=120&amp;w=120\" alt=\"Download Image\"/></a><br/>";


    }else if(
    preg_match("/avats/i"$avlink))


    {


    echo 
    "<a href=\"image?src=avats/$av&amp;h=120&amp;w=120\"><img src=\"image?src=avats/$av&amp;h=120&amp;w=120\" alt=\"Download Image\"/></a><br/>";


    }else{


      echo 
    "<img src=\"image?src=images/nopic.jpg&amp;h=120&amp;w=120\" alt=\"No Photo\"/><br/>";


      }



      
    $nopl mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'"));


      
    $sign parse_xsite($nopl[0]);


      echo 
    "&quot;".$sign."&quot;<br/>";


    if((
    isprivatepro($who)) && (!arebuds($uid$who)) && ($who!=$uid))


    {


    if(
    $mime=="xhtml")


    {


    echo 
    "<font color=\"red\">Private Profile</font><br/>[ Restricted to $whonick's friends only ]<br/>";


    }else{


    echo 
    "Private Profile<br/>[ Restricted to $whonick's friends only ]<br/>";


    }


    }


    if(
    $uid!=OR $uid!="")


    {


      if(
    budres($uid$who)==0)


      {


        echo 
    "<a href=\"genproc?action=bud&amp;who=$who&amp;todo=add\">Send Friend Request</a><br/>";


      }else if(
    budres($uid$who)==1)


      {


        echo 
    "(Queued Friend Request)<br/>";


      }else if(
    budres($uid$who)==2)


      {


        echo 
    "<a href=\"genproc?action=bud&amp;who=$who&amp;todo=del\">Remove from Friends List</a><br/>";


      }


      if(
    arebuds($uid$who))


      {


      echo 
    "<a href=\"inbox?action=sendpopup&amp;who=$who\">Send Pop-Up Msg</a><br/>";


      }


      echo 
    "<a href=\"inbox?action=sendto&amp;who=$who\">Send Private Msg</a><br/>";


    }


      
    $ires ignoreres($uid$who);


    if(
    $ires==1)


      {


        echo 
    "<a href=\"genproc?action=ign&amp;who=$who&amp;todo=add\">Ignore User</a><br/>";


      }


      if(
    isignored($who$uid))


      {


        echo 
    "<a href=\"genproc?action=ign&amp;who=$who&amp;todo=del\">UnIgnore User</a><br/>";


      }


    if((!
    isprivatepro($who)) OR (arebuds($uid$who)) OR ($who==$uid))


    {


    echo 
    endcenter($mime);


    echo 
    "<a href=\"uinfo?who=$who\">More About Me</a><br/>";


      echo 
    "Status: ".getstatus($who)."<br/>";


      
    $nopl mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id='".$who."'"));


      echo 
    "Member's ID: $who<br/>";


      
    $nopl mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM ibwf_users WHERE id='".$who."'"));


      
    $uage getage($nopl[1]);


      if(
    $nopl[0]=='M')


      {


        
    $usex "Male";


      }else if(
    $nopl[0]=='F')


    {


        
    $usex "Female";


      }else{


        
    $usex "Not set!";


      }


      
    $nopl[2] = htmlspecialchars($nopl[2]);


      echo 
    "Age: $uage<br/>";


      echo 
    "Sex: $usex<br/>";


      echo 
    "Location: ".parse_xsite($nopl[2])."<br/>";


    echo 
    "E-mail Address: ".ishidden($who)."<br/>";


      
    $nopl mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id='".$who."'"));


      
    $jdt date("dMy - l, g:i:s a",$nopl[0]);


      echo 
    "Member Since: $jdt<br/>";


      
    $membrage time() - $nopl[0];


      
    $membrage gettimemsg($membrage);


      echo 
    "Member For: $membrage<br/>";


      
    $nob mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_buddies WHERE (uid='".$who."' OR tid='".$who."') AND agreed='1'"));


      echo 
    "Buddies: $nob[0]<br/>";


      
    $nopl mysql_fetch_array(mysql_query("SELECT ipadd, browserm FROM ibwf_users WHERE id='".$who."'"));


      echo 
    "Current Browser: $nopl[1]<br/>";


      echo 
    "Current IP: <a href=\"lists.php?action=byip&amp;sid=$sid&amp;who=$who\">$nopl[0]</a><br/>";


    $IPaddress $nopl[0];


    $two_letter_country_code iptocountry($IPaddress);


    echo 
    "IP Location: <img src=\"flags/$two_letter_country_code.gif\" alt=\"*\"/> ".country_name($two_letter_country_code)."<br/>";


      
    $unol mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE authorid='".$who."'"));


      
    $tlink "<a href=\"lists.php?action=tbuid&amp;sid=$sid&amp;who=$who\">$unol[0]</a>";


      
    $unop mysql_fetch_array(mysql_query("SELECT posts FROM ibwf_users WHERE id='".$who."'"));


      
    $unol mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE uid='".$who."'"));


      
    $plink "<a href=\"lists.php?action=uposts&amp;sid=$sid&amp;who=$who\">$unol[0]</a>";


      echo 
    "Forum Subscription: Topics: $tlink, Posts: $plink/$unop[0]<br/>";


      
    $noin mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."'"));


      
    $nout mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE byuid='".$who."'"));
      echo 
    "PMs Received: $noin[0]<br/>";
      echo 
    "PMs Sent: $nout[0]<br/>";
            
    $fpm mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND byuid='".$uid."' AND unread='1'"));
          
    $upm mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND unread='1'"));
      echo 
    "Unread PMs: $upm[0]$fpm[0] from you<br/>";
     
    $nopl mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
    $bpl mysql_fetch_array(mysql_query("SELECT bank FROM ibwf_users WHERE id='".$who."'"));
    if(
    $bpl[0]>0)
    {
    echo 
    "Bank Credits: $bpl[0]<br/>";
    }else{
    echo 
    "";
    }  echo 
    "Plusses: $nopl[0]<br/>";
      
    $nopl mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$who."'"));
      echo 
    "Chat Posts: $nopl[0]<br/>";
      
    $nopl mysql_fetch_array(mysql_query("SELECT battlep FROM ibwf_users WHERE id='".$who."'"));
      echo 
    "Battle Points: $nopl[0]<br/>";
      
    $nout mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shouter='".$who."'"));
      
    $nopl mysql_fetch_array(mysql_query("SELECT shouts FROM ibwf_users WHERE id='".$who."'"));
      echo 
    "Shouts: <a href=\"lists.php?action=shouts&amp;sid=$sid&amp;who=$who\">$nout[0]</a>/$nopl[0]<br/>";
      
    $nopl mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'"));
      
    $jdt date("dMy - l, g:i:s a",$nopl[0]);
      echo 
    "Last Active: $jdt<br/>";
      
    $nopl mysql_fetch_array(mysql_query("SELECT lastvst FROM ibwf_users WHERE id='".$who."'"));
      
    $jdt date("dMy - l, g:i:s a",$nopl[0]);
      echo 
    "Last Visit: $jdt<br/>"
    i can't p0st longer c0z i use mobile and operamini..juz modify it..End with correct/proper braces..
    Last edited by kiLLeR-eyEd_14; 06.09.09, 08:10.
    My Blog: http://jhommark.blogspot.com
    My Facebook: http://www.facebook.com/jhommark
    My Official Site: http://www.undergroundweb.tk
    My Community Site: http://undergroundwap.xtreemhost.com

    Comment


      #3
      PHP Code:
      /////////////////////////////////viewuser profile

      else if($action=="viewuser")
      {
      mysql_query("UPDATE ibwf_users SET pid='1' WHERE id='".getuid_sid($sid)."'");
        
      addonline(getuid_sid($sid),"Viewing Users Profile","index.php?action=viewuser&amp;who=$who");
        echo 
      "<p align=\"left\">";
        
      $uid getuid_sid($sid);
      if(
      $who!=$uid)
              {
       
      mysql_query("INSERT INTO ibwf_view SET byuid='".$uid."', touid='".$who."', actime='".time()."'");
      }
       if(
      $who==""||$who==0)
        {
          
      $mnick $_POST["mnick"];
          
      $who getuid_nick($mnick);
        }
        
      $whonick getnick_uid($who);
        if(
      $whonick!="")
        {
        echo 
      "$whonick's Profile<br/>";
        
        if(
      cansee(getuid_sid($sid), $who))
        {
          echo 
      "<small>";
          
      $unol mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$who."'"));
          if(
      $unol[0]!="")
          {
            echo 
      "Last Penalty Reason: $unol[0]<br/>";
          }
          
      $unol mysql_fetch_array(mysql_query("SELECT lastplreas FROM ibwf_users WHERE id='".$who."'"));
          if(
      $unol[0]!="")
          {
            echo 
      "Last Plusses Reason: $unol[0]<br/>";
          }
          echo 
      "</small>";
        }
          if(
      isonline($who))
        {
        
      $uact "Location: ";
          
      $plc mysql_fetch_array(mysql_query("SELECT place FROM ibwf_online WHERE userid='".$who."'"));
          
         
      $uact .= $plc[0];
       
        }else{
          
      $uact "Last Action: ";
          
      $ladt mysql_fetch_array(mysql_query("SELECT place FROM ibwf_users WHERE id='".$who."'"));
          
      $uact .= $ladt[0];
        }
        echo 
      "$uact ";
       if(
      gohere($who))
          {

       
      $plclnk mysql_fetch_array(mysql_query("SELECT placedet FROM ibwf_online WHERE userid='".$who."'"));
         
        echo 
      " <a href=\"$plclnk[0]&amp;sid=$sid\">go here</a><br/>";
           
          }else{
             echo 
      "<br/>";
          }
       
      $avlink getavatar($who);
        echo 
      "<img src=\"$avlink\" alt=\"avatar\"/>";

        echo 
      "<small>";
        echo 
      "<br/>Member's ID: <b>$who</b><br/>";
        echo 
      "Status: <b>".getstatus($who)."</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM ibwf_users WHERE id='".$who."'"));
        
      $uage getage($nopl[1]);
        if(
      $nopl[0]=='M')
        {
          
      $usex "Male";
        }else if(
      $nopl[0]=='F'){
          
      $usex "Female";
        }else{
          
      $usex "Shemale";
        }
        
      $nopl[2] = htmlspecialchars($nopl[2]);
        echo 
      "A/S/L: <b>$uage/$usex/$nopl[2]</b><br/>";
        
      $uipadd mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "<Ako ay: <b>CERTIFIED BETARIAN!</b>";
        
      $unol mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE authorid='".$who."'"));
        
      $tlink "<a href=\"lists.php?action=tbuid&amp;sid=$sid&amp;who=$who\">$unol[0]</a>";
        echo 
      "<br/>Topics: <b>$tlink</b><br/>";
        
      $unop mysql_fetch_array(mysql_query("SELECT posts FROM ibwf_users WHERE id='".$who."'"));
        
      $unol mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE uid='".$who."'"));
        
      $plink "<a href=\"lists.php?action=uposts&amp;sid=$sid&amp;who=$who\">$unol[0]</a>";
        echo 
      "Posts: <b>$plink/$unop[0]</b><br/>";
        
      $nopm mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$who."' AND unread='1'"));
        
      $pms=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND byuid='".$uid."' AND touid='".$who."'"));
        echo 
      "Unread PMs: $nopm[0]$pms[0] from yours  <br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Plusses: <b>$nopl[0]</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Game. Plusses: <b>$nopl[0]</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Chat Posts: <b>$nopl[0]</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT battlep FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Battle Points: <b>$nopl[0]</b><br/>";
        
      $judg mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".$who."'"));
        if(
      $judg[0]>0)
        {
          echo 
      "<b>Battle Board Judge</b><br/>";
        }
        
      $nout mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shouter='".$who."'"));
        
      $nopl mysql_fetch_array(mysql_query("SELECT shouts FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Shouts: <b><a href=\"lists.php?action=shouts&amp;sid=$sid&amp;who=$who\">$nout[0]</a>/$nopl[0]</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT regdate FROM ibwf_users WHERE id='".$who."'"));
        
      $jdt date("d m y-H:i:s",$nopl[0]);
        echo 
      "Joined PA: <b>$jdt</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'"));
        
      $jdt date("d m y-H:i:s",$nopl[0]);
        echo 
      "Last Active: <b>$jdt</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT lastvst FROM ibwf_users WHERE id='".$who."'"));
        
      $jdt date("d m y-H:i:s",$nopl[0]);
        echo 
      "Last Visit: <b>$jdt</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT browserm FROM ibwf_users WHERE id='".$who."'"));
        echo 
      "Browser: <b>$nopl[0]</b><br/>";
        
      $nopl mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'"));
        
      $nopl mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'"));
        
      $sign parsepm($nopl[0], $sid);
        echo 
      "Signature: $sign<br/>";
       
        
      $weekago time();
          
      $weekago -= 1*24*60*60;
           
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT byuid)  FROM ibwf_view WHERE touid='".$who."' AND actime>'".$weekago."';"));
      echo 
      "No. of times profile viewed today: $noi[0]<br/>";
       if(
      ismod(getuid_sid($sid)))
         {
           
      $uipadd mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
           echo 
      "IP:<a href=\"lists.php?action=byip&amp;sid=$sid&amp;who=$who\">$uipadd[0]</a><br/>";
           
      $nob mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_buddies WHERE (uid='".$who."' OR tid='".$who."') AND agreed='1'"));
           echo 
      "Buddies: $nob[0]<br/>";
         }
        echo 
      "</small>";
       
        
      $weekago time();
          
      $weekago -= 1*24*60*60;
           
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT byuid)  FROM ibwf_view WHERE touid='".$who."' AND actime>'".$weekago."';"));
        if(
      cansee(getuid_sid($sid), $who))
        {
      if(
      $noi[0]>0)
         {
            echo 
      "<a href=\"info.php?action=views&amp;who=$who&amp;sid=$sid&amp;browse?\">Who viewed me!</a><br/>";
        }
       }
        echo 
      "<a href=\"inbox.php?action=sendpm&amp;who=$who&amp;sid=$sid\">Send PM</a><br/>";
        echo 
      "<a href=\"index.php?action=rpg&amp;who=$who&amp;sid=$sid\">Challenge</a><br/>";
      echo 
      "<a href=\"index.php?action=shares&amp;who=$who&amp;sid=$sid\">Share +s</a><br/>";
       echo 
      "<a href=\"lists.php?action=viewuser&amp;who=$who&amp;sid=$sid\">View gallery</a><br/>";
      $uid getuid_sid($sid);
        if(
      budres($uid$who)==0)
        {
          echo 
      "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=add\">Add to buddy list</a><br/>";
        }else if(
      budres($uid$who)==1)
        {
          echo 
      "Buddy request in the queue<br/>";
        }else if(
      budres($uid$who)==2)
        {
          echo 
      "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=del\">Remove From buddy list</a><br/>";
        }
        
      $ires ignoreres($uid$who);
        if(
      es==2)
        {
          echo 
      "<a href=\"genproc.php?action=ign&amp;who=$who&amp;sid=$sid&amp;todo=del\">Remove From Ignore list</a><br/>";
        }else if(
      $ires==1)
        {
          echo 
      "<a href=\"genproc.php?action=ign&amp;who=$who&amp;sid=$sid&amp;todo=add\">Add to Ignore list</a><br/>";
        }
      echo 
      "<a href=\"uinfo.php?who=$who&amp;sid=$sid\">More Information</a><br/>";
        echo 
      "<a href=\"users?$whonick\">$whonick's Personal Wap Site</a>";
        echo 
      "<br/><a href=\"index.php?action=givegp&amp;who=$who&amp;sid=$sid\">Give GP</a><br/>";
       
      $noi mysql_fetch_array(mysql_query("SELECT pollid FROM ibwf_users WHERE id='".$who."'"));
         if(
      $noi[0]>0)
         {
         echo 
      "<a href=\"index.php?action=viewpl&amp;who=$who&amp;sid=$sid\">Poll</a><br/>";
       }
       
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$who."'"));
         if(
      $noi[0]>0)
         {
         echo 
      "<a href=\"lists.php?action=ucl&amp;who=$who&amp;sid=$sid\">Clubs($noi[0])</a><br/>";
       }
       
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."'"));
         if(
      $noi[0]>0)
         {
         echo 
      "<a href=\"lists.php?action=clm&amp;who=$who&amp;sid=$sid\">Member In $noi[0] Clubs</a><br/>";
         }
         
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'"));
         if(
      $noi[0]>0)
         {
         echo 
      "<a href=\"lists.php?action=blogs&amp;who=$who&amp;sid=$sid\">Blogs($noi[0])</a><br/>";
       }
       
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'"));
         if(
      $noi[0]>0)
         {
         echo 
      "<a href=\"lists.php?action=vault&amp;who=$who&amp;sid=$sid\">Vault($noi[0])</a><br/>";
         }
         
      $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'"));
         echo 
      "<a href=\"lists.php?action=gbook&amp;who=$who&amp;sid=$sid\">Guestbook($noi[0])</a><br/>";
         
      $judg mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".getuid_sid($sid)."'"));
         if(
      ismod(getuid_sid($sid))||$judg[0]>0)
         {
          echo 
      "<a href=\"index.php?action=batp&amp;who=$who&amp;sid=$sid\">Battle Points</a><br/>";
         }
         if(
      ismod(getuid_sid($sid)))
         {
           echo 
      "<a href=\"modcp.php?action=user&amp;who=$who&amp;sid=$sid&amp;who=$who\">Mod CP</a><br/>";
         }
         }else{
           echo 
      "<img src=\"images/notok.gif\" alt=\"X\"/> Member does not exist<br/>";
         }
        echo 
      "<br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
      echo 
      "Home</a>";
        echo 
      "</p>";
        echo 
      "</body>";


      <br/> heres my action=viewuser pls convert it with the script above,,tnx

      Comment


        #4
        cedwap just look at the post i made there are the option to make ur profile gallery and inbox private the code are in coding zone

        Comment


          #5
          Hey bro i face problem my user profile show private . .i cant c ny user profile how i remove private function in profile nd view my user pro , plz help me.

          Comment


            #6
            post your code here m8 i will help u
            E107 Security Team Leader
            Proudly Support AccountLab Plus Billing Software

            Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
            ------------------

            Comment


              #7
              this is what i got for wapdesire v2.

              this is the profile.php

              Code:
              <?php
              define('WCS',true);
              include('./core/main.inc');
              header_type();
              cleardata();
              if(ipbanned(ip(),browser())){
              if(!shield(getuid_sid($sid))){
              echo head_tag("Ip Blocked!!!",0,0);
              echo ipbanned_msg();
              echo foot_tag();
              exit();
              }
              }
              if(!islogged($sid)){
              echo head_tag("Error!!!",0,0);
              echo session_expired();
              echo foot_tag();
              exit();
              }
              if(banned(getuid_sid($sid))){
              echo head_tag("Error!!!",1,getnick_sid($sid));
              echo banned_msg($sid);
              echo foot_tag();
              exit();
              }
              if($pass!=""){$pw="&amp;pass=$pass";}
              if($rid!=""){
              $rooms=mysql_fetch_array(mysql_query("SELECT id, name FROM chatrooms WHERE id='".$rid."'"));
              $rname=$rooms[1];
              $chatlink="&amp;rid=$rid$pw";
              }
              mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
              
              /////////////////////////VIEW PROFILE/////////////////////////
              
              
              if($usersbyip==1)
              {
              $nick=getnick_uid($who);
              if(getuid_sid($sid)==$who)$nick="My";
              addonline(getuid_sid($sid),"Viewing $nick Profile","");
              echo head_tag(getnick_sid($sid)."@View Profile",1,getnick_sid($sid));
              $title="<b>Users By Ip/Browser</b>";
              $main="<p align=".align().">\n";
              if(user_info(getuid_sid($sid))){
              $main.="This shows a list of usernames that match the same ip and browser<br/>
              IT IS ONLY A GUIDE and is not 100% accurate<br/>
              <br/>\n";
              $whoinfo=mysql_fetch_array(mysql_query("SELECT ipaddress, browser FROM users WHERE id='".$who."'"));
              if($page==""||$page<=0)$page=1;
              $num_items=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM users WHERE ipaddress='".$whoinfo[0]."' AND browser='".$whoinfo[1]."'"));
              $items_per_page=10;
              $num_pages=ceil($num_items[0]/$items_per_page);
              if($page>$num_pages)$page=$num_pages;
              $limit_start=($page-1)*$items_per_page;
              $sql="SELECT id, username FROM users 
              WHERE ipaddress='".$whoinfo[0]."' 
              AND browser='".$whoinfo[1]."' 
              ORDER BY username LIMIT $limit_start, $items_per_page";
              $items=mysql_query($sql);
              $main.=mysql_error();
              while($item=mysql_fetch_array($items))
              {
              $sex=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid='".$item[0]."'"));
              if($sex[0]=="M"){$usersex="<img src=\"./images/male.gif\" alt=\"(M)\"/>";$color=" style=\"color:#0000FF\"";}
              if($sex[0]=="F"){$usersex="<img src=\"./images/female.gif\" alt=\"(F)\"/>";$color=" style=\"color:#FF0066\"";}
              if($sex[1]!=""){$usersex=getbbcode($sex[1],$sid,1);}
              $main.=$usersex."<a href=\"./profile.php?who=$item[0]&amp;sid=$sid\"$color>".$item[1]."</a><br/>\n";
              }
              if($page>1){
              $main.="<br/><a href=\"./profiles.php?usersbyip=1&amp;page=".($page-1)."&amp;sid=$sid\">&lt;-Prev</a> ";
              }
              if($page<$num_pages){
              if($page==1)$main.="<br/>";
              $main.="<a href=\"./profiles.php?usersbyip=1&amp;page=".($page+1)."&amp;sid=$sid\">Next-&gt;</a>\n";
              }
              $main.="<br/>Page - $page/$num_pages</p>\n";
              if($num_pages>2){$main.=getjumper("online","","",$sid);}
              }else{
              addonline(getuid_sid($sid),"In The Forbidden Zone!","");
              $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n</p>\n";
              }
              $L1="$sixkey<a $key6 href=\"./profile.php?who=$who&amp;sid=$sid\">Back</a>";
              $L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
              $L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
              $L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
              $L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\">Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
              echo foot_tag();
              exit;
              }
              
              
              
              
              
              
              
              addonline(getuid_sid($sid),"In The Forbidden Zone!","");
              echo head_tag(getnick_sid($sid)."@View Profile",1,getnick_sid($sid));
              if(($who=="")||($who==0)||!isuser($who)){
              $main="<p align=".align().">
              <img src=\"./images/error.gif\" alt=\"[x]\"/> User Does Not exist</p>\n";
              $L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
              $L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\">Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
              echo foot_tag();
              exit;
              }
              
              
              
              addonline(getuid_sid($sid),"Viewing $nick Profile","");
              $hide=mysql_fetch_array(mysql_query("SELECT profile FROM users WHERE id='".$who."'"));
              
              if(isowner(getuid_sid($sid))||isheadadmin(getuid_sid($sid))||isadmin(getuid_sid($sid))||ismod(getuid_sid($sid))||getuid_sid($sid)==$who){
              $nick=getnick_uid($who);
              if(getuid_sid($sid)==$who)$nick="My";
              addonline(getuid_sid($sid),"Viewing $nick Profile","");
              $info=mysql_fetch_array(mysql_query("SELECT * FROM users a INNER JOIN profiles b ON a.id = b.uid WHERE a.id='".$who."'"));
              $wapsite=mysql_fetch_array(mysql_query("SELECT * FROM wapsite WHERE uid='".$who."'"));
              $title="<b>".getnick_uid($who)."</b><br/>".rating($who)."";
              
              
              if(quizmaster(getuid_sid($sid))){
              $main.="<div>";
              $main.="<a href=\"./admin/quiztools.php?type=tools&amp;sid=$sid&amp;who=$who\">Quiz Master Tools</a><br/>\n";
              }elseif(isowner(getuid_sid($sid))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Owner Tools*</a><br/>\n";
              }else if(isheadadmin(getuid_sid($sid))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Head Admin Tools*</a><br/>\n";
              }else if((ismod(getuid_sid($sid)))||(isadmin(getuid_sid($sid)))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Admin Tools*</a><br/>\n";
              }else if(use_tools(getuid_sid($sid))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Hidden Tools*</a><br/>\n";
              $main.="</div>";
              }
              
              $main.="<b>Status:</b>".status($who,1)."\n";
              $main.="<br/><b>UserId:</b> $who<br/>\n";
              $main.="<b>Points:</b> $info[points]<br/>\n";
              if($info[sex]=='M'){$sex="Male";}
              else if($info[sex]=='F'){$sex="Female";}
              else{$sex="Argh! No Profile!";}
              $exp_bday=explode("-",$info[birthday]);
              $month=$exp_bday[1];
              $day=$exp_bday[2];
              
              $main.="<b>Star Sign:</b>  ".starsign($day,$month)."<br/>\n";
              $main.="<b>Age:</b> ".getage($info[birthday])."<br/>\n";
              $main.="<b>Gender:</b>$sex<br/>\n"; 
              $main.="<b>Location:</b>".checkspam($info[location],$sid,1)."<br/>\n";
              $main.="<b>Registered:</b> ".date("D jS M y",$info[regdate])."<br/>\n";
              $main.="<b>Time Online:</b> ".time_msg($info[time],0)."<br/>\n";
              $main.="<b>Idle:</b> ".time_msg(time()-$info[lastact],0)."<br/>\n";
              $main.="<b>Browser:</b> $info[browser]<br/>\n";
              
              if((isowner(getuid_sid($sid)))||isheadadmin(getuid_sid($sid))||isadmin(getuid_sid($sid))){
              $main.="<b>Ip Address:</b> <a href=\"./profile.php?usersbyip=1&amp;who=$who&amp;sid=$sid\">[$info[ipaddress]]</a><br/>\n";
              $main.="<b>Network:</b> ".network_test($info[ipaddress],0)." \n";
              $main.="<br/>\n";
              }
              
              
              if(buds(getuid_sid($sid),$who)==0){
              $main.="$Skey<a $keyS href=\"./buds/add.php?who=$who&amp;sid=$sid\">Add Buddy</a><br/>\n";
              }else if(buds(getuid_sid($sid),$who)==1){
              $main.="(Queued Buddy Request)<br/>\n";
              }else if(buds(getuid_sid($sid),$who)==2){
              $main.="$Skey<a $keyS href=\"./buds/add.php?delete=1&amp;who=$who&amp;sid=$sid\">Del Buddy</a><br/>\n";
              }
              if(buds(getuid_sid($sid),$who)==2){
              $main.="$onekey<a $key1 href=\"./popups.php?who=$who&amp;sid=$sid$chatlink\">Send Popup</a><br/>\n";
              }
              $main.="$twokey<a $key2 href=\"./inbox/send.php?who=$who&amp;sid=$sid$chatlink\">Send Inbox</a><br/>\n";
              if(ignored(getuid_sid($sid),$who,1)==1){
              $main.="$threekey<a $key3 href=\"./block.php?add=1&amp;who=$who&amp;sid=$sid\">Block</a><br/>\n";
              }else if(ignored(getuid_sid($sid),$who,1)==2){
              $main.="$threekey<a $key3 href=\"./block.php?del=1&amp;who=$who&amp;sid=$sid\">Un-Block</a><br/>\n";
              }
              if($wapsite["mainpage"]!=""){
              $main.="$fourkey<a $key4 href=\"./wapsites/wapsite.php?who=$who&amp;sid=$sid\">View Wapsite</a><br/>\n";
              }
              if($rid!=""){$main.="<br/>$fivekey<a $key5 href=\"./chat/chat.php?sid=$sid$chatlink\">Back to $rname</a>\n";}
              
              
              $L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">ChatRooms</a>";
              $L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\">Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
              echo foot_tag();
              }else if($hide[0]>0){
              $main.="<p align=".align()."><img src=\"./images/error.gif\" alt=\"(F)\"/>  Im terribly sorry this user has chosen To privatize 
              there profile only there buddies can view there profile please try and request a budz request to view there profile</p>";
              $L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">ChatRooms</a>";
              $L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\">Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
              echo foot_tag();
              }else{
              
              
              $nick=getnick_uid($who);
              if(getuid_sid($sid)==$who)$nick="My";
              addonline(getuid_sid($sid),"Viewing $nick Profile","");
              $info=mysql_fetch_array(mysql_query("SELECT * FROM users a INNER JOIN profiles b ON a.id = b.uid WHERE a.id='".$who."'"));
              $wapsite=mysql_fetch_array(mysql_query("SELECT * FROM wapsite WHERE uid='".$who."'"));
              $title="<b>".getnick_uid($who)."</b><br/>".rating($who)."";
              
              
              if(isowner(getuid_sid($sid))){
              $main.="<div>";
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Owner Tools*</a><br/>\n";
              }else if(isheadadmin(getuid_sid($sid))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Head Admin Tools*</a><br/>\n";
              }else if((ismod(getuid_sid($sid)))||(isadmin(getuid_sid($sid)))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Admin Tools*</a><br/>\n";
              }else if(use_tools(getuid_sid($sid))){
              $main.="<a href=\"./admin/moderate.php?who=$who&amp;sid=$sid\">*Hidden Tools*</a><br/>\n";
              $main.="</div>";
              }
              
              
              else{$main.="";}
              
              
              $main.="<b>Status:</b>".status($who,1)."\n";
              $main.="<br/><b>UserId:</b> $who<br/>\n";
              $main.="<b>Points:</b> $info[points]<br/>\n";
              if($info[sex]=='M'){$sex="Male";}
              else if($info[sex]=='F'){$sex="Female";}
              else{$sex="Argh! No Profile!";}
              $exp_bday=explode("-",$info[birthday]);
              $month=$exp_bday[1];
              $day=$exp_bday[2];
              
              $main.="<b>Star Sign:</b>  ".starsign($day,$month)."<br/>\n";
              $main.="<b>Age:</b> ".getage($info[birthday])."<br/>\n";
              $main.="<b>Gender:</b>$sex<br/>\n"; 
              $main.="<b>Location:</b>".checkspam($info[location],$sid,1)."<br/>\n";
              $main.="<b>Registered:</b> ".date("D jS M y",$info[regdate])."<br/>\n";
              $main.="<b>Time Online:</b> ".time_msg($info[time],0)."<br/>\n";
              $main.="<b>Idle:</b> ".time_msg(time()-$info[lastact],0)."<br/>\n";
              $main.="<b>Browser:</b> $info[browser]<br/>\n";
              
              if((isowner(getuid_sid($sid)))||isheadadmin(getuid_sid($sid))||isadmin(getuid_sid($sid))){
              $main.="<b>Ip Address:</b> <a href=\"./profile.php?usersbyip=1&amp;who=$who&amp;sid=$sid\">[$info[ipaddress]]</a><br/>\n";
              $main.="<b>Network:</b> ".network_test($info[ipaddress],0)." \n";
              $main.="<br/>\n";
              }
              
              
              if(buds(getuid_sid($sid),$who)==0){
              $main.="$Skey<a $keyS href=\"./buds/add.php?who=$who&amp;sid=$sid\">Add Buddy</a><br/>\n";
              }else if(buds(getuid_sid($sid),$who)==1){
              $main.="(Queued Buddy Request)<br/>\n";
              }else if(buds(getuid_sid($sid),$who)==2){
              $main.="$Skey<a $keyS href=\"./buds/add.php?delete=1&amp;who=$who&amp;sid=$sid\">Del Buddy</a><br/>\n";
              }
              if(buds(getuid_sid($sid),$who)==2){
              $main.="$onekey<a $key1 href=\"./popups.php?who=$who&amp;sid=$sid$chatlink\">Send Popup</a><br/>\n";
              }
              $main.="$twokey<a $key2 href=\"./inbox/send.php?who=$who&amp;sid=$sid$chatlink\">Send Inbox</a><br/>\n";
              if(ignored(getuid_sid($sid),$who,1)==1){
              $main.="$threekey<a $key3 href=\"./block.php?add=1&amp;who=$who&amp;sid=$sid\">Block</a><br/>\n";
              }else if(ignored(getuid_sid($sid),$who,1)==2){
              $main.="$threekey<a $key3 href=\"./block.php?del=1&amp;who=$who&amp;sid=$sid\">Un-Block</a><br/>\n";
              }
              if($wapsite["mainpage"]!=""){
              $main.="$fourkey<a $key4 href=\"./wapsites/wapsite.php?who=$who&amp;sid=$sid\">View Wapsite</a><br/>\n";
              }
              if($rid!=""){$main.="<br/>$fivekey<a $key5 href=\"./chat/chat.php?sid=$sid$chatlink\">Back to $rname</a>\n";}
              
              $L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
              $L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
              $L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">ChatRooms</a>";
              $L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
              $L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\">Main Menu</a>";
              echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
              echo foot_tag();
              
              }
              
              ?>
              Last edited by crazybrumi; 25.09.09, 07:49.
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                PHP Code:
                /////////////////////////////////viewuser profile

                else if($action=="viewuser")
                {
                 
                $whonick getnick_uid($who);addonline(getuid_sid($sid),"xHTML-Viewing Profile of $whonick","index.php?action=viewuser&amp;who=$who");
                  
                $pstyle gettheme($sid);
                    echo 
                xhtmlhead($whonick." Profile",$pstyle);
                //////////////////////////////////////////////////////////in profile
                   
                $theme1 mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$who."'"));
                      echo 
                "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/$theme1[0]\" />";
                      echo 
                "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />\n";
                      echo 
                "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
                      echo 
                "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";

                  echo 
                "<p align=\"center\">";
                  if(
                $who==""||$who==0)
                  {
                    
                $mnick $_POST["mnick"];
                    
                $who getuid_nick($mnick);
                  }
                  
                $whonick getnick_uid($who);
                  if(
                $whonick!="")
                  {
                  echo 
                "$whonick's Profile<br/>";
                $pmoodlink getpmood($who);
                  if(
                $pmoodlink=="")
                  {
                  echo 
                "";
                  }else{
                  echo 
                "<img src=\"$pmoodlink\" alt=\"$whonick\"/><br/>";
                  }
                  echo 
                "<small>";
                  
                $noi mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'"));$var1 date("His",$noi[0]);$var2 time();$var21 date("His",$var2);$var3 $var21 $var1;$var4 date("s",$var3);echo "Idle: ";$remain time() - $noi[0];$idle gettimemsg($remain);echo "$idle<br/>";



                $stitle mysql_fetch_array(mysql_query("SELECT id,
                lastseen, lastdet FROM ibwf_users WHERE
                id='"
                .$who."'"));
                     if(
                isonline($stitle[0]))
                   {
                $sitelocation mysql_fetch_array(mysql_query("SELECT
                place FROM ibwf_online WHERE userid='"
                .$who."'"));
                     
                $iml "Where: $sitelocation[0]";
                   }else{
                       
                $iml "Offline: Last Seen at $stitle[1]";
                    }
                 echo 
                "$iml";
                if(
                $stitle[2])
                {
                  echo 
                " <a href=\"$stitle[2]&amp;sid=$sid\">go
                there</a><br/>"
                ;
                }
                 echo 
                popup($sid);
                if(
                $uid==$who)
                {
                echo 
                "<br/><b><a
                href=\"index.php?action=uset&amp;sid=
                $sid\">[ Edit My
                Profile ]</a></b>"
                ;
                }
                  
                   if(
                ismod(getuid_sid($sid)))
                   {
                  if(
                cansee(getuid_sid($sid), $who))
                  {

                    
                $unol mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$who."'"));
                    if(
                $unol[0]!="")
                    {
                      echo 
                "Last Penalty Reason: $unol[0]<br/>";
                    }
                    
                $unol mysql_fetch_array(mysql_query("SELECT lastplreas FROM ibwf_users WHERE id='".$who."'"));
                    if(
                $unol[0]!="")
                    {
                      echo 
                "Last Credits Reason: $unol[0]<br/>";
                    }
                  }
                  }
                  
                $uid getuid_sid($sid);
                  if(
                budres($uid$who)==0)
                  {
                    echo 
                "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=add\">Add to buddy list</a><br/>";
                  }else if(
                budres($uid$who)==1)
                  {
                    echo 
                "Buddy request in the queue<br/>";
                  }else if(
                budres($uid$who)==2)
                  {
                    echo 
                "<a href=\"genproc.php?action=bud&amp;who=$who&amp;sid=$sid&amp;todo=del\">Remove From buddy list</a><br/>";
                  }
                  
                $ires ignoreres($uid$who);
                  if(
                es==2)
                  {
                    echo 
                "<a href=\"genproc.php?action=ign&amp;who=$who&amp;sid=$sid&amp;todo=del\">Remove From Ignore list</a><br/>";
                  }else if(
                $ires==1)
                  {
                    echo 
                "<a href=\"genproc.php?action=ign&amp;who=$who&amp;sid=$sid&amp;todo=add\">Add to Ignore list</a><br/>";
                  }
                  
                //echo "<a href=\"userfun.php?action=profile&amp;who=$who&amp;sid=$sid\">Fun and Games</a><br/>";
                if (shad0w($uid,$who)) {
                echo 
                "<br/><a href=\"inbox.php?action=sendpm&amp;who=$who&amp;sid=$sid\">Send PM</a><br/><br/>";
                  
                $married=mysql_fetch_array(mysql_query("SELECT * from
                ibwf_married WHERE frmuid='"
                .$who."' OR touid='".$who."'"));

                  if(
                $married['frmuid']==$who)

                  {

                                  if(
                $married['agreed']==1)

                                               {

                                                               if(
                $married['complete']==1)

                                                                               {


                $unick=getnick_uid($who);


                $mnick=getnick_uid($married['touid']);


                echo 
                "<strong>$unick is Married To $mnick</strong><br/><br/>";

                                                                               }

                                               }

                  }else{

                                  if(
                $married['agreed']==1)

                                               {

                                                               if(
                $married['complete']==1)

                                                                               {


                $unick=getnick_uid($who);


                $mnick=getnick_uid($married['frmuid']);


                echo 
                "<strong>$unick is Married To $mnick</strong><br/>";

                                                                               }

                                               }

                  } 
                bro this is my view profile code its show private

                how is show to my user ?

                Comment


                  #9
                  Fetch from mysql database 1 = 1 return true private else false public profile
                  if ($private[0]==1)
                  {
                  //true
                  Profile of use
                  //if and else if is cool
                  }else{
                  ops sorry private profile add me now
                  }

                  Code:
                  if and else
                  
                  
                   $uid = getuid_sid($sid);
                    $reqs = getnreqs($uid);
                    if($reqs>0)
                    {
                  //new request buddy return true >0 greater than zero
                      echo "<a href=\"lists.php?action=reqs&amp;sid=$sid\">$reqs new buddy request</a>";
                    }else{
                  //false link for buddy lists
                    echo "<a href=\"lists.php?action=buds&amp;sid=$sid\">my buddies</a>";
                    }
                  Last edited by kabooms; 04.10.09, 21:56.

                  Comment

                  Working...
                  X