Popup to PM in chat

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

    Popup to PM in chat

    How can i change the pm in chat to popup msg ?? or where i can edit ?? im using lavalair
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    #2
    just look in codes of indifun u will find that option
    E107 Security Team Leader
    Proudly Support AccountLab Plus Billing Software

    Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
    ------------------

    Comment


      #3
      ..what you mean indifun ?? is this a script ??
      Did I help you?
      You can help me too
      Your donations will help me finance my studies.

      Comment


        #4
        .. i saw indifun site and the PM in chatroom is the same
        Did I help you?
        You can help me too
        Your donations will help me finance my studies.

        Comment


          #5
          here the script is posted dude just figure out the codes n use in ur chat.php
          E107 Security Team Leader
          Proudly Support AccountLab Plus Billing Software

          Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
          ------------------

          Comment


            #6
            put this code where u want to get alerts
            PHP Code:
            getalert($sid); 
            put this in ur core.php
            PHP Code:
            function getalert($sid){
                if (
            alertstat($sid)==1){
                
            $userid getuid_sid($sid);
                    
            $count mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_private WHERE touid = $userid AND unread='1'"));
                    if(
            $count[0]>0){
                
            $lastmsg_id mysql_fetch_array(mysql_query("SELECT MIN(id) FROM ibwf_private WHERE touid = $userid AND unread='1'"));
                    
            $pminfo mysql_fetch_array(mysql_query("SELECT text, timesent, byuid, reported FROM ibwf_private WHERE id = $lastmsg_id[0]"));
                if(
            isonline($pminfo[2])){
            $iml "<img src=\"images/onl.gif\" alt=\"On\"/>";
            }else{
            $iml "<img src=\"images/ofl.gif\" alt=\"Off\"/>";
            }
            $msgtxt "
                <div class=\"boxed\">
                  <div class=\"boxedTitle\">
                    <h1 align=\"center\" class=\"boxedTitleText\"><b>Message Alert</b>
                </h1>
                  </div>
                  <div class=\"boxedContent\">
            "
            ;
            $msgtxt .= "<small><b>From</b>: $iml<a href=\"index.php?action=viewuser&amp;who=$pminfo[2]&amp;sid=$sid\">".getnick_uid($pminfo[2])."</a><br/>";
            $tmstamp $pminfo[1] + addhours();
            $tmdt date("d/m/Y h:i:s A"$tmstamp);
            $diff1=time()-$pminfo[1];
            $msgtxt .= "<b>Sent</b>: $tmdt<br/>".gettimemsg($diff1)."<br/>";
            $pmtext parsepm($pminfo[0], $sid);
            if(
            isspam($pmtext)){
            if((
            $pminfo[3]=="0") && ($pminfo[2]!=1)){
            mysql_query("UPDATE ibwf_private SET reported='1' WHERE id='".$pmid."'");
            }
            }
            $msgtxt .= "<b>Message</b>:<br/>".$pmtext;
            $msgtxt .= "<u><br/>Reply:</u>:<br/>";
            $msgtxt .= "<form action=\"inbxproc.php?action=sendpm&amp;who=$pminfo[2]&amp;sid=$sid\" method=\"post\"><textarea id=\"inputText\" name=\"pmtext\"></textarea><br/>";
            $msgtxt .= "<input id=\"inputButton\" type=\"submit\" value=\"Send\"/>";
            $msgtxt .= "</form>";
            $msgtxt .= "<br/><a href=\"inbox.php?action=main&amp;sid=$sid\">Go to Inbox</a><br/></small></div></div>";
            mysql_query("UPDATE ibwf_private SET unread='0' WHERE id = $lastmsg_id[0]");
            echo 
            $msgtxt;
            return;
            }
            else {
                return 
            "";
            }
            }
            else {
                return 
            "";
            }

            put this where u want to put link for on/off alerts

            PHP Code:
            if (alertstat($sid)==0){
            echo 
            "»<a href=\"index.php?action=alert&amp;sid=$sid\">Turn alerts on</a><br/>";
            }
            else{
            echo 
            "»<a href=\"index.php?action=alert&amp;sid=$sid\">Turn alerts off</a><br/>";

            if u hav any problem ask here
            E107 Security Team Leader
            Proudly Support AccountLab Plus Billing Software

            Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
            ------------------

            Comment


              #7
              ..i will try this later bro, thanks for help
              ..im working with my download category grrr the file size is not the same with the file size in sql grrr
              Did I help you?
              You can help me too
              Your donations will help me finance my studies.

              Comment


                #8
                change the sql file size n make it to maximum limit it will work
                E107 Security Team Leader
                Proudly Support AccountLab Plus Billing Software

                Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
                ------------------

                Comment


                  #9
                  Originally posted by kei_ki7 View Post
                  How can i change the pm in chat to popup msg ?? or where i can edit ?? im using lavalair
                  place this code where you want to place instant reply in pms in chat..

                  PHP Code:
                  $unreadinbox=mysql_fetch_array(mysql_query("SELECT byuid, text, id FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
                          
                  $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
                          
                  $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";
                          if (
                  $unreadinbox[0]>0)
                          {
                  $text parsepm($unreadinbox[1], $sid);
                  $by getnick_uid($unreadinbox[0]);
                    echo 
                  "<b>$by: </b>$text<br/>";
                    echo 
                  "REPLY:<br/>";
                    echo 
                  "<form action=\"inbxproc.php?action=sendpm&amp;who=$unreadinbox[0]&amp;sid=$sid&amp;rid=$rid\" method=\"post\">";
                    echo 
                  "<input name=\"pmtext\" maxlength=\"500\"/><br/>";
                    echo 
                  "<input type=\"submit\" value=\"Send\"/>";
                    echo 
                  "</form>";
                     } 
                  if you dont have this code below in your inbxproc.php add it.. look for if($action=="sendpm") in your inbxproc.php

                  PHP Code:
                  if($action=="sendpm")
                  {
                        echo 
                  "<head>";
                        echo 
                  "<title>Inbox</title>";
                        echo 
                  "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                        echo 
                  "</head>";
                        echo 
                  "<body>";
                        echo 
                  "<p align=\"center\">";
                    
                  $whonick getnick_uid($who);
                    
                  $byuid getuid_sid($sid);
                    
                  $tm time();
                    
                  $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
                    
                  $pmfl $lastpm[0]+getpmaf();
                    if(
                  $byuid==1)$pmfl=0;
                    if(
                  $pmfl>$tm)
                    {
                    
                  $rema $pmfl $tm;
                    echo 
                  "<img src=\"../images/notok.gif\" alt=\"X\"/>";
                    echo 
                  "Flood control: $rema Seconds<br/><br/>";
                    echo 
                  "<a href=\"lists.php?action=buds&amp;sid=$sid\">Buddylist</a><br/>";
                    echo 
                  "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
                    echo 
                  "</p></body></html>";
                    exit();
                    } 
                  Last edited by huwad; 30.08.09, 04:13.

                  Comment

                  Working...
                  X