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

    From Odusseus71@odusseus71@vert.synchro.net.remove-zmk-this to all on Tue Aug 6 08:56:48 2024
    From Newsgroup: alt.bbs.synchronet

    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 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From echicken@echicken@ECBBS.remove-w6v-this to Odusseus71 on Tue Aug 6 13:00:15 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From echicken@echicken@ECBBS.remove-3r5-this to Odusseus71 on Tue Aug 6 13:02:54 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From echicken@echicken@ECBBS.remove-fjk-this to Odusseus71 on Tue Aug 6 13:27:27 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Odusseus71@odusseus71@vert.synchro.net.remove-8k9-this to echicken on Tue Aug 6 10:57:18 2024
    From Newsgroup: alt.bbs.synchronet

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

    BR

    Marco
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Digital Man@digital.man@vert.synchro.net.remove-zvl-this to Odusseus71 on Tue Aug 6 11:59:04 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Odusseus71@odusseus71@vert.synchro.net.remove-12gz-this to Digital Man on Tue Aug 6 12:05:01 2024
    From Newsgroup: alt.bbs.synchronet

    To: Digital Man
    Thanks!

    I missed this page.

    KR

    MArco
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From MRO@mro@BBSESINF.remove-rll-this to Odusseus71 on Tue Aug 6 15:11:56 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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 :::
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From nelgin@nelgin@EOTLBBS.remove-u8-this to Odusseus71 on Tue Aug 6 15:38:05 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From MRO@mro@BBSESINF.remove-vl3-this to nelgin on Tue Aug 6 16:41:48 2024
    From Newsgroup: alt.bbs.synchronet

    To: nelgin
    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 :::
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From phigan@phigan@TACOPRON.remove-t0q-this to echicken on Tue Aug 6 16:42:04 2024
    From Newsgroup: alt.bbs.synchronet

    To: echicken
    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 --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Digital Man@digital.man@vert.synchro.net.remove-1ux-this to phigan on Tue Aug 6 18:01:42 2024
    From Newsgroup: alt.bbs.synchronet

    To: phigan
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From phigan@phigan@TACOPRON.remove-4zo-this to Digital Man on Tue Aug 6 19:27:06 2024
    From Newsgroup: alt.bbs.synchronet

    To: Digital Man
    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 --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Odusseus71@odusseus71@vert.synchro.net.remove-a7a-this to nelgin on Thu Aug 15 09:53:37 2024
    From Newsgroup: alt.bbs.synchronet

    To: nelgin

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

    Is ansiview a module or script?

    Thanks

    Marco
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From MRO@mro@BBSESINF.remove-2sx-this to Odusseus71 on Thu Aug 15 15:20:09 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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 :::
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From echicken@echicken@ECBBS.remove-u3z-this to MRO on Thu Aug 15 20:18:59 2024
    From Newsgroup: alt.bbs.synchronet

    To: MRO
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Nightfox@nightfox@DIGDIST.remove-rpf-this to MRO on Thu Aug 15 19:09:46 2024
    From Newsgroup: alt.bbs.synchronet

    To: MRO
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From nelgin@nelgin@EOTLBBS.remove-ga-this to Odusseus71 on Fri Aug 16 13:11:53 2024
    From Newsgroup: alt.bbs.synchronet

    To: Odusseus71
    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From MRO@mro@BBSESINF.remove-bdr-this to echicken on Fri Aug 16 14:47:46 2024
    From Newsgroup: alt.bbs.synchronet

    To: echicken
    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 :::
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Odusseus71@odusseus71@vert.synchro.net.remove-ykd-this to nelgin on Sat Aug 17 00:43:25 2024
    From Newsgroup: alt.bbs.synchronet

    To: nelgin

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    --- Synchronet 3.20a-Linux NewsLink 1.114