Popup to PM in chat

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

8 replies · 388 views · started 17 years ago · 1 min read

3 participants
kei_ki7 Senior · 431 posts #1

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.

spiderwebs Developer · 193 posts #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

kei_ki7 Senior · 431 posts #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.

kei_ki7 Senior · 431 posts #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.

spiderwebs Developer · 193 posts #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

spiderwebs Developer · 193 posts #6

put this code where u want to get alerts

getalert($sid);

put this in ur core.php

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 "";
}
}

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

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/>";
}

if u hav any problem ask here 8)

E107 Security Team Leader Proudly Support AccountLab Plus Billing Software

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

kei_ki7 Senior · 431 posts #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.

spiderwebs Developer · 193 posts #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

huwad Developer · 215 posts #9

kei_ki7 wrote: 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..

$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>";
   }

if you dont have this code below in your inbxproc.php add it.. look for if($action=="sendpm") in your inbxproc.php

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();
  }

hacking is like sex. you get in, you get out and you pray you left nothing behind.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close