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

    From Odusseus71@1:103/705 to all on Tue Aug 6 08:56:48 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Odusseus71 on Tue Aug 6 13:00:14 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Odusseus71 on Tue Aug 6 13:02:54 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Odusseus71 on Tue Aug 6 13:27:26 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Odusseus71@1:103/705 to echicken on Tue Aug 6 10:57:18 2024
    Thank you very much: a lot of info that are really appreciated.

    BR

    Marco
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Odusseus71 on Tue Aug 6 11:59:04 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Odusseus71@1:103/705 to Digital Man on Tue Aug 6 12:05:00 2024
    Thanks!

    I missed this page.

    KR

    MArco
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to Odusseus71 on Tue Aug 6 15:11:56 2024
    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 :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to Odusseus71 on Tue Aug 6 15:38:04 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to nelgin on Tue Aug 6 16:41:48 2024
    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 :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From phigan@1:103/705 to echicken on Tue Aug 6 16:42:04 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to phigan on Tue Aug 6 18:01:42 2024
    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From phigan@1:103/705 to Digital Man on Tue Aug 6 19:27:06 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Odusseus71@1:103/705 to nelgin on Thu Aug 15 09:53:36 2024

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

    Is ansiview a module or script?

    Thanks

    Marco
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to Odusseus71 on Thu Aug 15 15:20:08 2024
    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 :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to MRO on Thu Aug 15 20:18:58 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to MRO on Thu Aug 15 19:09:46 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to Odusseus71 on Fri Aug 16 13:11:52 2024
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From MRO@1:103/705 to echicken on Fri Aug 16 14:47:46 2024
    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 :::
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Odusseus71@1:103/705 to nelgin on Sat Aug 17 00:43:24 2024

    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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)