1
CoolPops
Fix: In 2.2.2 PM's remain marked new
  • 2005/10/13 14:33

  • CoolPops

  • Just popping in

  • Posts: 65

  • Since: 2003/4/9 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

Login

Who's Online

260 user(s) are online (43 user(s) are browsing Support Forums)


Members: 0


Guests: 260


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