• ftnnv.js

    From Bill McGarrity@VERT/TEQUILAM to echicken on Mon Apr 9 18:29:34 2018
    Hiya echicken...

    I'm playing with ftnnv.js to see what I can do with it. Right now it's only seeing the Fido nodelist.* file which I am assuming is possible by the following:

    // The paths to your nodelists
    var nodelistPaths = [
    "/sbbs/xtrn/ftnnv/nodelist.*"
    ];

    My question is, how do you add more nodelists from different FTN networks. I tried adding another: '/sbbs/xtrn/ftnnv/sportnet.*" before the closing ] but
    I am getting this error:

    !JavaScript c:\sbbs\xtrn\ftnnv\ftnnv.js line 10: SyntaxError: missing ]
    after e lement list

    !ERROR compiling c:\sbbs\xtrn\ftnnv\ftnnv.js

    The sysop has been notified.


    Can it be as simple as just adding sportnet.* separated by a comma on that
    one line?

    Appreciate the help...

    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

    ---
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ
  • From echicken@VERT/ECBBS to Bill McGarrity on Mon Apr 9 19:56:51 2018
    Re: ftnnv.js
    By: Bill McGarrity to echicken on Mon Apr 09 2018 18:29:34

    var nodelistPaths = [
    "/sbbs/xtrn/ftnnv/nodelist.*"
    ];

    My question is, how do you add more nodelists from different FTN networks.
    I tried adding another: '/sbbs/xtrn/ftnnv/sportnet.*" before the closing ]

    Be sure not to mix up your double and single quotes. That should be '/sbbs/xtrn/ftnnv/sportnet.*' or "/sbbs/xtrn/ftnnv/sportnet.*".

    Can it be as simple as just adding sportnet.* separated by a comma on that
    one line?

    nodelistPaths is an array of strings. Elements in the array should be separated from each other by commas, and all elements should be enclosed within
    the square brackets, eg:

    var nodelistPaths = [
    "/sbbs/xtrn/ftnnv/nodelist.*",
    "/sbbs/xtrn/ftnnv/sportnet.*"
    ];

    Keeping it on one line isn't important, though.

    I assume that will work, but I no longer have a copy of that script on hand. I'll write a new version soon that uses the nodelist parser Deuce provided, and

    uses a config file to make things like this easier.

    And on that note, if you or anyone have a wishlist for things they would want to see in a nodelist browser, please let me know.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230

    ---
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Bill McGarrity@VERT/TEQUILAM to echicken on Tue Apr 10 11:43:00 2018
    echicken wrote to Bill McGarrity on 04-09-18 19:56 <=-

    Re: ftnnv.js
    By: Bill McGarrity to echicken on Mon Apr 09 2018 18:29:34

    var nodelistPaths = [
    "/sbbs/xtrn/ftnnv/nodelist.*"
    ];

    My question is, how do you add more nodelists from different FTN networks.

    I tried adding another: '/sbbs/xtrn/ftnnv/sportnet.*" before the closing ]


    Be sure not to mix up your double and single quotes. That should be '/sbbs/xtrn/ftnnv/sportnet.*' or "/sbbs/xtrn/ftnnv/sportnet.*".

    Can it be as simple as just adding sportnet.* separated by a comma on that

    one line?

    nodelistPaths is an array of strings. Elements in the array should be separated from each other by commas, and all elements should be
    enclosed within the square brackets, eg:

    OK.. I saw my error and it the explaination was right in the readme file. My eyes are getting old.. lol!

    var nodelistPaths = [
    "/sbbs/xtrn/ftnnv/nodelist.*",
    "/sbbs/xtrn/ftnnv/sportnet.*"
    ];

    Keeping it on one line isn't important, though.

    OK.. I'm anal about neatness though. Each nodelist has it's own line. :)

    I assume that will work, but I no longer have a copy of that script on hand. I'll write a new version soon that uses the nodelist parser Deuce provided, and
    uses a config file to make things like this easier.

    That it did.

    And on that note, if you or anyone have a wishlist for things they
    would want to see in a nodelist browser, please let me know.

    One thing I did see that it didn't like looking outside it's own folder for the nodelists. I put a normal path to replace the /sbbs/xtrn/ftnnv and although it compiled.... it didn't show a damn thing. I had to copy over all the nodelists into the /sbbs/xtrn/ftnnv folder.

    I'm sure I'll think of things as that day gets closer.

    Thanks again...


    --

    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
    þ Synchronet þ TequilaMockingbird Online - Toms River, NJ