If a new message is posted in a sub-board and that's the onlyã > > Ni> message in the sub-board, it seems that scan_ptr and last_readã > > Ni> would point to that message (is that correct?). If the ãcurrentlyã > > Ni> logged-in user reads that message, then scan_ptr and last_readã > > Ni> would remain unchanged since that's the only message in theã > > Ni> sub-board. During a newscan, how can a JavaScript script ãdetermineã > > Ni> whether the user has read that message (even if it wasn't ãwrittenã > > Ni> to the user - so the MSG_READ attribute wouldn't be set)?ã > >ã > > I've done a little bit more testing this morning, and now I'm ãwonderingã > > if 0 is a meaningful value for scan_ptr? If I post a new message in ãanã > > empty sub-board, it seems that the scan_ptr value for that sub-board ãisã > > 0 until I read the message I posted.ã > ã > Correct. Posting a message does not change any message pointers and theã > initial pointer value will be 0 (no message).ã > ã > > A related question is, will a message numberã > > (the 'number' property in a message header) ever be 0?ã > ã > No. 0 is a special value indicating "no message". You can read about SMBã > message numbers here: http://synchro.net/docs/smb.html#Index File ã(*.SID)ããThanks - This confirms what I was wondering.ããI understand that posting won't modify those pointers; maybe my question couldãhave been worded better in regards to that - I was referring to doing aãnewscan after a new message had been posted by another user (and on my BBS, Iãwas testing a situation where a sub-board only has one message in it).ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS - digitaldistortionbbs.comã
Sysop: | Karloch |
---|---|
Location: | Madrid, Spain |
Users: | 54 |
Nodes: | 8 (0 / 8) |
Uptime: | 128:41:18 |
Calls: | 700 |
Files: | 17,895 |
D/L today: |
128 files (60,769K bytes) |
Messages: | 66,010 |