In JavaScript scripts for Synchronet, is there a way to mark a message in a sub-board as read? The MsgBase object has the get_msg_body() function, which retrieves the body of a message, but looking at the docs, I'm not
sure that I see a way to change the attributes of a message to mark one as read by the user.
Yes, using MsgBase.put_msg_header()
Yes, using MsgBase.put_msg_header()
Re: Marking a message as read
By: Digital Man to Nightfox on Mon May 10 2010 18:25:49
Yes, using MsgBase.put_msg_header()
If I do that to a message in one of my message sub-boards, will that set it as read for everyone? What I want to do is just mark the message as read just for the user who read it, so the message will no longer come up in a scan for new messages to the user in the sub-board.
No, the "READ" attribute means the "To" user read it.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,044 |
Nodes: | 15 (0 / 15) |
Uptime: | 00:26:36 |
Calls: | 500,299 |
Calls today: | 17 |
Files: | 95,204 |
U/L today: |
1 files (1,581K bytes) |
D/L today: |
2,575 files (614M bytes) |
Messages: | 465,287 |
Posted today: | 13 |