How can i change the pm in chat to popup msg ?? or where i can edit ?? im using lavalair
Popup to PM in chat
Collapse
X
-
just look in codes of indifun u will find that optionE107 Security Team Leader
Proudly Support AccountLab Plus Billing Software
Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
------------------
-
here the script is posted dude just figure out the codes n use in ur chat.phpE107 Security Team Leader
Proudly Support AccountLab Plus Billing Software
Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
------------------
Comment
-
put this code where u want to get alerts
put this in ur core.phpPHP Code:getalert($sid);
put this where u want to put link for on/off alertsPHP 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&who=$pminfo[2]&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&who=$pminfo[2]&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&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 ""; } }
if u hav any problem ask herePHP Code:if (alertstat($sid)==0){ echo "»<a href=\"index.php?action=alert&sid=$sid\">Turn alerts on</a><br/>"; } else{ echo "»<a href=\"index.php?action=alert&sid=$sid\">Turn alerts off</a><br/>"; }
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
-
change the sql file size n make it to maximum limit it will workE107 Security Team Leader
Proudly Support AccountLab Plus Billing Software
Want your Apps to be Developed ??? mail us your requirement at info@csarlab.com
------------------
Comment
-
place this code where you want to place instant reply in pms in chat..Originally posted by kei_ki7 View PostHow can i change the pm in chat to popup msg ?? or where i can edit ?? im using lavalair
if you dont have this code below in your inbxproc.php add it.. look for if($action=="sendpm") in your inbxproc.phpPHP 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&who=$unreadinbox[0]&sid=$sid&rid=$rid\" method=\"post\">"; echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>"; echo "<input type=\"submit\" value=\"Send\"/>"; echo "</form>"; }
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&sid=$sid\">Buddylist</a><br/>"; echo "<a href=\"index.php?action=main&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

Comment