1
I read that others were having this problem and I tried to locate the original post but could not but wanted to get this simple fix out there so I created a new thread. Sorry!
----
Got tired of seeing messages as new all the time, especially with the
pmblock module I made so I dove into the code and the fix is very easy.
On line 163 in modules/pm/readpmsg.php it contains:
if ($pm->getVar("from_userid") == $xoopsUser->getVar("uid") && $pm->getVar('read_msg') == 0) {
$pm_handler->setRead($pm);
}
Well, the "from_userid" if portion says, if the person who sent the PM is reading equal to the person currently reading the PM (getVar("uid") part) then mark it read.
In reality it should be when "to_userid" is currently reading it, then mark it read.
So, simply change "from_userid" to "to_userid" and everything will work as sopose to.
Jeremy
http://lifewithchrist.org