2
Hi,
the messages do not show, because they are not assigned. You will have to do it in your theme. use this code in your theme.html file:
<{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('new_messages', $msgcount);
<{/php}>
before the user menu part and replace
$block.new_messages with
$new_messages.
To make it more clean, you can use smartie plug in with the code above and have a smartie constant.
For language part you can use the smartie constant like this:
<{$smarty.const._LOGIN}>
<{$smarty.const._REGISTER}>
<{$smarty.const._SEARCH}>
and so on ... Just check the name of the constant in language file.
MAKE A BACK UP FIRST!