Hidden Status In Funmobile

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

    Hidden Status In Funmobile

    only 4 mod e adm??any1 can help me???
    if like my post click:

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

    #2
    put a field in user table call it hidden

    next do a query to select perm from user table. get the perm. also select hidden from user table. get that data too.

    then find addonline(); in all the script n enclose it with

    if(!staff = true and hidden =yes) {

    addonline();

    }

    or u can do it in core.php to reduce d amount of coding

    Comment


      #3
      you can upload code correct???
      if like my post click:

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

      Comment


        #4
        in core.php put
        Code:
        function uhidden($uid) {
        $getststus = mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id='".$uid."'"));
        
        return $getstsus[0];
        
        }
        then find
        Code:
        function addonline($uid,$place,$plclink)
        {
          /////delete inactive users
          $tm = time();
          $timeout = $tm - 420; //time out = 5 minutes
          $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <&#39;".$timeout."&#39;");
          ///now try to add user to online list
          $res = mysql_query("UPDATE ibwf_users SET lastact=&#39;".time()."&#39; WHERE id=&#39;".$uid."&#39;");
          $res = mysql_query("INSERT INTO ibwf_online SET userid=&#39;".$uid."&#39;, actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39;");
          if(!$res)
          {
            //most probably userid already in the online list
            //so just update the place and time
            $res = mysql_query("UPDATE ibwf_online SET actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39; WHERE userid=&#39;".$uid."&#39;");
            
            
          }
          $maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id=&#39;2&#39;"));
          
                    $result = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online"));
        
                  if($result[0]>=$maxmem[0])
                  {
                    $tnow = date("D d M Y - H:i");
                    mysql_query("UPDATE ibwf_settings set name=&#39;".$tnow."&#39;, value=&#39;".$result[0]."&#39; WHERE id=&#39;2&#39;");
                  }
                  $maxtoday = mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt=&#39;".date("d m y")."&#39;"));
                  if($maxtoday[0]==0||$maxtoday=="")
                  {
                    mysql_query("INSERT INTO ibwf_mpot SET ddt=&#39;".date("d m y")."&#39;, ppl=&#39;1&#39;, dtm=&#39;".date("H:i:s")."&#39;");
                    $maxtoday[0]=1;
                  }
                  if($result[0]>=$maxtoday[0])
                  {
                    mysql_query("UPDATE ibwf_mpot SET ppl=&#39;".$result[0]."&#39;, dtm=&#39;".date("H:i:s")."&#39; WHERE ddt=&#39;".date("d m y")."&#39;");
                  }
        }
        and replace with
        Code:
        function addonline($uid,$place,$plclink)
        {
        if(!isadmin($uid)||uhidden($uid)==0) {
          /////delete inactive users
          $tm = time();
          $timeout = $tm - 420; //time out = 5 minutes
          $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <&#39;".$timeout."&#39;");
          ///now try to add user to online list
          $res = mysql_query("UPDATE ibwf_users SET lastact=&#39;".time()."&#39; WHERE id=&#39;".$uid."&#39;");
          $res = mysql_query("INSERT INTO ibwf_online SET userid=&#39;".$uid."&#39;, actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39;");
          if(!$res)
          {
            //most probably userid already in the online list
            //so just update the place and time
            $res = mysql_query("UPDATE ibwf_online SET actvtime=&#39;".$tm."&#39;, place=&#39;".$place."&#39;, placedet=&#39;".$plclink."&#39; WHERE userid=&#39;".$uid."&#39;");
            
            
          }
          $maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id=&#39;2&#39;"));
          
                    $result = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online"));
        
                  if($result[0]>=$maxmem[0])
                  {
                    $tnow = date("D d M Y - H:i");
                    mysql_query("UPDATE ibwf_settings set name=&#39;".$tnow."&#39;, value=&#39;".$result[0]."&#39; WHERE id=&#39;2&#39;");
                  }
                  $maxtoday = mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt=&#39;".date("d m y")."&#39;"));
                  if($maxtoday[0]==0||$maxtoday=="")
                  {
                    mysql_query("INSERT INTO ibwf_mpot SET ddt=&#39;".date("d m y")."&#39;, ppl=&#39;1&#39;, dtm=&#39;".date("H:i:s")."&#39;");
                    $maxtoday[0]=1;
                  }
                  if($result[0]>=$maxtoday[0])
                  {
                    mysql_query("UPDATE ibwf_mpot SET ppl=&#39;".$result[0]."&#39;, dtm=&#39;".date("H:i:s")."&#39; WHERE ddt=&#39;".date("d m y")."&#39;");
                 }
         }
        }

        Comment


          #5
          upload please ??? thenks..
          if like my post click:

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

          Comment


            #6
            sweetangel,

            We are not your slaves!!


            if you need to upload it pay for services think about it where not your slaves

            once started you get others to code thats called dirty work!
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              well said sub!, i hate leeches

              Comment


                #8
                exaggerated :lol:
                if like my post click:

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

                Comment


                  #9
                  Please on example for field in user table, hidden
                  A make this one: `hidden` int(1) NOT NULL default &#39;0&#39;,
                  And after i make this code:
                  else if($action=="hidden")
                  {
                  echo "<card id=\"main\" title=\"hidden\">";
                  echo "<p align=\"center\">";
                  $ncl = mysql_query("UPDATE ibwf_users SET hidden=&#39;1&#39; WHERE id=&#39;".$uid."&#39;");
                  echo "Hidden now.
                  ";
                  echo "</p>";

                  echo "<p align=\"center\">";

                  echo "<a href=\"index.php?action=main&sid=$sid\">";
                  echo "Home</a>";
                  echo "</p>";
                  echo "</card>";
                  }
                  else if($action=="uhidden")
                  {
                  echo "<card id=\"main\" title=\"uhidden\">";
                  echo "<p align=\"center\">";
                  $ncl = mysql_query("UPDATE ibwf_users SET hidden=&#39;0&#39; WHERE id=&#39;".$uid."&#39;");
                  echo "Visible now.
                  ";
                  echo "</p>";

                  echo "<p align=\"center\">";

                  echo "<a href=\"index.php?action=main&sid=$sid\">";
                  echo "Home</a>";
                  echo "</p>";
                  echo "</card>";
                  }
                  Link to change hidden option is:
                  $hidden = mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                  if($hidden[0]==0){
                  echo "<a href=\"index.php?action=hidden&sid=$sid\">»Hidden</a>
                  ";
                  }else{
                  echo "<a href=\"index.php?action=uhidden&sid=$sid\">»Visibi le</a>
                  ";
                  }


                  I change in core php function addonline and i put function uhidden
                  But nothing, I visible
                  Can help me???

                  Comment


                    #10
                    please wizard help...
                    if like my post click:

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

                    Comment


                      #11
                      any1 can help me????
                      if like my post click:

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

                      Comment


                        #12
                        Can any1 upload a code 4 add table hidden at my database mysql please????
                        if like my post click:

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

                        Comment


                          #13
                          just add the tale yourself... copy it from here then paste it in phpmyadmin

                          Comment


                            #14
                            is it possible that i could remove few admincp options from admin ac and add it to funmobile ownercp? could someone help me out???
                            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


                              #15
                              is it possible that i could remove few admincp options from admin ac and add it to funmobile ownercp? could someone help me out???[/b]
                              that shouldnt be to hard....
                              make admincp.php copy... rename to owner.php.... and take out what doesnt fit there...
                              sort links.. and thats approx all


                              in fact... you dont need to remove anything... just comment lines with slashes //
                              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

                              Working...
                              X