Add Perms

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

    Add Perms

    Can some one help me to add more perm ...
    My wap only have admin and moderator ..
    I wan add more perm such as ...
    BiG BoSs, BoSs and Head Admin ...

    #2
    you use a lavalair wml script or wapdesire????
    if like my post click:

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

    Comment


      #3
      its already posted search and btw is very simple even i learned u have to add new filds in core.php such as is boss, is big boss just like is admin is mod
      Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

      <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

      Comment


        #4
        you use a lavalair wml script or wapdesire????[/b]

        d procedure would b d same regardless of which

        Comment


          #5
          d procedure would b d same regardless of which[/b]

          Comment


            #6
            i&#39;m use lavalair scripts also ..

            Comment


              #7
              oh u r use lavalair? i the see u r the very frustrating now confusing too?
              Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

              <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

              Comment


                #8
                in core.php keep addin this to ur choice

                if($ginfo[2]==3)
                {

                if(isowner($uid))
                {
                return true;
                }else{
                return false;
                }
                }

                if($ginfo[2]==2)
                {

                if(isadmin($uid))
                {
                return true;
                }else{
                return false;
                }
                }


                then

                if($rperm[1]==1)
                {
                return ismod(getuid_sid($sid));
                }
                if($rperm[1]==2)
                {
                return isadmin(getuid_sid($sid));
                }
                if($rperm[1]==3)
                {
                return isowner(getuid_sid($sid));
                }

                if(getuage_sid($sid)<$rperm[0])
                {
                return false;
                }
                if($uperm[1]<$rperm[2])
                {
                return false;
                }
                return true;
                }

                then


                return "Banned!";
                }
                if($info[0]==&#39;2&#39;)
                {
                return "<img src=\"images/.gif\" alt=\"Admin!\"/>";
                }else if($info[0]==&#39;1&#39;)
                {
                return "<img src=\"images/.gif\" alt=\"Mod!\"/>";
                }else if($info[0]==&#39;3&#39;)
                {
                return "<img src=\"images/.gif\" alt=\"Owner!\"/>";
                }else{



                and keep on adding

                /////////////////////////////////////////Is big boss

                function isowner($uid)
                {
                $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                if($admn[0]==&#39;3&#39;)
                {
                return true;
                }else{
                return false;
                }
                }

                and

                /////////////////////////////////////////Is boss

                function isowner($uid)
                {
                $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                if($admn[0]==&#39;4&#39;)
                {
                return true;
                }else{
                return false;
                }
                }


                got the idea?
                Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                Comment


                  #9
                  how about ownercp ?

                  to chosse mod , admin , head admin , boss and big boss? at ownercp ..

                  hehehe ....

                  Comment


                    #10
                    search for the option in ownercp where u add a user as admin or normal etc. enter ur new field there with the perm number hehehehehehehehehehehehehehehehehehehe
                    Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

                    <span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

                    Comment


                      #11
                      thanks ... i do ... how to make big boss can see all function ?

                      Comment


                        #12
                        is it possible to add a junior mod?

                        Comment


                          #13
                          is it possible to add a junior mod?[/b]
                          depends what you mean by junior mod ?
                          but probably its possible the same way as posted above
                          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                          Comment


                            #14
                            hmm i got the same prob at the moment n i managed to make it work but now it shows on admin vip status and on vip it shows administrator and both got tools how to fix that?

                            PHP Code:
                            foreach ($_SERVER as $server => $value)
                            {
                            echo "$server is $value<br />";
                            } 
                            

                            Comment

                            Working...
                            X