Updated for V3 credit to Original Author
in shoutbox.php find
add below
in shoutbox.php find
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}add below
if ($CURUSER) {
//check for new pm's
$res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
$arr = mysqli_fetch_row($res);
$unreadmail = $arr[0];
if ($unreadmail)
print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font> ");
}
