Lavalair/invisible Users

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

    Lavalair/invisible Users

    If {anybody have or know the function and the exactly code for invisible mod of lavalair put all here please !
    }else
    { Delete this Topic}
    THX

    #2
    invincible mod or users?
    if you mean invincible mod
    when inserting the users to the online list do this
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>



    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

    if(!ismod($uid))
    {

    $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;");


    }
    }
    }
    </div>

    R.M.C
    ----------
    PHP Adovocate B)

    Comment


      #3
      yes m8 for invisible users TO HAVE THEY A OPTION TO BE INVISIBLE OR NOT . Sorry when i said "mod" i refered to "mode" . So i try something like this with a row in table ibwf_users wich name "invisible" if $invisuble[0]=1 then ann the user to online list else if $invisible[0]=0 dont add the user to online list ! BUT WHEN I DO THIS IN FUNCTION ADDONLINE .... IN THE LIST ONLINE ON THE CHAT APEARE -2 USERS OR -3 !!! I DONT KNOW TO DO THIS IS DONT WORK WELL thx

      Comment


        #4
        ok first creat a row call visible... place this below WHERE the user enter there pass and user name
        Code:
        echo "Login invincible ?:
         <select name=\"visible\"><option value=\"on\">Yes</option><option value=\"off\">no</option></select>
        ";
        //this in the post field 
        echo "<postfield name=\"visible\"
        value=\"$(visible)\"/>";
        Code:
        //on the login page if user login successfully 
        just 
        update the visible row 
        
        mysql_query("UPDATE ibwf_users SET visible=&#39;".$_GET["visible"]."&#39; WHERE nick=&#39;".$uid."&#39;");
        //addonline function
        <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
        $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


        $mode = mysql_fetch_array(mysql_query("SELECT visible FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
        if($mode[0]=="on")
        {

        $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;");
        }
        }
        }
        </div>

        R.M.C
        ----------
        PHP Adovocate B)

        Comment


          #5
          Thanx m8 thanx very much it is work now , with little changes , it is work more that i have expected

          Comment


            #6
            at index.php page??? please help
            if like my post click:

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

            Comment


              #7
              in core.php

              Comment


                #8
                m8 nice code (invisible users)
                please add the code in core.php file and upload it
                coz v dont want our site to go offline
                please
                coz i will get error if i mess the core.php

                Comment


                  #9
                  m8 nice code (invisible users)
                  please add the code in core.php file and upload it
                  coz v dont want our site to go offline
                  please
                  coz i will get error if i mess the core.php[/b]
                  why dont you make another(clone to main) site
                  for testing purpose, then at least you could try
                  by your self?
                  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


                    #10
                    i have added mod invisible code
                    i am getting this error

                    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;-10, 10&#39; at line 5

                    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>

                    //////////////////////Function add user to online list

                    function addonline($uid,$place,$plclink)
                    {
                    $hidden=mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                    if($hidden[0]==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

                    if(!ismod($uid))
                    {
                    $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(

                    </div>

                    Comment


                      #11
                      sorry maybe it is somethig incompatible with your table users... but i have done some changes too at this code... This it was only an ideea and i make changes to work on my chat

                      Comment


                        #12
                        if there are no users online
                        than only i am getting this error


                        You have an error in your SQL syntax; check the manual that corresponds to your
                        MySQL server version for the right syntax to use near &#39;-10, 10&#39; at line 5

                        Comment

                        Working...
                        X