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