3
Thanks for the code. I would like the same thing but am running XOOPS 2.0.13.2. I just deployed into production and not ready to go to 2.0.14.
I tried the following code in a custom block that I use as my home page:
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$mc = $pm_handler->getCount($criteria);
<{if $mc > 0}>
<a class="highlight" href="<{$xoops_url}>/viewpmsg.php">Inbox(<span style="color:#ff0000; font-weight: bold;"><{$mc}>span>
a>
<{else}>
<a href="<{$xoops_url}>/viewpmsg.php">Inboxa>
<{/if}>
I got bits of the code from other places. It was a long shot.
Any ideas on how to get the inbox count in 2.0.13.2 in a custom block?
Kurt