Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Unread PM/Thread Status
brad-t Offline
Member
***
Posts: 120
Joined: Apr 2011
Post: #1
Unread PM/Thread Status
Is there a way to check if a PM's or thread's status is unread in the private_messagebit and forumdisplay_thread templates?
(This post was last modified: 11-07-2016 07:35 AM by brad-t.)
11-07-2016 04:26 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Unread PM/Thread Status
$message['status'] and $message['readtime'] should be 0 for unread PMs.

Threads are more tricky as they can be read, but have unread posts.  MyBB uses $thread['lastread'] and compares it with the lastpost time to see if a thread should be marked as containing unread posts.

My Blog
04-02-2017 06:26 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: