Skip to content

Per User Data Recording and Modification

Damon Getsman edited this page Feb 7, 2015 · 3 revisions

dperuser.js

Notes

A lot of the features available for an individual to make their own online persona unique in vDOC or DOC/Citadel do not exist anywhere in Synchronet. Fortunately, the /sbbs/user/ subdirectory is not solely hogged by standard user data. It is also available for any sort of per-user information that needs to be stored, whether it be by external doors, new Synchronet additions, or whatever. I had been contemplating storing 'i'nfo and 'd'oing information in the extended comments section of the userbase record, but that would be a horrible place for a blob. Especially being as I already have utilized this section for notes regarding certain accounts.

This file is for any of the per-user informational setting/display routines, as well as the file IO necessary to ensure that this information is saved in the schema.

Layout

Current OO structure of userRecords

See also: JSON User Record Structure

Properties
  • maxInfoLines - for the user's 'i'nfo field
  • doingChars - how many characters can be utilized for the 'd'oing field (once implemented)
Sub-Objects
  • userDataIO - for handling disk IO in order to save and retrieve per-user information
  • userDataUI - for handling user interface for setting and displaying information from the per-user infoz
userDataIO Methods
  • saveInfo() - is passed an array (the info field) to store
userDataUI Methods
  • getInfo() - utilized to retrieve the correct amount of text from the user in order to set the 'i'nfo field as they see fit (almost certainly used directly within the call to saveInfo())

Current OO structure of userConfig