1
Lance_
Theme and PM related error
  • 2004/8/13 18:43

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


Hello,

I am getting an error when accessing the IBP module.
I know the error stems from the PM code on my Theme(Montisarts 3 new themes) versus the changed code by the IPB files in the PM section.

The code in question is:

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('msgcount', $msgcount); <----this being line 69?>

_tpl_vars['msgcount'] > 0): ?>
Inbox (_tpl_vars['msgcount']; ?>
)


Inbox


Giving an error:
Fatal error: Call to a member function on a non-object in theme.html on line 69


Can anyoneshed some light on the incorrect variables or code?

Thanks.

Login

Who's Online

337 user(s) are online (248 user(s) are browsing Support Forums)


Members: 0


Guests: 337


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