• JS Last On Node

    From DesotoFireflite@VERT to All on Tue Nov 5 08:50:58 2013
    Ok, I'm finally getting brave, and delving into js scripts. I playing around with a last callers script. and I've finally got everything to pull up right, and draw right on the screen, but the node number the users were on. This is the string I'm using, but all I'm getting on the report is "unde". Any Ideas how I can extract the last users node number, or is that not available. For the record, i'm modifying Masqurades last callers utility to show the node. I'm not worrying about spacing, as I was able to change that, all I need is to extract the info. I've read the js docs, and got this far, but now I'm lost...


    var node = formatString(users[i].stats.laston_node, 4);
    node = colorizeString(node);


    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Wed Nov 6 16:19:28 2013
    Re: JS Last On Node
    By: DesotoFireflite to All on Tue Nov 05 2013 08:50 am

    Ok, I'm finally getting brave, and delving into js scripts. I playing
    around with a last callers script. and I've finally got everything to pull up right, and draw right on the screen, but the node number the users were on. This is the string I'm using, but all I'm getting on the report is "unde". Any Ideas how I can extract the last users node number, or is that not available. For the record, i'm modifying Masqurades last callers
    utility to show the node. I'm not worrying about spacing, as I was able to change that, all I need is to extract the info. I've read the js docs, and got this far, but now I'm lost...


    var node = formatString(users[i].stats.laston_node, 4);
    node = colorizeString(node);

    Without more information, no one can guess what hte problem is. For example:

    What is this users[] array?

    What does the formatString() function do? What does the 2nd argument (4 in this
    case) specify?

    My guess: users[i].stats.laston_node is undefined and somehow formatString() is
    taking the first 4 characters of "undefined" and place that into the 'node' variable.

    digital man

    Synchronet "Real Fact" #65:
    Synchronet was conceived of and mostly developed in southern California.
    Norco, CA WX: 77.9øF, 8.0% humidity, 6 mph SSW wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchrone
  • From DesotoFireflite@VERT to Digital Man on Wed Nov 6 20:25:58 2013
    Re: JS Last On Node
    By: Digital Man to DesotoFireflite on Wed Nov 06 2013 04:19 pm

    var node = formatString(users[i].stats.laston_node, 4);
    node = colorizeString(node);

    Without more information, no one can guess what hte problem is. For example:

    What is this users[] array?

    What does the formatString() function do? What does the 2nd argument (4 in this case) specify?

    the 4 is the spaces allowed, the rest I borrowed from another command that I finally got to work after trial and error, and I was hoping I could call node to get the info. Back to the drawing board I go.

    My guess: users[i].stats.laston_node is undefined and somehow formatString() is taking the first 4 characters of "undefined" and place that into the 'node' variable.

    I will have to do more homework. I took this string from another section that worked and subbed node, but I'm guessing that the node info is not stored in the same file. I guess what I need to know is where the users last node info is stored, so I can retreive it, then maybe I can figure it out. I'm trying DM, and i'm taking baby steps. Thanks

    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net
  • From Digital Man@VERT to DesotoFireflite on Thu Nov 7 23:54:58 2013
    Re: JS Last On Node
    By: DesotoFireflite to Digital Man on Wed Nov 06 2013 08:25 pm

    Re: JS Last On Node
    By: Digital Man to DesotoFireflite on Wed Nov 06 2013 04:19 pm

    var node = formatString(users[i].stats.laston_node, 4);
    node = colorizeString(node);

    Without more information, no one can guess what hte problem is. For example:

    What is this users[] array?

    What does the formatString() function do? What does the 2nd argument
    (4 in this case) specify?

    the 4 is the spaces allowed, the rest I borrowed from another command that
    I finally got to work after trial and error, and I was hoping I could call node to get the info. Back to the drawing board I go.

    My guess: users[i].stats.laston_node is undefined and somehow formatString() is taking the first 4 characters of "undefined" and place that into the 'node' variable.

    I will have to do more homework. I took this string from another section that worked and subbed node, but I'm guessing that the node info is not stored in the same file. I guess what I need to know is where the users
    last node info is stored, so I can retreive it, then maybe I can figure it out. I'm trying DM, and i'm taking baby steps. Thanks

    I'm not sure what you meay by "users last node". The node number that the user last logged onto? That information is not stored in the user database. If you want the *current* node number, just use the bbs.node_num property.

    digital man

    Synchronet "Real Fact" #38:
    Synchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006). Norco, CA WX: 65.5øF, 19.0% humidity, 2 mph ESE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From DesotoFireflite@VERT to Digital Man on Fri Nov 8 08:30:17 2013
    Re: JS Last On Node
    By: Digital Man to DesotoFireflite on Thu Nov 07 2013 11:54 pm

    I'm not sure what you meay by "users last node". The node number that the user last logged onto? That information is not stored in the user database. If you want the *current* node number, just use the bbs.node_num

    I'm trying to make a last 10 callers list from a last on program. Since the last none the user was on is not stored, I guess I will have to go about this in a different way, such as a data base. You gave me the answer i needed, so I will head back to the drawing board. Thanks

    - CAT (n.), Furry keyboard cover.

    - C.G. Learn
    - Valhalla Home Services! - Telnet://valhalla.synchro.net
    - A Gamers Paradise - Over 100 Registered Online Game Doors!


    ---
    þ Synchronet þ Valhalla Home Services þ USA þ http://valhalla.synchro.net