View your profile

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

    View your profile

    what is the code if YOU, STAFFS AND YOUR BUDDIES only can view your PROFILE??
    THANKS!
    Last edited by robzky; 20.08.09, 15:39.
    LESS TALK. LESS MISTAKE.

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

    #2
    Originally posted by robzky View Post
    what is the code if YOU and the STAFFS only can view your PROFILE??
    THANKS!
    I don't know if that is what you are looking 4 but ...
    Something I've codded in less than 1 minute .. I think that it works
    PHP Code:
    // for profile
    $uid getuid_sid($sid);
    $who $_GET["who"];

    if (
    shad0w($uid,$who))
    {
    // profile
    }else{
    echo 
    "You can't view this profile ! ";
    }

    /////////////////////////////////////////////
    // for core.php
    function shad0w($uid$who)
    {

      if(
    $uid==$who||ismod($uid))
      {
        return 
    true;
      }
      return 
    false;

    P.S: If it works use thank button, if doesn't use it anyway ... lol
    whatmp3.name - search mp3 on mobile

    Comment


      #3
      Shadow this one code of urs do u have the options in settings to switch it on and of for public to view also

      Comment


        #4
        Its WORKING!..
        Can you combine that code at this code??

        if (arebuds($uid, $who))
        {
        //profile
        }else {
        echo "Private profile. Add $who to your buddies to view the profile.<br/>";
        }

        I hope you can code this thanks shadow..
        Last edited by robzky; 19.08.09, 20:03.
        LESS TALK. LESS MISTAKE.

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

        Comment


          #5
          PHP Code:
          $sml mysql_fetch_array(mysql_query("SELECT hvia FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
              if(
          $sml[0]=="1")
              {
                  echo 
          "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;act=dis\">Disable Smilies</a>";
              }else{
                  echo 
          "<a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;act=enb\">Enable Smilies</a>";
              } 
          I think you can get a idea if how to do Switch on/off this function..
          LESS TALK. LESS MISTAKE.

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

          Comment


            #6
            If you are not in my buddies you are not able to see my profile,
            But if i accept your reqeust to become one of my buddies, you are now able to see my profile..

            -Can you code this? I hope you can..
            Coz i want to private my profile to those who are not list in my buddies..
            LESS TALK. LESS MISTAKE.

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

            Comment


              #7
              Originally posted by robzky View Post
              Its WORKING!..
              Can you combine that code at this code??

              if(arebuds($uid, $who))
              {
              //profile
              }else {
              echo "Private profile. Add $who to your buddies to view the profile.<br/>";
              }

              I hope you can code this thanks shadow..
              if(arebuds($uid, $who) OR ismod($uid) OR $who==$uid)
              It's very easy..Like when i'm 3days old in php coding..Lol
              Last edited by kiLLeR-eyEd_14; 19.08.09, 22: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


                #8
                Originally posted by kiLLeR-eyEd_14 View Post
                if(arebuds($uid, $who) OR ismod($uid) OR $who==$uid)
                It's very easy..Like when i'm 3days old in php coding..Lol

                - The problem is... My profile is Private.. So i cant see my own profile!
                when i use this code..
                LESS TALK. LESS MISTAKE.

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

                Comment


                  #9
                  Originally posted by robzky View Post
                  - The problem is... My profile is Private.. So i cant see my own profile!
                  when i use this code..
                  what do u mean?why is ur profile private?did u add a row of privatepro in ur users table and update urs into private?then make a function dat will determine if ur profile is private then make a condition, let say u made a function isprivatepro($uid)..the c0nditi0n is, if(isprivatepro($uid)) then everyone can't view urs unless they are one of ur buddy..Just use ur head in doing this.,that's very easy..if u know the basic php coding, making functions, then u'l juz use ur head to do conditi0ns..
                  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


                    #10
                    Set 0 for public set 1 for private 0nly you then set 2 for 0nly frnds lol t0o easy!
                    com site: http://vampist.net
                    download site: http://wapdloads.net
                    fb: http://www.facebook.com/pmplx

                    Comment


                      #11
                      hmmm.. Can you post the full function and the code @killer
                      LESS TALK. LESS MISTAKE.

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

                      Comment


                        #12
                        PHP Code:
                        // for profile 
                        $uid getuid_sid($sid); 
                        $who $_GET["who"]; 

                        if (
                        shad0w($uid,$who)) 

                        // profile 
                        }else{ 
                        echo 
                        "You can't view this profile ! "


                        ///////////////////////////////////////////// 
                        // for core.php 
                        function shad0w($uid$who


                          if(
                        $uid==$who||arebuds($uid,$who)||ismod($uid)) 
                          { 
                            return 
                        true
                          } 
                          return 
                        false

                        I think that should work ...
                        whatmp3.name - search mp3 on mobile

                        Comment


                          #13
                          Let me try again shad0w..
                          LESS TALK. LESS MISTAKE.

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

                          Comment


                            #14
                            Shad0w your code works well but.....to set the user chooses the option on / off for this code? ... when it is off to this code works. when he is to see the profile of all .... please
                            sigpichttp://happy.srecnica.com/web

                            Comment


                              #15
                              I made this in itself...
                              in core.php
                              function shad0w($uid, $who)
                              {

                              $pm = mysql_fetch_array(mysql_query("SELECT viewpro FROM ibwf_users WHERE id='".$who."'"));
                              if($pm[0]=='2')
                              {
                              if (ismod($uid))
                              {
                              return true;
                              }else{

                              return false;
                              }
                              return false;
                              }else if($pm[0]=='1')
                              {
                              if($uid==$who||arebuds($uid,$who)||ismod($uid))
                              {
                              return true;
                              }else{
                              return false;
                              }
                              }else if($pm[0]=='0')
                              {
                              return true;
                              }
                              }
                              in genproc.php
                              else if($action=="viewpro")
                              {
                              addonline(getuid_sid($sid),"Profil","");
                              $act = $_GET["act"];
                              $acts = ($act=="dis" ? 0 : 1);
                              echo "<card id=\"main\" title=\"HAPPY Forum\">";
                              echo "<p align=\"center\">";
                              //$uid = getuid_sid($sid);
                              $res = mysql_query("UPDATE ibwf_users SET viewpro='".$acts."' WHERE id='".$uid."'");
                              if($res)
                              {
                              echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>Profile changed!<br/>";
                              }else{
                              echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>
                              It's impossible to update your profile!<br/>";
                              }
                              echo "<br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                              echo "HAPPY</a>";
                              echo "</p></card>";
                              }
                              in index.php...
                              if($action=="cpanel")
                              $viewpro = mysql_fetch_array(mysql_query("SELECT viewpro FROM ibwf_users WHERE id = '".$uid."'"));

                              if($viewpro[0]=="1")
                              {
                              echo "<a href=\"genproc.php?action=viewpro&amp;sid=$sid&amp ;act=dis\">Public Profile</a><br/>";
                              }else{
                              echo "<a href=\"genproc.php?action=viewpro&amp;sid=$sid&amp ;act=enb\">Private Profile</a><br/>";
                              }
                              else if($action=="viewuser")
                              if (shad0w($uid,$who)) {

                              >>>code profile<<<

                              }else{
                              echo "<b>Privacy Profile !!!</ b> <br/> This profile can only see members with a list of friends and members of the Administration<br/> ";
                              }
                              sigpichttp://happy.srecnica.com/web

                              Comment

                              Working...
                              X