• Setting up G-key Text File Section and the easiest way to set up a simple ANSI gallery

    From Odusseus71 to all on Tuesday, August 06, 2024 08:56:48
    Hello again,

    I've searched the Wiki but did not get how to populate the Text File Section and related subdirectiories (as configured by SCFG).

    I was assuming it was simply putting text files into sbbs/Data/Text subdirs and then using postfile.js to add them to database, but this did not work because postfile only shows configured "File Areas" and not "Text File Sections".

    My main purpose is to set up a simple Gallery for ANSI and ASCII text files and the Text Files Sections did seem to me the easiest and logical location for that scope.

    Thanks a lot

    BR

    Marco
  • From echicken@ECBBS to Odusseus71 on Tuesday, August 06, 2024 13:00:15
    Re: Setting up G-key Text File Section and the easiest way to set up a sim
    By: Odusseus71 to all on Tue Aug 06 2024 08:56:48

    I've searched the Wiki but did not get how to populate the Text File Section and related subdirectiories (as configured by SCFG).

    This is a very poorly documented feature, and if you get it working I encourage you to add something to the wiki.

    I was assuming it was simply putting text files into sbbs/Data/Text subdirs and then using postfile.js to add them to database, but this did not work because postfile only shows configured "File Areas" and not "Text File Sections".

    It looks like if you drop your text files into the section's subdirectory of data/text, then it will just show up the next time text_sec.js is run. If you as a sysop run text_sec.js, you'll have the option of filling out descriptions for the text files in each section.

    I'm not 100% sure of the filename and format, but I think you can prepopulate those descriptions by just filling out:

    data/text/section/section.ini

    with sections like:

    [filename]
    desc = This is a file description

    Which is probably only really useful if you are importing from somewhere and can write a utility to build out this file.

    Alternately you can use ANSIView from xtrn/ansiview. I'm not saying it's better or even good, but it exists.

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@ECBBS to Odusseus71 on Tuesday, August 06, 2024 13:02:54
    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: echicken to Odusseus71 on Tue Aug 06 2024 13:00:15

    Actually I think I spoke too soon, and maybe you need to fill out this file in order for anything to appear on the BBS at all:

    data/text/section/section.ini

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@ECBBS to Odusseus71 on Tuesday, August 06, 2024 13:27:27
    Re: Setting up G-key Text File Section and the easiest way to set up a sim
    By: Odusseus71 to all on Tue Aug 06 2024 08:56:48

    And I'm back again.

    I was assuming it was simply putting text files into sbbs/Data/Text subdirs and then using postfile.js to add them to database, but this did

    So yes, you create your text file section(s) via scfg, and then drop your files into data/text/[section] directory.

    After that you can run ?text_sec on your BBS, navigate to a section, and A)dd, R)emove, or E)dit a given file.

    Each text file section appears to get an ini file, but I had the location wrong. You can find these at data/text/[section].ini. The format appears to be:

    [/full/path/to/file]
    desc = Some file description
    path = /full/path/to/file

    So if you wanted to populate that by hand or by script rather than enter them via text_sec.js, you could do that.

    I created a section called 'test', so I have:

    /sbbs/data/text/test.ini
    /sbbs/data/text/test
    /sbbs/data/text/test/testfile.txt

    and in /sbbs/data/text/test.ini:

    [/sbbs/data/text/test/testfile.txt]
    desc=This is just a test file
    path=/sbbs/data/text/test/testfile.txt

    If you have a lot of files, populating a section with descriptions would be pretty laborious. I'm imagining an import script that maybe just uses the first non-blank line of the text file as the description, which might suffice for a lot of them.

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Odusseus71 to echicken on Tuesday, August 06, 2024 10:57:18
    Thank you very much: a lot of info that are really appreciated.

    BR

    Marco
  • From Digital Man to Odusseus71 on Tuesday, August 06, 2024 11:59:04
    Re: Setting up G-key Text File Section and the easiest way to set up a simple ANSI gallery
    By: Odusseus71 to all on Tue Aug 06 2024 08:56 am

    I've searched the Wiki but did not get how to populate the Text File Section and related subdirectiories (as configured by SCFG).

    https://synchro.net/docs/textfile_section.html#AddingTextFiles

    I was assuming it was simply putting text files into sbbs/Data/Text subdirs and then using postfile.js to add them to database, but this did not work because postfile only shows configured "File Areas" and not "Text File Sections".

    postfile.js is for adding files to file areas, not the "general text" file sections.
    --
    digital man (rob)

    Breaking Bad quote #24:
    If I had to guess, I'd say that [Tortuga] is Spanish for asshole. - Hank
    Norco, CA WX: 92.2°F, 37.0% humidity, 2 mph SW wind, 0.00 inches rain/24hrs
  • From Odusseus71 to Digital Man on Tuesday, August 06, 2024 12:05:01
    Thanks!

    I missed this page.

    KR

    MArco
  • From MRO@BBSESINF to Odusseus71 on Tuesday, August 06, 2024 15:11:56
    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: Odusseus71 to echicken on Tue Aug 06 2024 10:57 am

    Thank you very much: a lot of info that are really appreciated.

    BR

    Marco

    i would edit that sucker and change around the paths.
    maybe put the textfiles in
    sbbs/xtrn/textfiles
    or sbbs/text/gfiles
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From nelgin@EOTLBBS to Odusseus71 on Tuesday, August 06, 2024 15:38:05
    On Tue, 6 Aug 2024 08:56:48 -0700
    "Odusseus71" (VERT) <VERT!Odusseus71@endofthelinebbs.com> wrote:
    Hello again,

    I've searched the Wiki but did not get how to populate the Text File
    Section and related subdirectiories (as configured by SCFG).

    I was assuming it was simply putting text files into sbbs/Data/Text
    subdirs and then using postfile.js to add them to database, but this
    did not work because postfile only shows configured "File Areas" and
    not "Text File Sections".

    My main purpose is to set up a simple Gallery for ANSI and ASCII text
    files and the Text Files Sections did seem to me the easiest and
    logical location for that scope.

    Thanks a lot

    BR

    Marco

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
    Don't. Use ansiview instead. You don't have to jump through all those
    hoops. Just set up your libraries, dump your files and you're done.
    ansiview will do exactly what you need.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From MRO@BBSESINF to nelgin on Tuesday, August 06, 2024 16:41:48
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: nelgin to Odusseus71 on Tue Aug 06 2024 03:38 pm


    My main purpose is to set up a simple Gallery for ANSI and ASCII text files and the Text Files Sections did seem to me the easiest and
    logical location for that scope.

    Don't. Use ansiview instead. You don't have to jump through all those
    hoops. Just set up your libraries, dump your files and you're done.
    ansiview will do exactly what you need.


    or he could write his own script.

    i wrote one where you just put the files in the dir and then it displays
    the names and lets the user pick and view them.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From phigan@TACOPRON to echicken on Tuesday, August 06, 2024 16:42:04
    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: echicken to Odusseus71 on Tue Aug 06 2024 01:27 pm

    So yes, you create your text file section(s) via scfg, and then drop your fi into data/text/[section] directory.

    This is all that I had to do.

    BTW, at least in my version of Synchronet, there's a bug where if you have a bunch of text files to list and it pauses with [Press a Key] and you press 'n' to stop displaying, it just keeps displaying the rest of the list non-stop without pausing any more. I often wish for a 'c'ontinue non-stop option at the pause, too :).

    ---
    ■ Synchronet ■ TIRED of waiting 2 hours for a taco? GO TO TACOPRONTO.bbs.io
  • From Digital Man to phigan on Tuesday, August 06, 2024 18:01:42
    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: phigan to echicken on Tue Aug 06 2024 04:42 pm

    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: echicken to Odusseus71 on Tue Aug 06 2024 01:27 pm

    So yes, you create your text file section(s) via scfg, and then drop your fi into data/text/[section] directory.

    This is all that I had to do.

    BTW, at least in my version of Synchronet, there's a bug where if you have a bunch of text files to list and it pauses with [Press a Key] and you press 'n' to stop displaying, it just keeps displaying the rest of the list non-stop without pausing any more. I often wish for a 'c'ontinue non-stop option at the pause, too :).

    That was fixed in https://gitlab.synchro.net/main/sbbs/-/commit/4bdaebf9072001d4b8f46aa28cd7982
    --
    digital man (rob)

    Sling Blade quote #24:
    Karl: Kaiser blade. I hit my mother upside the head with it. Mmm... Killed her. Norco, CA WX: 91.6°F, 33.0% humidity, 6 mph W wind, 0.00 inches rain/24hrs
  • From phigan@TACOPRON to Digital Man on Tuesday, August 06, 2024 19:27:06
    Re: Setting up G-key Text File Section and the easiest way to set up a si
    By: Digital Man to phigan on Tue Aug 06 2024 06:01 pm

    That was fixed in https://gitlab.synchro.net/main/sbbs/-/commit/4bdaebf9072001d4b8f46aa28cd798

    Excellent! Thank you.

    ---
    ■ Synchronet ■ TIRED of waiting 2 hours for a taco? GO TO TACOPRONTO.bbs.io
  • From Odusseus71 to nelgin on Thursday, August 15, 2024 09:53:37

    Thank you: this looks a smooth way to enjoy a gallery.

    Is ansiview a module or script?

    Thanks

    Marco
  • From MRO@BBSESINF to Odusseus71 on Thursday, August 15, 2024 15:20:09
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: Odusseus71 to nelgin on Thu Aug 15 2024 09:53 am

    Thank you: this looks a smooth way to enjoy a gallery.

    Is ansiview a module or script?

    Thanks

    Marco

    whats the difference.
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From echicken@ECBBS to MRO on Thursday, August 15, 2024 20:18:59
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: MRO to Odusseus71 on Thu Aug 15 2024 15:20:09

    Is ansiview a module or script?

    whats the difference.

    All modules are scripts, but not all scripts are modules.

    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Nightfox@DIGDIST to MRO on Thursday, August 15, 2024 19:09:46
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: MRO to Odusseus71 on Thu Aug 15 2024 03:20 pm

    Is ansiview a module or script?

    whats the difference.

    A module is a script (JS or Baja) that does something for users using the terminal server:
    https://wiki.synchro.net/module:index

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From nelgin@EOTLBBS to Odusseus71 on Friday, August 16, 2024 13:11:53
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a simple ANSI gallery
    By: Odusseus71 to nelgin on Thu Aug 15 2024 09:53:37

    Thank you: this looks a smooth way to enjoy a gallery.

    Is ansiview a module or script?

    You should find it in /sbbs/xtrn/ansiview

    You'll need to run it with bbs.xtrn I think. I'd have to check.

    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From MRO@BBSESINF to echicken on Friday, August 16, 2024 14:47:46
    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: echicken to MRO on Thu Aug 15 2024 08:18 pm

    Re: Re: Setting up G-key Text File Section and the easiest way to setup a
    By: MRO to Odusseus71 on Thu Aug 15 2024 15:20:09

    Is ansiview a module or script?

    whats the difference.

    All modules are scripts, but not all scripts are modules.

    or ARE they
    ---
    ■ Synchronet ■ ::: BBSES.info - free BBS services :::
  • From Odusseus71 to nelgin on Saturday, August 17, 2024 00:43:25

    You should find it in /sbbs/xtrn/ansiview

    You'll need to run it with bbs.xtrn I think. I'd have to check.

    Understood, it is an External Program, to be set up in SCFG.

    Found it in xtrn dir and with a full readme.txt documentation to check in order to figure out how to implement it.

    Thanks a lot for the advice.

    BR

    Marco