global $xoopsUser;
if( $xoopsUser )
{
$pm_handler =& xoops_gethandler('privmessage');
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$pm = $pm_handler->getCount($criteria);
}
if( $pm )
{
echo "<a href="/viewpmsg.php" title="Read your new Private Messages">Private Messages ($pm)</a>n";
}
else
{
echo "No new Private Messagesn";
}
|
Re: Inbox messages display in 2RC2
Upgraded to 2RC2 and lost my inbox new messages display. In system_block_user.html, I re-added this code so that "inbox" would show in the user menu:
Quote:
And the 2.0.10 system_blocks.php, used to use:
Quote:
but now this doesn't work and results in fatal call to non-object.
Has anyone modified this yet?
Thanks.