Hide Phone/browser Details

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

    Hide Phone/browser Details

    HI Can anyone help please, I want to hide the phone/brower details of owners and admin on lava lair , ive been trying to get it to work, but cant seem to just do it so it works for owners and admin , Many thanks Tz

    #2
    just use php admin and change the browser details

    Comment


      #3
      They update everytime someone logs in, so that wont work , but thank you

      Comment


        #4
        why dont u just put an if statement "ismod" around the things yu dont wnt the normal member to see ie

        if(ismod(getuid_sid($sid)))
        {

        browser detauks
        }

        that will only show the admin and owners mods the details within
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          just use php admin and change the browser details[/b]

          you could on the old sp but not on lavalair as it looks for the device you log in with everytime you log into the site and updates it
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            I had tried that but kept getting a t string error on the line i'd placed it on..
            Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/index.php on line 111

            Comment


              #7
              post us the action here and al fix it for ya
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

                $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");
                function getRemoteInfo () {
                $proxy="";
                $IP = "";
                if (isSet($_SERVER)) {
                if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) {
                $IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
                $proxy = $_SERVER["REMOTE_ADDR"];
                } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) {
                $IP = $_SERVER["HTTP_CLIENT_IP"];
                } else {
                $IP = $_SERVER["REMOTE_ADDR"];
                }
                } else {
                if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) {
                $IP = getenv( 'HTTP_X_FORWARDED_FOR' );
                $proxy = getenv( 'REMOTE_ADDR' );
                } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) {
                $IP = getenv( 'HTTP_CLIENT_IP' );
                } else {
                $IP = getenv( 'REMOTE_ADDR' );
                }
                }
                if (strstr($IP, ',')) {
                $ips = explode(',', $IP);
                $IP = $ips[0];
                }
                $RemoteInfo[0]=$IP;
                $RemoteInfo[1]GetHostByAddr($IP);
                $RemoteInfo[2]=$proxy;
                return $RemoteInfo;
                }

                Comment


                  #9
                  I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

                  $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");
                  function getRemoteInfo () {
                  $proxy="";
                  $IP = "";
                  if (isSet($_SERVER)) {
                  if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) {
                  $IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
                  $proxy = $_SERVER["REMOTE_ADDR"];
                  } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) {
                  $IP = $_SERVER["HTTP_CLIENT_IP"];
                  } else {
                  $IP = $_SERVER["REMOTE_ADDR"];
                  }
                  } else {
                  if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) {
                  $IP = getenv( 'HTTP_X_FORWARDED_FOR' );
                  $proxy = getenv( 'REMOTE_ADDR' );
                  } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) {
                  $IP = getenv( 'HTTP_CLIENT_IP' );
                  } else {
                  $IP = getenv( 'REMOTE_ADDR' );
                  }
                  }
                  if (strstr($IP, ',')) {
                  $ips = explode(',', $IP);
                  $IP = $ips[0];
                  }
                  $RemoteInfo[0]=$IP;
                  $RemoteInfo[1]GetHostByAddr($IP);
                  $RemoteInfo[2]=$proxy;
                  return $RemoteInfo;
                  }[/b]
                  why not add subno function???
                  HTTP_X_UP_SUBNO ??? ;)
                  if like my post click:

                  http://coding-talk.com/images/totall...ost_thanks.gif

                  Comment


                    #10
                    you did not use getRemoteInfo ()

                    do it
                    Code:
                    $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".getRemoteInfo ()."' WHERE id='".getuid_sid($sid)."'");

                    Comment


                      #11
                      This is the area that i want to change so it doesnt show owner and admin details


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

                      if($nopl[0]=="Mozilla/4.0")

                      {

                      $nopl[0]="Internet Explorer 6/7";

                      }

                      if($nopl[0]=="Mozilla/5.0")

                      {

                      $nopl[0]="Firefox II";

                      }

                      echo "Browser: $nopl[0]
                      ";

                      I've tried this
                      $items = mysql_query($sql);

                      echo mysql_error();

                      while ($item = mysql_fetch_array($items))

                      {

                      $sqlthing = (mysql_query("SELECT * FROM ibwf_users where name = '".$item[0]."'"));



                      $perm = mysql_result($sqlthing,0,"perm");
                      if($perm==1)

                      {



                      }

                      else if($perm==2)

                      {



                      $item[1] = "Wouldnt you like to know";

                      }

                      else if($perm==0)

                      {

                      $perm = "";

                      }

                      but with no luck

                      Comment


                        #12
                        I put it at the bottom of this, if that help's, everything i do is trail and error havn't got a clue....

                        $res = mysql_query("UPDATE ibwf_users SET browserm='".$ubr."', ipadd='".$uip."' WHERE id='".getuid_sid($sid)."'");
                        function getRemoteInfo () {
                        $proxy="";
                        $IP = "";
                        if (isSet($_SERVER)) {
                        if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) {
                        $IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
                        $proxy = $_SERVER["REMOTE_ADDR"];
                        } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) {
                        $IP = $_SERVER["HTTP_CLIENT_IP"];
                        } else {
                        $IP = $_SERVER["REMOTE_ADDR"];
                        }
                        } else {
                        if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) {
                        $IP = getenv( 'HTTP_X_FORWARDED_FOR' );
                        $proxy = getenv( 'REMOTE_ADDR' );
                        } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) {
                        $IP = getenv( 'HTTP_CLIENT_IP' );
                        } else {
                        $IP = getenv( 'REMOTE_ADDR' );
                        }
                        }
                        if (strstr($IP, ',')) {
                        $ips = explode(',', $IP);
                        $IP = $ips[0];
                        }
                        $RemoteInfo[0]=$IP;
                        $RemoteInfo[1]GetHostByAddr($IP);
                        $RemoteInfo[2]=$proxy;
                        return $RemoteInfo;
                        }[/b]
                        how I can view this details at profile users???
                        if like my post click:

                        http://coding-talk.com/images/totall...ost_thanks.gif

                        Comment


                          #13
                          if your using a lava type script u need to do it like this.

                          this code is from index.php .and the action is the view users profile . and wot i am hiding from members is the email .

                          if(ismod(getuid_sid($sid)))
                          {
                          $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'"));
                          echo "E-mail: $nopl[0]
                          ";
                          }

                          just add
                          if(ismod(getuid_sid($sid)))
                          {
                          the stuff u want hidden goes here then dont forget the last closed bracket on next line
                          } <<<<<< that there lol

                          hope that helps
                          Wapchat4u


                          Topsites4u

                          Comment


                            #14
                            $inca = mysql_fetch_array(mysql_query("SELECT perm, browserm FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                            if($inca[0]>1){
                            echo "Browser: no browser details";
                            }else{
                            echo "Browser: $inca[1]";
                            }

                            Comment


                              #15
                              if your using a lava type script u need to do it like this.

                              this code is from index.php .and the action is the view users profile . and wot i am hiding from members is the email .

                              if(ismod(getuid_sid($sid)))
                              {
                              $nopl = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
                              echo "E-mail: $nopl[0]
                              ";
                              }

                              just add
                              if(ismod(getuid_sid($sid)))
                              {
                              the stuff u want hidden goes here then dont forget the last closed bracket on next line
                              } <<<<<< that there lol

                              hope that helps[/b]

                              Thank you nclemale36 that worked, thank you so much

                              Comment

                              Working...
                              X