Subj : Re: a small javascript...
To : Internetking
From : Digital Man
Date : Tue Apr 12 2011 03:19 pm
Re: Re: a small javascript...
By: Internetking to Digital Man on Tue Apr 12 2011 06:20 am
> On Mon, 11 Apr 2011, Digital Man wrote:
>
> > Date: Mon, 11 Apr 2011 16:22:00 -0700
> > From: Digital Man <digital.man@TIME/VERT>
> > To: Internetking
> > Newsgroups: DOVE-Net.Synchronet_JavaScript
> > Subject: a small javascript...
> >
> >
> > Re: a small javascript...
> > By: Internetking to All on Sat Apr 09 2011 11:43 am
> >
> > >
> > > Hello all...
> > >
> > > I would like to know how to put in newuser.js a small part where it
> > > display a text file for user to read and agree like for example it
> > > display bbsrules.txt in c:/slbbs/text then it will ask you if you agree
> > > to it .. if yes then go next step if no then disconnect
> >
> > Here's an example (untested):
> >
> > console.printfile("c:/slbbs/text/bbsrules.txt");
> > if(console.noyes("Do you agree to the BBS rules"))
> > bbs.hangup();
>
> Okay it seems newuser.js is not the file i want... i want it to be read
> before the regstration is actually saved to the BBS database... how can
> this be done before that so will not be a waste of time deleting people
> who did not agree to it....
Use the built-in "magic word" feature:
1. Set SCFG->System->Advanced Options->New User Magic Word to "agree".
2. Put your agreement text in the 'MagicWordPrompt' line of your ctrl/text.dat
file (using the @TYPE or @INCLUDE codes to print an external text/ANSI file if
that is your preference) and ask the user to type "AGREE". If they do not, they
will be disconnected and the account will not be created.
3. You can change the 'FailedMagicWord' line in your ctrl/text.dat to explain
that agreement of terms is required for membership to the BBS (or something
like that).
digital man
Synchronet "Real Fact" #23:
The Digital Dynamics company ceased day-to-day opperations in late 1995.
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net