From
Digital Man@VERT to
Nightfox on Fri Feb 11 12:24:58 2022
Re: new_file_time, bbs.last_new_file_timeã By: Nightfox to Digital Man on Fri Feb 11 2022 10:01 amãã > Hi DM,ã >ã > While looking at the JS docs, I'm curious, what are the differences betweenã > user.new_file_time, bbs.new_file_time, and bbs.last_new_file_time? Whenã > should those be used (and updated)?ããUpon logon to the terminal server, bbs.new_file_time and bbs.last_new_file_time are set to the current user.new_file_time value.ããA new file scan displays files uploaded (added/imported) since the current bbs.new_file_time value. The bbs.new_file_time value can be manipulated by the user, e.g. they want to review files that have been uploaded over the past month or whatever.ããWhen the user executes a new file scan, bbs.last_new_file_time is updated to the current time (this happens automatically when using the built-in file listing logic). The bbs.last_new_file_time isn't actually used for anything until the user logs-off and its value is then copied to the user.new_file_time to be used for the next logon (this copy/sync of the last_new_file_time -> user.new_file_time is built-in to the BBS's logout logci and nothing a script would need to do).ããThis scheme insures that a user will never "miss" the display of new files on the BBS and that they would not normally see the same/repeat "new" files between successive sessions.ã-- ã digital man (rob)ããRush quote #60:ãPlays fast forward just long as he can, he won't need a bed, he's a digital manãNorco, CA WX: 83.6øF, 18.0% humidity, 5 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã