Re: scanning new messages at logon not working
By: poindexter FORTRAN to All on Sat Mar 04 2023 01:20 pm
> Subject: scanning new messages at logon not working
> @MSGID:
> @TZ: 41e0
>
> All,
>
> I'm trying to have a message echo called local.sysop act as a logon bulletin
> screen. I want users, when logging in, to automatically see new posts in
> that message area.
>
> I tried creating a door that runs at the logon event, and it calls a
> javascript file newscan.js that calls bbs.scan_msgs:
>
> bbs.scan_msgs("LOCAL.SYSOP", SCAN_READ);
>
> I'd like the messages to show once. The behavior I'm seeing is that it
> continues to display the last message in the message area every time I log
> in.
You'd want to use SCAN_NEW mode then, not SCAN_READ.
> Is there a way to create a forced newscan of one message area like I'm
> envisioning?
I think so.
> Or, even better, a way to only display the *last* message in one message
> area, just once?
No. I would probably just set the max messages for the sub-board to 1 if you only want one message to normally be in there.
--
digital man (rob)
Breaking Bad quote #29:
2 day drive to the nearest ocean and you're eating raw fish, is all I'm sayen.
Norco, CA WX: 51.5øF, 71.0% humidity, 3 mph E wind, 0.01 inches rain/24hrs
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|