Skip to content
Snippets Groups Projects
Commit 75c6ee15 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: Sorting of sub-boards when changing to another sub-board (for...

DDMsgReader: Sorting of sub-boards when changing to another sub-board (for nelgin). Toggleable behavior to only show sub-boards with new messages in the indexed-mode newscan (for kdi4hw). Internal: Updated for bbs.msg_number and bbs.smb_curmsg being write
parent e7885295
No related branches found
No related tags found
1 merge request!465DDMsgReader: Sorting of sub-boards when changing to another sub-board (for nelgin). Toggleable behavior to only show sub-boards with new messages in the indexed-mode newscan (for kdi4hw). Internal: Updated for bbs.msg_number and bbs.smb_curmsg being write
......@@ -99,5 +99,14 @@ promptDelPersonalEmailAfterReply=false
; The default directory on the BBS machine to save messages to (for the sysop)
msgSaveDir=
; Sub-board sorting for changing to another sub-board: None, Alphabetical,
; LatestMsgDateOldestFirst, or LatestMsgDateNewestFirst
subBoardChangeSorting=None
; For indexed-mode newscan, whether to only show sub-boards with new messages.
; This is the default for a user setting; users can toggle this for themselves
; as they like. Valid values are true or false.
indexedModeNewscanOnlyShowSubsWithNewMsgs=false
; The theme file name (for colors, strings, etc.)
themeFilename=DefaultTheme.cfg
This diff is collapsed.
......@@ -5,7 +5,7 @@
// If you have DDMsgReader in a directory other than xtrn/DDMsgReader, then the changes to
// DDMsgReader.cfg will be saved in that directory (assuming you're running ddmr_cfg.js from
// that same directory).
// Currently for DDMsgReader 1.95h.
// Currently for DDMsgReader 1.96.
//
// If you're running DDMsgReader from xtrn/DDMsgReader (the standard location) and you want
// to save the configuration file there (rather than sbbs/mods), you can use one of the
......@@ -18,7 +18,7 @@ require("sbbsdefs.js", "P_NONE");
require("uifcdefs.js", "UIFC_INMSG");
if (!uifc.init("DigDist. Message Reader 1.95h Configurator"))
if (!uifc.init("DigDist. Message Reader 1.96 Configurator"))
{
print("Failed to initialize uifc");
exit(1);
......@@ -117,6 +117,8 @@ function doMainMenu()
"indexedModeMenuSnapToNextWithNewAftarMarkAllRead", // Boolean
"newscanOnlyShowNewMsgs", // Boolean
"promptDelPersonalEmailAfterReply", // Boolean
"subBoardChangeSorting", // String: None, Alphabetical, LatestMsgDateOldestFirst, or LatestMsgDateNewestFirst
"indexedModeNewscanOnlyShowSubsWithNewMsgs", // Boolean
"themeFilename" // String
];
// Strings for the options to display on the menu
......@@ -151,6 +153,8 @@ function doMainMenu()
"Index menu mark all read: Snap to subs w/ new msgs",
"During a newscan, only show new messages",
"Personal email: Prompt to delete after reply",
"Sorting for sub-board change",
"Index newscan: Only show subs w/ new msgs",
"Theme Filename"
];
// Build an array of formatted string to be displayed on the menu
......@@ -266,6 +270,35 @@ function doMainMenu()
uifc.msg("That directory doesn't exist!");
}
}
else if (optName == "subBoardChangeSorting")
{
// Multiple-choice
var options = ["None", "Alphabetical", "Msg date: Oldest first", "Msg date: Newest first"];
var promptStr = optionStrs[optionMenuSelection];
var userChoice = promptMultipleChoice(promptStr, options, gCfgInfo.cfgOptions[optName]);
//if (userChoice != null && userChoice != undefined)
var userChoiceIdx = options.indexOf(userChoice);
if (userChoiceIdx >= 0 && userChoiceIdx < options.length)
{
switch (userChoiceIdx)
{
case 0: // None
gCfgInfo.cfgOptions[optName] = "None";
break;
case 1: // Alphabetical
gCfgInfo.cfgOptions[optName] = "Alphabetical";
break;
case 2: // Msg date: Oldest first
gCfgInfo.cfgOptions[optName] = "LatestMsgDateOldestFirst";
break;
case 3: // Msg date: Newest first
gCfgInfo.cfgOptions[optName] = "LatestMsgDateNewestFirst";
break;
}
anyOptionChanged = true;
menuItems[optionMenuSelection] = formatCfgMenuText(itemTextMaxLen, optionStrs[optionMenuSelection], gCfgInfo.cfgOptions[optName]);
}
}
else
{
// Multiple-choice
......@@ -591,6 +624,16 @@ function getOptionHelpText()
optionHelpText["promptDelPersonalEmailAfterReply"] = "Personal email: Prompt to delete after reply: When reading personal email, ";
optionHelpText["promptDelPersonalEmailAfterReply"] += "whether or not to propmt the user if they want to delete a message after ";
optionHelpText["promptDelPersonalEmailAfterReply"] += "replying to it. This is a defafult for a user setting.";
optionHelpText["subBoardChangeSorting"] = "Sorting for sub-board change: This is a sorting option for the sub-boards ";
optionHelpText["subBoardChangeSorting"] += "when the user changes to another sub-board. The options are None (no sorting, ";
optionHelpText["subBoardChangeSorting"] += "in the order defined in SCFG), Alphabetical, LatestMsgDateOldestFirst (by message ";
optionHelpText["subBoardChangeSorting"] += "date, oldest first), or LatestMsgDateNewestFirst (by message date, newest first). ";
optionHelpText["subBoardChangeSorting"] += "This is a default for a user setting, which users can change for themselves.";
optionHelpText["indexedModeNewscanOnlyShowSubsWithNewMsgs"] = "Index newscan: Only show subs w/ new msgs: For indexed newscan mode, ";
optionHelpText["indexedModeNewscanOnlyShowSubsWithNewMsgs"] += "whether to only show sub-boards with new messages. This is a ";
optionHelpText["indexedModeNewscanOnlyShowSubsWithNewMsgs"] += "default for a user setting, which users can change for themselves.";
optionHelpText["themeFilename"] = "Theme filename: The name of a file for a color theme to use";
......@@ -792,6 +835,10 @@ function readDDMsgReaderCfgFile()
retObj.cfgOptions.indexedModeMenuSnapToNextWithNewAftarMarkAllRead = true;
if (!retObj.cfgOptions.hasOwnProperty("promptDelPersonalEmailAfterReply"))
retObj.cfgOptions.promptDelPersonalEmailAfterReply = false;
if (!retObj.cfgOptions.hasOwnProperty("subBoardChangeSorting"))
retObj.cfgOptions.subBoardChangeSorting = "None";
if (!retObj.cfgOptions.hasOwnProperty("indexedModeNewscanOnlyShowSubsWithNewMsgs"))
retObj.cfgOptions.indexedModeNewscanOnlyShowSubsWithNewMsgs = false;
if (!retObj.cfgOptions.hasOwnProperty("themeFilename"))
retObj.cfgOptions.themeFilename = "DefaultTheme.cfg";
......
Digital Distortion Message Reader
Version 1.95h
Release date: 2024-09-03
Version 1.96
Release date: 2024-10-26
by
......@@ -841,6 +841,18 @@ msgSaveDir The default directory on the BBS machine
a fully-pathed filename to save a message
in a different directory.
subBoardChangeSorting Sub-board sorting for changing to another
sub-board: None, Alphabetical,
LatestMsgDateOldestFirst, or
LatestMsgDateNewestFirst
indexedModeNewscanOnlyShowSubsWithNewMsgs For indexed-mode newscan, whether to
only show sub-boards with new
messages. This is the default for a
user setting; users can toggle this
for themselves as they like. Valid
values are true or false.
themeFilename The name of the configuration file to
use for colors & string settings
......
......@@ -5,6 +5,28 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.96 2024-10-26 New feature: sub-board sorting for changing sub-boards
(and users can change their sorting option).
The new configuration option subBoardChangeSorting
specifies the sub-board sorting (None, Alphabetical,
LatestMsgDateOldestFirst, or LatestMsgDateNewestFirst).
This is a default for a user option that users can change
for themselves.
New: Toggleable behavior for whether to show sub-boards
with new messages in the indexed newscan. Users can change
this option for themselves.
The new configuration option
indexedModeNewscanOnlyShowSubsWithNewMsgs sets the default
setting for this behavior (true or false).
Internal: Updated for bbs.msg_number and bbs.smb_curmsg
being writeable in Synchronet 3.20 - If these can be
changed, there's no need to write the drop file
DDML_SyncSMBInfo.txt containing information about the
message being replied to etc. for message editors to use
1.95h 2024-09-03 Fix for saving an ANSI message to the local BBS PC
1.95g 2024-08-12 Updates to help with the newscan issues placing the user
at the first message, etc.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment