11
Cavan
Re: PM Hacks...
  • 2005/6/5 16:22

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


I'm no php expert by any means...Sorry about the confusion...I was concerned about mixing php in the theme.html. Regardless, this only worked while I was still logged in. I sent a test pm to a test account and when I logged out, I had a blank index.php page. Did I miss something here?

12
ladon
Re: PM Hacks...
  • 2005/6/5 16:28

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


You did miss something, I could've posted it clearer:

<{if $xoops_isuser}>
    <{
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('msgcount'$msgcount);
    <{/
php}>
<{/if}>


Put the same if $xoops_isuser around the pm inbox code.

13
Cavan
Re: PM Hacks...
  • 2005/6/5 16:36

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


ladon:

Thank you for helping me with this...One issue remains: After sending a pm, there's no longer a message stating that the message has been sent (in the pm popup window). Is there a way to get this back?

14
Cavan
Re: PM Hacks...FIXED!!
  • 2005/6/5 17:10

  • Cavan

  • Friend of XOOPS

  • Posts: 218

  • Since: 2004/11/28


Fixed the problem---it was a css issue, not the hack itself. A HUGE thank you to ladon for helping me get this working on our site!

Login

Who's Online

125 user(s) are online (27 user(s) are browsing Support Forums)


Members: 0


Guests: 125


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