• text.dat - possible to split ansi top and bottom lines from MsgSubj an

    From Trikester@1:103/705 to GitLab issue in main/sbbs on Wed Jun 29 13:52:41 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/417

    I'm trying to shuffle around the order of the subject, from, to, etc., in the message header, but it appears the top and bottom graphic lines surrounding the headers are tied to the Subject and Date lines.I started trying to work on text.dat, and then exec/load/text.js to add in text lines for the top and bottom graphic header lines, but I think there's more to the picture than what I'm seeing (hardcoded items elsewhere, I guess)?
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nelgin@1:103/705 to Trikester on Thu Jun 30 04:49:25 2022
    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj an
    By: Trikester to GitLab issue in main/sbbs on Wed Jun 29 2022 13:52:41

    I started trying to work on text.dat, and then exec/load/text.js to add in text lines for the top and bottom graphic header lines, but I think there's more to the picture than what I'm seeing (hardcoded items elsewhere, I guess)?

    Which item in text.dat are you looking at?

    Have you looked at 065?

    Did you know you can use bbs.replace_text() to overwrite the in memory text that's loaded from text.dat? for example bbs.replace_text(55,"Dunno what I just replaced");

    Once you're done, you can revert it back with bbs.revert_text(55);

    Finally, you can load in an alternate text.dat file using bbs.load_text('filename'); It will load from ctrl and automatically add the .dat suffix.

    Of course, text is often a template so you may not always be able to re-order what is displayed. There might be a way but someone else may know.

    Anyway, hope that helps.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Jun 30 14:30:03 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/417#note_2658

    Don't modify text.js, that's not going to ever do something good. :grimacing: It sounds like you should be using the msghdr.asc method of message header customization:http://wiki.synchro.net/custom:messageheader
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Trikester@1:103/705 to Rob Swindell on Thu Jun 30 18:45:44 2022
    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj an
    By: Rob Swindell to GitLab note in main/sbbs on Thu Jun 30 2022 02:30 pm

    Don't modify text.js, that's not going to ever do something good. :grimacing:

    It sounds like you should be using the msghdr.asc method of message header customization:
    http://wiki.synchro.net/custom:messageheader

    Right, I did wind up putting the default text.js in place.


    I am using msghdr.asc to call @EXEC:SHOWMSGHDR@

    So, I then modified showmsghdr.js to output the text lines in the order that I wanted, and then I had to move the top graphic line to one of the other text strings.

    That seemed to be about the sanest way to do it if one wants avatar support, no? (ie, just plunking the header layout and text substitutions in to msghdr.asc isn't going to get avatar support in there? Or did I miss something there?)

    ---
    þ Synchronet þ ... The Basement ... Not really open yet.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Trikester on Fri Jul 1 10:59:02 2022
    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj a
    By: Trikester to Rob Swindell on Thu Jun 30 2022 06:45 pm

    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj an
    By: Rob Swindell to GitLab note in main/sbbs on Thu Jun 30 2022 02:30 pm

    Don't modify text.js, that's not going to ever do something good. :grimacing:

    It sounds like you should be using the msghdr.asc method of message header customization:
    http://wiki.synchro.net/custom:messageheader

    Right, I did wind up putting the default text.js in place.


    I am using msghdr.asc to call @EXEC:SHOWMSGHDR@

    I think you probably want to call (execute) SHOWMSGAVATAR instead.

    So, I then modified showmsghdr.js to output the text lines in the order that I wanted, and then I had to move the top graphic line to one of the other text strings.

    That seemed to be about the sanest way to do it if one wants avatar support, no? (ie, just plunking the header layout and text substitutions in to msghdr.asc isn't going to get avatar support in there? Or did I miss something there?)

    Yeah, I think you missed the msghdrexample.asc :-)
    --
    digital man (rob)

    Sling Blade quote #18:
    Karl Childers: Some folks call it Hell, I call it Hades.
    Norco, CA WX: 78.1øF, 58.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Trikester@1:103/705 to Digital Man on Fri Jul 1 19:02:05 2022
    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj a
    By: Digital Man to Trikester on Fri Jul 01 2022 10:59 am

    Yeah, I think you missed the msghdrexample.asc :-)

    Ah... I probably should have toyed around with that a little closer. Got it, sorry about the confusion.

    I'm going to blame the COVID, even though I started toying with this prior to testing positive. ;-)

    ---
    þ Synchronet þ ... The Basement ... Not really open yet.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Trikester on Sat Jul 2 11:46:23 2022
    Re: text.dat - possible to split ansi top and bottom lines from MsgSubj a
    By: Trikester to Digital Man on Fri Jul 01 2022 07:02 pm

    I'm going to blame the COVID, even though I started toying with this prior to testing positive. ;-)

    Yeah, me too. Get well soon,
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #81:
    Telenet = Proprietary packet switched network (variant on X.75)
    Norco, CA WX: 80.8øF, 37.0% humidity, 2 mph SSE wind, 0.00 inches rain/24hrs --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Jul 2 12:01:09 2022
    close https://gitlab.synchro.net/main/sbbs/-/issues/417
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sat Jul 2 12:01:09 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/417#note_2659

    Resolved with discussion on DOVE-Net. Pointed the OP to `text/menu/msghdrexample.asc`
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)