• Special help...

    From Bill McGarrity@1:266/404 to All on Sun Apr 15 19:57:03 2018
    I'd like to thank Digital Man and echicken for the help they provided in the solving of my little project on creating a new 'Birthday' greeting.

    With regard to the 'text.dat', even when I left it a blank string, the
    screen would be blank and I'd have to hit enter to move on so what I did was add the following:

    "\1_\1/\1yGuess what day today is!!\r\n\n" 329 HappyBirthday

    I may colorize it at a later date but for now it's working.

    I then created the 'birthday.js' with the following:

    console.printfile(system.text_dir + 'birthday.asc');
    var now = new Date().getTime();
    var ubd = new Date(user.birthdate).getTime();
    var age = Math.floor((now - ubd) / (1000 * 60 * 60 * 24 * 365.25)); console.putmsg('Congrats! You are now ' + age + ' years young!'); console.crlf();
    console.crlf();
    console.putmsg('From all of us at ' + system.name + '!');
    console.crlf();
    console.crlf();
    console.pause();
    console.clear();

    Please note the birthday.asc can be no longer than 15 lines and it should be 'blocked' when saving.

    I just quickly put together the birthday.asc and will be working on a more 'elaborate' design... :)

    If it's your birthday, stop by and take a look!! :)

    Thanks again to DM and echicken.

    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: 6697
    Radio: radio.tequilamockingbirdonline.net:8010/live
    --- SBBSecho 3.04-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From Digital Man@1:103/705 to Bill McGarrity on Sun Apr 15 18:29:41 2018
    Re: Special help...
    By: Bill McGarrity to All on Sun Apr 15 2018 07:57 pm

    I'd like to thank Digital Man and echicken for the help they provided in the solving of my little project on creating a new 'Birthday' greeting.

    With regard to the 'text.dat', even when I left it a blank string, the screen would be blank and I'd have to hit enter to move on

    Ah, thanks for the head's up. I'll address that case in an update to logon.cpp.


    digital man

    Synchronet/BBS Terminology Definition #13:
    DM = Digital Man (Rob Swindell)
    Norco, CA WX: 69.7oF, 30.0% humidity, 14 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.04-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to Digital Man on Sun Apr 15 21:34:26 2018
    Re: Special help...
    By: Digital Man to Bill McGarrity on Sun Apr 15 2018 18:29:41

    Hiya DM...

    Ah, thanks for the head's up. I'll address that case in an update to logon.cpp.

    Oh wow.... something good came of this afterall...

    You're welcome..

    Enjoy...

    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: 6697
    Radio: radio.tequilamockingbirdonline.net:8010/live
    --- SBBSecho 3.04-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From Digital Man@1:103/705 to Bill McGarrity on Mon Apr 16 03:25:04 2018
    Re: Special help...
    By: Bill McGarrity to Digital Man on Sun Apr 15 2018 09:34 pm

    Re: Special help...
    By: Digital Man to Bill McGarrity on Sun Apr 15 2018 18:29:41

    Hiya DM...

    Ah, thanks for the head's up. I'll address that case in an update to logon.cpp.

    Oh wow.... something good came of this afterall...

    Some years back I started to make most (all?) of the prompt/question text.dat lines optional (if they're blank, there's no prompt) - I just didn't notice or think of the HappyBirthday line.

    You're welcome..

    :-)

    digital man

    This Is Spinal Tap quote #5:
    Nigel Tufnel: Authorities said... best leave it... unsolved.
    Norco, CA WX: 52.7oF, 74.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.04-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to Digital Man on Mon Apr 16 17:23:00 2018
    Digital Man wrote to Bill McGarrity on 04-16-18 03:25 <=-

    Re: Special help...
    By: Bill McGarrity to Digital Man on Sun Apr 15 2018 09:34 pm

    Re: Special help...
    By: Digital Man to Bill McGarrity on Sun Apr 15 2018 18:29:41

    Hiya DM...

    Ah, thanks for the head's up. I'll address that case in an update to logon.cpp.

    Oh wow.... something good came of this afterall...

    Some years back I started to make most (all?) of the prompt/question text.dat lines optional (if they're blank, there's no prompt) - I just didn't notice or think of the HappyBirthday line.

    There's 800 lines in the text.dat... not to mention how many lines of code in the software itself. I'm sure most will forgive you on this one. As I said, I just turned it into something different which works out just as well.

    Thanks..


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)