Time Online

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

    #16
    it didn't work on me.

    Comment


      #17
      It wont work 0n u. :D .
      Its lavalair chat scripts

      Comment


        #18
        add this in core to ya addonline function
        $lastact=mysql_fetch_array(mysql_query("SELECT lastact FROM members WHERE uid='".$uid."'"));
        $user_time=mysql_fetch_array(mysql_query("SELECT timeon FROM members WHERE uid='".$uid."'"));
        $timetoadd=microtime(get_as_float)-$lastact[0];
        if($timetoadd>120)$timetoadd=0;
        mysql_query("UPDATE members SET timeon='".($user_time[0]+$timetoadd)."' WHERE uid='".$uid."'");

        and this in profiles
        echo "<b>Time Online:</b> ".gettimemsg($pinfo[4])."<br/>";

        and sql
        `timeon` int(255) NOT NULL default '0',

        Comment


          #19
          This one aint working for me proper. The code above just shows in my profile time online : online. Even when a member isnt on

          Comment


            #20
            give it time it will change m8 trust me

            Comment


              #21
              sorry my bad m8 lol use this in profiles
              $timeon=mysql_fetch_array(mysql_query("SELECT timeon FROM ibwf_users WHERE id='".$who."'"));
              echo "<b>Time Online:</b> ".gettimemsg($timeon[0])."<br/>";

              Comment

              Working...
              X