SYNCHRONET--------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 58 из 100
 От   : Digital Man                         1:103/705         09 апр 24 12:19:14
 К    : Nightfox                                              09 апр 24 22:21:02
 Тема : A couple of questions
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 51571.sync@1:103/705 2a7b9425
@REPLY: 51569.sync@1:103/705 2a7b8e01
@TZUTC: -0700
@PID: Synchronet 3.20a-Win32 master/8108e0cd9 Apr 08
202 MSC 1916
@TID: SBBSecho 3.20-Linux master/8108e0cd9 Apr 08
2024 11:49 GCC 12.2.0
@COLS: 80
@BBSID: VERT
@CHRS: CP437 2
@NOTE: FSEditor.js v1.105
  Re: A couple of questions
  By: Digital Man to Nightfox on Tue Apr 09 2024 11:53 am

 > i.e. in Synchronet (like WWIV before it), if you perform successive "new
 > file scans" during the same "call" (logon), you`ll see the same new files
 > (unless any new files were uploaded during the call, and then you`d see them
 > too). Synchronet has always worked this way:
 > https://synchro.net/docs/user.html#NewFileScan

Correction to that document though:
"New File Scan (N)
N from the File Transfer prompt lists all new files uploaded since your last
logon."

 The "since your last logon" part was actually changed to "since
your last scan during your last logon" at some point in SBBS v2.

 Synchronet, internally, updates a value (sbbs_t::last_ns_time which is
exposed in JS as bbs.last_new_file_time) every time the user scans for new
files. When the user logs-off, that value is stored in the user`s "last
new file scan" field (in JS, that`s user.new_file_time). When the user
logs back on, the sbbs_t::ns_time (in JS, bbs.new_file_time) is set to
the user.new_file_time, but also may be adjusted by the user while
online, and that value (bbs.new_file_time) is what`s used as the comparison
date/time stamp to determine what files are "new".

 If you`re writing your own "new file scan" mod, your mod would
need to update the bbs.last_new_file_time value to the current date/time
every time a user scans for new files. The storing of the
last_new_file_time to the user`s `new_file_time` field/property is handled automatically
by SBBS upon log-off.
-- 
                                            digital man (rob)

Breaking Bad quote #28:
Gomey, got beat your pinata. - Hank Schrader
Norco, CA WX: 76.0°F, 16.0% humidity, 7 mph WNW wind, 0.00 inches rain/24hrs
--- SBBSecho 3.20-Linux
 * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
SEEN-BY: 50/109 103/705 154/10 218/700 221/1
240/1120 280/464 301/1 113
SEEN-BY: 341/66 463/68 467/888 712/848 3634/12
5000/111 5005/49 5019/40
SEEN-BY: 5020/715 848 1042 4441 12000 5030/49 1081
5054/8 5060/900 5061/133
SEEN-BY: 5075/128 5083/444
@PATH: 103/705 301/1 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх