5
Ok, so nobody can help me ?!?
Well, here´s a little something I came up with, but it won´t return anything when I call it - at least ANY ideas ANYBODY ?????
include "mainfile.php";
GLOBAL $xoopsUser;
$pm_handler =& xoops_gethandler('privmessage');
$uid = $xoopsUser->getVar('uid');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $uid));
$msgcount = $pm_handler->getCount($criteria);
$GLOBALS['xoopsTpl']->assign('msgcount', $msgcount);
if($xoopsUser){
echo "&flashvar_loggedIn=yes&";
if($msgcount > 0){
echo "&flashvar_newMessage=yes&";
}else{
echo "&flashvar_newMessage=no&";
}
}
else {
echo "&flashvar_loggedIn=no&";
}
?>
Please make this return something guys, I count on y´all !