Subj : Re: To Digital Man To : alt.bbs.synchronet From : Sinister x Date : Fri Aug 05 2005 07:34 pm From Newsgroup: alt.bbs.synchronet "Digital Man" wrote in message news:42F328D7.33052.sync@vert.synchro.net... > To: Sinister x > Re: Re: To Digital Man > By: Sinister x to alt.bbs.synchronet on Fri Aug 05 2005 05:55 am > > > From Newsgroup: alt.bbs.synchronet > > > > I didn't think about that, but that's definitely an option thanks for > > the > > help. > > > > The basic implication of what I'm trying to make though is something > > like > > this: > > > > Let's say a user is in the oBV/2 command shell that I'm making, inside > > that > > shell let's say there's a few options that are separate from what is in > > the > > rest of the board. They'll have an option for which stats set, menu set, > > and > > prompts set that they're on within the oBV/2 command shell that I want > > them > > to be able to configure on a per-user basis with prefs saved. I would > > PREFERRABLY like to be able to have this information saved somewhere on > > the > > board in one of the regular data files, instead of having to role my own > > configuration files. Is this kind of extensibility possible or on the > > horizon? > > > > I suppose another way to illustrate is like this, in my software that > > I've > > been working on called Psylent, if a user wanted to add extensibility to > > his > > own configuration options, he could simply go into the rdbms, create a > > new > > table that is 1:many from the user table and use the UserNumber as the > > foreign key. Then they could have whatever config options they wanted. > > Doing > > it by file i/o though, I couldn't see a feasible way of doing that > > without > > specifying your own config files, b/c any option that you would add to > > the > > user's data would grow the user data file (ok in mystic it's called > > users.dat not sure what it is in synchronet), which is a bitch as a > > developer to make an upgrade available for users unless you role your > > own > > upgrade program to grow the config file. Hope that helps with what I'm > > trying to explain. > > Sure. > > Any file named data/user/####.* will be automatically "managed" by the BBS > (e.g. deleted when/if the user is deleted), so for example, the web/ssjs > user > preferences are stored in data/user/####.html_prefs. > > The ####.html_prefs file is a standard .ini-format file, for which there > is > already a JS API (part of the "File" object, see jsobjs.html for details) > to > create, write-to, and read-from, so you don't have to "roll your own". > > P.S. Please post your reply *below* the quoted text, as you see everyone > else > doing here. :-) > > digital man > Very cool, and sorry using Outlook Express right now. (: --- Synchronet 3.12b-Win32 NewsLink 1.83 .