1
irmtfan
system block user in xoops2.2 is very simple
  • 2005/8/4 16:21

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


there is no inbox link in system_block_user.html so how users know about their new pms? can anyone provide a solution to show new pms there?
also the sublinks in profile module like search, change email and change pass must be in user menu. in brief word user menu is very simple and has not usefull links

2
irmtfan
Re: system block user in xoops2.2 is very simple
  • 2005/8/6 4:32

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


*bump*
its possible to add profile module links in user menu block but how about inbox? its very important

3
banesto
Re: system block user in xoops2.2 is very simple
  • 2005/8/23 13:50

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


yeah, i've got the same problem!
profile tools i sent to the USER MENU drop down menu. But i also need indication for new pm!! PLEASE TELL ME HOW TO DO IT!
where's my red bull!

4
banesto
Re: system block user in xoops2.2 is very simple
  • 2005/8/23 16:20

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


so, i've got the point, but not the whole.

to make indication of a new incoming message:

system_blocks.php user section should look like this:

========

function b_system_user_show()
{
global $xoopsUser;
if (is_object($xoopsUser)) {
$pm_handler =& xoops_gethandler('privmessage');
$block = array();
$block['lang_youraccount'] = _MB_SYSTEM_VACNT;
$block['lang_editaccount'] = _MB_SYSTEM_EACNT;
$block['lang_notifications'] = _MB_SYSTEM_NOTIF;
$block['lang_logout'] = _MB_SYSTEM_LOUT;
$block['lang_adminmenu'] = _MB_SYSTEM_ADMENU;
$block['admin'] = $xoopsUser->isAdmin(0);
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$block['new_messages'] = $pm_handler->getCount($criteria)-1;
return $block;
}
return false;
}

=========

system_block_user.html make changes like

<{if $block.new_messages > 0}>
Inbox (<{$block.new_messages}>)
<{else}>
Inbox
<{/if}>

But this does not solve the problem, because in XOOPS 2.2 there are problem with read/unread messages.
where's my red bull!

Login

Who's Online

342 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 342


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits