|
|
|
|
|
|
|
René
Noobie

Posts: 31

|
 |
Re:[Done 1.4.1] New Indicator for IMs
« Reply #7 on: August 16, 2002, 08:45:41 PM » |
|
This is fun! I added a .wav file after the "new.gif". ..when there is a new message you hear "Master, I've got mail for you" listenSomething like this: <search for> $requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)"); $temp2 = mysql_fetch_row($requestred); $munred = $temp2[0]; if ($munred == "1") { $isare = $txt[newmessages0]; } else { $isare = $txt[newmessages1]; } if($mnum == "1") { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$txt[newmessages4] $munred $isare $txt[newmessages2]."; } else { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$txt[newmessages4] $munred $isare $txt[newmessages2]."; } </search for>
<replace> $requestred = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && readBy!=1 && deletedBy!=1)"); $temp2 = mysql_fetch_row($requestred); $munred = $temp2[0]; if ($munred > 0) { $impic = " <img src=\"$imagesdir/new.gif\" border=\"0\"><embed src=\"http://www.slonet.org/~rloomis/mail6a.wav\" hidden=\"true\" autostart=\"true\">"; } else { $impic = ""; } if($mnum == "1") { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[471]</a>$impic"; } else { $yyim = "$txt[152] <a href=\"$cgi;action=im\">$mnum $txt[153]</a>$impic"; } </replace>
|
|
« Last Edit: August 16, 2002, 08:48:36 PM by René »
|
Logged
|
|
|
|
|
|
|
|
|
|
|