chat posts into plusses

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

    #31
    the wapnetph script has the function of 1 chat post = 1 plusses
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    Comment


      #32
      Originally posted by godzilla View Post
      i tried to search here but i could not get it so i posted my request.

      i want code to change chat post in to pluses so that if a user chatting in chat room then he get 100 pluses for 30 min

      thanks
      i dont know if it will work..i never Test this...
      but it is something like this i just modify in function chat

      Code:
      function addtochat($uid, $rid)
      {
        $timeto = 120;
        $timenw = time();
        $timeout = $timenw - $timeto;
        $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
        $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
      
      
      if(!timeout($uid))
          {
      if($hours==5)
          {
      $kano ="100";
      $msg = "".getnick_uid(getuid_sid($sid))."Hey thanks 4 spending  30mins here in chatroom! u got 100price plusses."."[br/][small]Note: This is an automated PM. [/small]";
                autopm($msg, $uid);
      $res = mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
      $res = mysql_query("UPDATE ibwf_users SET onlinedone='1' WHERE id='".$uid."'");
      $res = mysql_query("UPDATE ibwf_users SET battlep=battlep+'$kano' WHERE id='".$uid."'");
      }
      }
      
      $ttime = time();
      mysql_query("UPDATE ibwf_users SET resetime='".$ttime."' WHERE id='".$uid."'");
       mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
        mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."'");
      
        if(!$res)
        {
          mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");
      $res = mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."' WHERE userid='".$uid."'");
      
        }
      
      
      
      
      }
      com site: http://vampist.net
      download site: http://wapdloads.net
      fb: http://www.facebook.com/pmplx

      Comment


        #33
        above code wont work ...its missing a function
        and is also making server/database work harder than it needs to.

        Comment


          #34
          hehe i havent tested it...then modify it
          com site: http://vampist.net
          download site: http://wapdloads.net
          fb: http://www.facebook.com/pmplx

          Comment


            #35
            no: timeout($uid)

            Comment

            Working...
            X