Re: Allow and use a text.dat.local override file
By: Nigel Reed to GitLab issue in main/sbbs on Sat Sep 23 2023 11:50:35
entries. This file can then be read when require("text.js"... is used and would require the user to do nothing more than add text to text.dat.local.
Or you can simply have a mods/mytext.js that overrides those fields you want to change... this is what I do on my board. I load it at the top of login.js, logon.js, etc. load("mytext.js");
For example...
bbs.replace_text(
SystemPassword,
"\r\1n\033[22;30f\1n\1cSYS_PASS\1h\1w: \1n\1h\1k(hidden)\1n "
);
bbs.replace_text(InvalidLogon, "\1n\033[24;79f");
I am doing the above in my login.js explicitly in order to position the prompts where I want them in the display ansi. But you can just as easily have a bunch of bbs.replace_text for those you want to change in a mytext.js and load that in login and logon.
--
Michael J. Ryan
+o roughneckbbs.com
tracker1@roughneckbbs.com
---
þ Synchronet þ Roughneck BBS - roughneckbbs.com
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)