TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: Odusseus71
from: echicken
date: 2024-08-06 13:27:00
subject: Setting up G-key Text Fil

  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.

 Od> I was assuming it was simply putting text files into sbbs/Data/Text
 Od> 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)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.