• a small javascript...

    From Internetking@VERT/TIME/THRWHITE to All on Sat Apr 9 11:43:00 2011
    ã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ãããthanks for your help in this.... ãããNathanãã---ã þ Synchronet þ The Whitehouse of Sex - whitehouse.hulds.com - the kinky bbs!!!ã
  • From Nightfox@VERT/DIGDIST to Internetking on Sat Apr 9 18:59:56 2011
    Re: a small javascript...ã By: Internetking to All on Sat Apr 09 2011 11:43:00ãã > I would like to know how to put in newuser.js a small part where it displayã > text file for user to read and agree like for example it display bbsrules.txã > in c:/slbbs/text then it will ask you if you agree to it .. if yes then go nã > step if no then disconnectããAs always, when doing any programming or software development, the firstãresource I use is the programming documentation.. The documentation forãSynchronet's JavaScript object model is located here:ãhttp://www.synchro.net/docs/jsobjs.htmlããIf you are not familiar with JavaScript, I would suggest first reading throughãa JavaScript tutorial and trying to write some of your own little scripts toãwork with it a little so you can get more familiar with it.ããFor the first part of what you want to do, to display a text file, you might beãable to use console.printfile(), or maybe bbs.menu(). For the second part, toãask the user a yes/no question, you could use console.yeseno() (if the defaultãanswer is to be "yes") or console.noyes() (if the default answer is to beã"no").ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS: digdist.bbsindex.comã
  • From Internetking@VERT/THRWHITE to Nightfox on Sun Apr 10 02:35:00 2011
    Re: a small javascript...ã By: Nightfox to Internetking on Sat Apr 09 2011 06:59 pmãã > > I would like to know how to put in newuser.js a small part where it dispã > > text file for user to read and agree like for example it display bbsrulesã > > in c:/slbbs/text then it will ask you if you agree to it .. if yes then gã > > step if no then disconnectãã > As always, when doing any programming or software development, the firstã > resource I use is the programming documentation.. The documentation forã > Synchronet's JavaScript object model is located here:ã > http://www.synchro.net/docs/jsobjs.htmlããokay i read it that leads another question about that link...ããã > If you are not familiar with JavaScript, I would suggest first reading throuã > a JavaScript tutorial and trying to write some of your own little scripts toã > work with it a little so you can get more familiar with it.ããwhich is the best books, and/or website to read about it?ãã > For the first part of what you want to do, to display a text file, you mightã > able to use console.printfile(), or maybe bbs.menu(). For the second part, ã > ask the user a yes/no question, you could use console.yeseno() (if the defauã > answer is to be "yes") or console.noyes() (if the default answer is to beã > "no").ããok another question about this.... ãããi found something on that website link you gave above.... ãããhangupvoidbbs.hangup() 3.10 hangup (disconnect) immediately ããso... ããhow will that work... ããif person choose no then it will run above and if person say yes then it willãgo next steps in the newuser.js file.... ãããthanks again....ãã ãã---ã þ Synchronet þ The Whitehouse of Sex - whitehouse.hulds.com - the kinky bbs!!!ã
  • From Nightfox@VERT/DIGDIST to Internetking on Sun Apr 10 09:30:10 2011
    Re: a small javascript...ã By: Internetking to Nightfox on Sun Apr 10 2011 02:35:00ãã > > If you are not familiar with JavaScript, I would suggest first reading thã > > a JavaScript tutorial and trying to write some of your own little scriptsã > > work with it a little so you can get more familiar with it.ãã > which is the best books, and/or website to read about it?ããI've just tended to search for JavaScript online and read the web sites &ãtutorials I've come across online.. I don't have any specific bestãbooks/websites I feel like I can recommend - just that Google is your friend.ã:)ãã > i found something on that website link you gave above.... ã > hangupvoidbbs.hangup() 3.10 hangup (disconnect) immediately ã > so... ãã > if person choose no then it will run above and if person say yes then it wiã > go next steps in the newuser.js file.... ããNot sure what you're asking.. Are you asking me to write your script for you?ããNightfoxãã---ã þ Synchronet þ Digital Distortion BBS: digdist.bbsindex.comã
  • From Internetking@VERT/THRWHITE to Nightfox on Sun Apr 10 13:28:00 2011
    Re: a small javascript...ã By: Nightfox to Internetking on Sun Apr 10 2011 09:30 amãã > Re: a small javascript...ã > By: Internetking to Nightfox on Sun Apr 10 2011 02:35:00ãã > > > If you are not familiar with JavaScript, I would suggest first readingã > > > a JavaScript tutorial and trying to write some of your own little scriã > > > work with it a little so you can get more familiar with it.ãã > > which is the best books, and/or website to read about it?ãã > I've just tended to search for JavaScript online and read the web sites &ã > tutorials I've come across online.. I don't have any specific bestã > books/websites I feel like I can recommend - just that Google is your friendã > :)ãã > > i found something on that website link you gave above.... ã > > hangupvoidbbs.hangup() 3.10 hangup (disconnect) immediately ã > > so... ãã > > if person choose no then it will run above and if person say yes then itã > > go next steps in the newuser.js file.... ãã > Not sure what you're asking.. Are you asking me to write your script for yoããwell i am trying to get to know how to do the small snippet to put in myãnewuser.js on this concept and i am trying to make something work what youãhave suhhested here... but i will do research on it but any help is alwaysãapprecated i am still learning this part lolãã---ã þ Synchronet þ The Whitehouse of Sex - whitehouse.hulds.com - the kinky bbs!!!ã
  • From Corey@VERT/TSGC to Internetking on Sun Apr 10 21:25:23 2011
    Re: a small javascript...ã By: Internetking to Nightfox on Sun Apr 10 2011 01:28 pmãã > Re: a small javascript...ã > By: Nightfox to Internetking on Sun Apr 10 2011 09:30 amã > ã > > Re: a small javascript...ã > > By: Internetking to Nightfox on Sun Apr 10 2011 02:35:00ã > ã > > > > If you are not familiar with JavaScript, I would suggest first readã > > > > a JavaScript tutorial and trying to write some of your own little sã > > > > work with it a little so you can get more familiar with it.ã > ã > > > which is the best books, and/or website to read about it?ã > ã > > I've just tended to search for JavaScript online and read the web sites &ã > > tutorials I've come across online.. I don't have any specific bestã > > books/websites I feel like I can recommend - just that Google is your friã > > :)ã > ã > > > i found something on that website link you gave above....ã > > > hangupvoidbbs.hangup() 3.10 hangup (disconnect) immediatelyã > > > so...ã > ã > > > if person choose no then it will run above and if person say yes thenã > > > go next steps in the newuser.js file....ã > ã > > Not sure what you're asking.. Are you asking me to write your script forã > ã > well i am trying to get to know how to do the small snippet to put in myã > newuser.js on this concept and i am trying to make something work what youã > have suhhested here... but i will do research on it but any help is alwaysã > apprecated i am still learning this part lolã > ããsmall java? demitasse?ãã"Practise safe Lunch, Use a Condiment"ããã---ã þ Synchronet þ Three Stooges Gentlemens Club - Las Vegas, Nvã
  • From Internetking@VERT/THRWHITE to Corey on Mon Apr 11 03:48:00 2011
    ããOn Sun, 10 Apr 2011, Corey wrote:ãã> Date: Sun, 10 Apr 2011 21:25:00 -0700ã> From: Corey <corey@VERT/TSGC>ã> To: Internetkingã> Newsgroups: DOVE-Net.Synchronet_JavaScriptã> Subject: a small javascript...ã> ã>ã> Re: a small javascript...ã> By: Internetking to Nightfox on Sun Apr 10 2011 01:28 pmã>ã> > Re: a small javascript...ã> > By: Nightfox to Internetking on Sun Apr 10 2011 09:30 amã> >ã> > > Re: a small javascript...ã> > > By: Internetking to Nightfox on Sun Apr 10 2011 02:35:00ã> >ã> > > > > If you are not familiar with JavaScript, I would suggest first readã> > > > > a JavaScript tutorial and trying to write some of your own little sã> > > > > work with it a little so you can get more familiar with it.ã> >ã> > > > which is the best books, and/or website to read about it?ã> >ã> > > I've just tended to search for JavaScript online and read the web sites &ã> > > tutorials I've come across online.. I don't have any specific bestã> > > books/websites I feel like I can recommend - just that Google is your friã> > > :)ã> >ã> > > > i found something on that website link you gave above....ã> > > > hangupvoidbbs.hangup() 3.10 hangup (disconnect) immediatelyã> > > > so...ã> >ã> > > > if person choose no then it will run above and if person say yes thenã> > > > go next steps in the newuser.js file....ã> >ã> > > Not sure what you're asking.. Are you asking me to write your script forã> >ã> > well i am trying to get to know how to do the small snippet to put in myã> > newuser.js on this concept and i am trying to make something work what youã> > have suhhested here... but i will do research on it but any help is alwaysã> > apprecated i am still learning this part lolã> >ã>ã> small java? demitasse?ã>ãããjust a small snippet to stick in newusers.js file forcing new users to ãread documents with asking yes or no ....ãããyes = goes on next stepãno = hangupãã---ã þ Synchronet þ The Whitehouse of Sex - whitehouse.hulds.com - the kinky bbs!!!ã
  • From Digital Man@VERT to Internetking on Mon Apr 11 16:22:41 2011
    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();ãã digital manããSnapple "Real Fact" #74:ãYou share your birthday with 9 million others in the world.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Internetking@VERT/THRWHITE to Digital Man on Tue Apr 12 06:20:00 2011
    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....ãã---ã þ Synchronet þ The Whitehouse of Sex - whitehouse.hulds.com - the kinky bbs!!!ã
  • From Digital Man@VERT to Internetking on Tue Apr 12 15:19:11 2011
    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 þ [vert/cvs/bbs].synchro.netã
  • From Access Denied@VERT/PHARCYDE to Digital Man on Tue Apr 12 20:58:34 2011
    Re: a small javascript...ã By: Digital Man to Internetking on Mon Apr 11 2011 04:22 pmãã > Here's an example (untested):ãã > console.printfile("c:/slbbs/text/bbsrules.txt");ã > if(console.noyes("Do you agree to the BBS rules"))ã > bbs.hangup();ããJust chiming in on this one trying to understand some simple javascript. So ifãyou use console.noyes and have bbs.hangup(); right after it, the no isãhighlighted (as it being noyes rather than yesno) so that only happens if no isãused? And it would work vice versa? Now if yes is selected, it automaticallyãbypasses the bbs.hangup(); ? I'm just asking because I have very little codingãintelligence, and whatever I did have back in the 90s had a lot to do withãif/then or else statements in order to do what seems so easy in two lines withãjavascript. :)ããaxisdãã---ã þ Synchronet þ thePharcyde_ >> telnet://bbs.pharcyde.org (Wisconsin)ã
  • From Digital Man@VERT to Access Denied on Wed Apr 13 08:55:39 2011
    Re: a small javascript...ã By: Access Denied to Digital Man on Tue Apr 12 2011 08:58 pmãã > Re: a small javascript...ã > By: Digital Man to Internetking on Mon Apr 11 2011 04:22 pmã >ã > > Here's an example (untested):ã >ã > > console.printfile("c:/slbbs/text/bbsrules.txt");ã > > if(console.noyes("Do you agree to the BBS rules"))ã > > bbs.hangup();ã >ã > Just chiming in on this one trying to understand some simple javascript. Soã > if you use console.noyes and have bbs.hangup(); right after it, the no isã > highlighted (as it being noyes rather than yesno) so that only happens ifã > no is used? And it would work vice versa? Now if yes is selected, itã > automatically bypasses the bbs.hangup(); ? I'm just asking because I haveã > very little coding intelligence, and whatever I did have back in the 90sã > had a lot to do with if/then or else statements in order to do what seemsã > so easy in two lines with javascript. :)ããYes, the if() is checking if the code inside the () evaluates to true or not.ãIn the case of console.noyes(), it returns true when the user selects "no". Theãnested expression(s), in this case, bbs.hangup() is only executed if the if()ãtest evaluates to true.ãã digital manããSynchronet "Real Fact" #19:ãMichael Swindell was directly responsible for Synchronet's commercial success.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Access Denied@VERT/PHARCYDE to Digital Man on Wed Apr 13 18:22:31 2011
    Re: a small javascript...ã By: Digital Man to Access Denied on Wed Apr 13 2011 08:55 amãã > Yes, the if() is checking if the code inside the () evaluates to true or notã > In the case of console.noyes(), it returns true when the user selects "no". ã > nested expression(s), in this case, bbs.hangup() is only executed if the if(ã > test evaluates to true.ããUnderstood. And thank you for clarifying.ããaxisdãã---ã þ Synchronet þ thePharcyde_ >> telnet://bbs.pharcyde.org (Wisconsin)ã
  • From Tracker1@VERT/TRN to Internetking on Tue Apr 19 06:56:44 2011
    On 4/11/2011 7:06 PM, Internetking wrote:ã> 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....ããrun it from inside your login.js as part of the newuser action... right before ãit does the createuser.ãã-- ãMichael J. Ryan - http://tracker1.info/ãã---ã þ Synchronet þ Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.comã
  • From guardian@VERT/TRN to Tracker1 on Sun Apr 24 13:18:09 2011
    Re: Re: a small javascript...ã By: Tracker1 to Internetking on Tue Apr 19 2011 06:56:44ãã > On 4/11/2011 7:06 PM, Internetking wrote:ã > > 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....ãã > run it from inside your login.js as part of the newuser action... right befoã > it does the createuser.ããwell i cant find it.... you mean here?ããã // New user application?ã if(str.toUpperCase()=="NEW") {ã if(bbs.newuser()) {ã bbs.logon();ã exit();ã }ããã---ã þ Synchronet þ Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.comã