• Node Status change

    From Jason@VERT/HDCBBS to All on Sun Dec 1 11:06:46 2024
    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    Jason

    ---
    ■ Synchronet ■ Hard Drive Cafe - hdcbbs.com
  • From Digital Man@VERT to Jason on Sun Dec 1 14:37:38 2024
    Re: Node Status change
    By: Jason to All on Sun Dec 01 2024 11:06 am

    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    You change any of the node status text via text.dat/text.ini edits: https://synchro.net/docs/customization.html#NodeActionText

    The "BiXfer" node action is currently used by anything, so feel free to just change that status what you like and then set the node's action value to NODE_BXFR (defined in load/nodedefs.js) when it's performing that custom action.
    --
    digital man (rob)

    Sling Blade quote #13:
    Karl: He lives inside of his own heart. That's an awful big place to live in. Norco, CA WX: 73.8°F, 21.0% humidity, 9 mph W wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From nelgin@VERT/EOTLBBS to Jason on Wed Dec 4 11:23:20 2024
    Re: Node Status change
    By: Jason to All on Sun Dec 01 2024 11:06:46

    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    To add what Digital Man has mentioned, he also made a change to make this a little easier. Basically

    bbs.replace_text(720,"%s is somewhere you're not");
    bbs.node_action = NODE_CUSTOM;
    bbs.nodesync();
    bbs.revert_text(720); // if you want to

    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Jason@VERT/HDCBBS to Digital Man on Fri Dec 20 11:08:43 2024
    Re: Node Status change
    By: Digital Man to Jason on Sun Dec 01 2024 02:37 pm

    Re: Node Status change
    By: Jason to All on Sun Dec 01 2024 11:06 am

    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    You change any of the node status text via text.dat/text.ini edits: https://synchro.net/docs/customization.html#NodeActionText

    The "BiXfer" node action is currently used by anything, so feel free to just change that status what you like and then set the node's action value to NODE_BXFR (defined in load/nodedefs.js) when it's performing that custom action.

    Thanks for this. I will definitely look at it.

    ---
    ■ Synchronet ■ Hard Drive Cafe - hdcbbs.com
  • From Jason@VERT/HDCBBS to nelgin on Fri Dec 20 11:09:05 2024
    Re: Node Status change
    By: nelgin to Jason on Wed Dec 04 2024 11:23 am

    Re: Node Status change
    By: Jason to All on Sun Dec 01 2024 11:06:46

    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    To add what Digital Man has mentioned, he also made a change to make this a little easier. Basically

    bbs.replace_text(720,"%s is somewhere you're not");
    bbs.node_action = NODE_CUSTOM;
    bbs.nodesync();
    bbs.revert_text(720); // if you want to


    I will try this as well. Thanks!

    ---
    ■ Synchronet ■ Hard Drive Cafe - hdcbbs.com
  • From Digital Man@VERT to Jason on Fri Dec 20 12:25:42 2024
    Re: Node Status change
    By: Jason to nelgin on Fri Dec 20 2024 11:09 am

    Re: Node Status change
    By: nelgin to Jason on Wed Dec 04 2024 11:23 am

    Re: Node Status change
    By: Jason to All on Sun Dec 01 2024 11:06:46

    I can't seem to find a way to change the node status message that shows for a user when running a custom js from a menu option.

    Can someone point me to the right object to update?

    To add what Digital Man has mentioned, he also made a change to make this a little easier. Basically

    bbs.replace_text(720,"%s is somewhere you're not");
    bbs.node_action = NODE_CUSTOM;
    bbs.nodesync();
    bbs.revert_text(720); // if you want to


    I will try this as well. Thanks!

    If you're running the latest v3.20a code then this would be preferred to the replace/revert_text calls above:
    in ctrl/text.ini, add:
    NodeActivityCustom = is somewhere you're not

    If the node action is actually dynamic (can be different text depending on scenarios, e.g. multiple different custom actions), then this would be preferred:
    bbs.replace_text("NodeActionCustom", "is somewhere you're not");

    The revert_text() call isn't strictly needed.

    Details: https://wiki.synchro.net/custom:node_status
    --
    digital man (rob)

    Sling Blade quote #8:
    Karl Childers: I don't reckon I got no reason to kill nobody.
    Norco, CA WX: 72.9°F, 22.0% humidity, 0 mph SSW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net