So far i have this:
Code:
chdir("./forums/");
require_once("./global.php");
chdir("../");
if (($bbuserinfo['pmpopup']) && ($bbuserinfo['pmunread'] > 0)) {
echo "<script type=\"text/javascript\">";
echo " confirm(\"You have a new PM from $newpm[username] ... it's called $newpm[title]\");";
echo "</script>";
}
The pop up works if you have a new PM, but it doesn't display the username and title of the PM. Is there a variable that stores this information? I am currently looking through the different portals to see what they have and haven't figured it out.