Results 1 to 9 of 9

Thread: Popup to PM in chat

  1. #1
    Senior Member kei_ki7's Avatar
    Join Date
    Jun 2009
    Location
    Philippines
    Posts
    435
    Thanks
    54
    Thanked 24 Times in 20 Posts
    Rep Power
    4

    Default 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 [Only registered and activated users can see links. Click Here To Register...]
    Your donations will help me finance my studies.

  2. #2
    Senior Member spiderwebs's Avatar
    Join Date
    Aug 2009
    Posts
    170
    Thanks
    29
    Thanked 9 Times in 6 Posts
    Rep Power
    4

    Default

    just look in codes of indifun u will find that option

  3. #3
    Senior Member kei_ki7's Avatar
    Join Date
    Jun 2009
    Location
    Philippines
    Posts
    435
    Thanks
    54
    Thanked 24 Times in 20 Posts
    Rep Power
    4

    Default

    ..what you mean indifun ?? is this a script ??
    Did I help you?
    You can help me too [Only registered and activated users can see links. Click Here To Register...]
    Your donations will help me finance my studies.

  4. #4
    Senior Member kei_ki7's Avatar
    Join Date
    Jun 2009
    Location
    Philippines
    Posts
    435
    Thanks
    54
    Thanked 24 Times in 20 Posts
    Rep Power
    4

    Default

    .. i saw indifun site and the PM in chatroom is the same
    Did I help you?
    You can help me too [Only registered and activated users can see links. Click Here To Register...]
    Your donations will help me finance my studies.

  5. #5
    Senior Member spiderwebs's Avatar
    Join Date
    Aug 2009
    Posts
    170
    Thanks
    29
    Thanked 9 Times in 6 Posts
    Rep Power
    4

    Default

    here the script is posted dude just figure out the codes n use in ur chat.php

  6. #6
    Senior Member spiderwebs's Avatar
    Join Date
    Aug 2009
    Posts
    170
    Thanks
    29
    Thanked 9 Times in 6 Posts
    Rep Power
    4

    Default

    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

  7. #7
    Senior Member kei_ki7's Avatar
    Join Date
    Jun 2009
    Location
    Philippines
    Posts
    435
    Thanks
    54
    Thanked 24 Times in 20 Posts
    Rep Power
    4

    Default

    ..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 [Only registered and activated users can see links. Click Here To Register...]
    Your donations will help me finance my studies.

  8. #8
    Senior Member spiderwebs's Avatar
    Join Date
    Aug 2009
    Posts
    170
    Thanks
    29
    Thanked 9 Times in 6 Posts
    Rep Power
    4

    Default

    change the sql file size n make it to maximum limit it will work

  9. #9
    Senior Member
    Join Date
    Apr 2009
    Posts
    217
    Thanks
    4
    Thanked 70 Times in 10 Posts
    Rep Power
    0

    Thumbs up

    Quote Originally Posted by kei_ki7 [Only registered and activated users can see links. Click Here To Register...]
    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 at 04:13.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Chat Admin (lavalair Script)
    By hypetype in forum Coding Forum
    Replies: 16
    Last Post: 15-06-10, 14:04
  2. Chat Mods On Lava
    By uNrEaL in forum Coding Forum
    Replies: 12
    Last Post: 14-03-09, 22:51
  3. Ajax Chat In Wapdesire (lavalair) Only For Pc-usage
    By monk77 in forum REQUEST FORUM
    Replies: 4
    Last Post: 10-02-09, 19:11
  4. Pro Chat Rooms V3.0.2 Php Nulled
    By jayasanka in forum Scripts Forum
    Replies: 6
    Last Post: 03-12-08, 23:14
  5. Pcpin Chat
    By sweetangel in forum Scripts Forum
    Replies: 4
    Last Post: 08-11-08, 09:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19