make a php custom block with the following code;
le="color: #000000"><?php 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"; }
would this also work for anything? i have a couple sections that won't work well in news or sections and would like to have a couple more blocks/modules(?) to set up ... i'm a noob when it comes to this ... just do html *sighs* .. thanks!