home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
MARKMSGS.MOD
< prev
next >
Wrap
Text File
|
1991-08-06
|
4KB
|
80 lines
249/254: Mark Msgs mod, clear out old msgs at logoff! NICE!!!
Name: Ellrond #3 @9987
Date: Fri Aug 02 03:06:45 1991
From: Silicon Valley [919-765-8640] (North Carolina)
────────────────────────────────────────────────────────────────────────────────
/*================================MRKMSGS.MOD==============================*/
/* */
/* By Ellrond, #3 @9987 */
/* */
/* Silicon Valley BBS */
/* */
/*=========================================================================*/
/*=*/ = existing code
/*+*/ = new stuff
Difficulty level:
Easy:<=-VERY!
Medium:
Hard:
Gross:
Time spent on mod: Under 5 minutes for most? people.
/*Well, I figured that after all the mods that I have done here I ought to do
something for myself. This is not a "ooooohhhh!" type of mod, nonetheless,
many users will appreciate its function, especially since most people are
unfortunately ignorant of the //QSCAN command and what exactly it does.
What exactly will this mod do for me? you ask. Well it is a very nice and
convenient addition to the 'O' command. How many times have you logged onto
the board, read a couple of the more important subs, and then logged off
without reading the rest? Then when you log back on, those subs that you did
not read might have gotten 30-40 or even more posts, so that you have to hit
'45' or whatever so that you can get to the current stuff. or whatever.
Wouldn't it be nice if when you logged off the bbs would ask you if you would
conveniently like all this to be fixed?
Well, my mod does just that. it marks all the messages EVERYWHERE as
already read, so you don't have to bother with them again. Enough! on with
the mod!!! oh and as an afterthought, my code is HEAVILY modded so you
will probably recognize where everything is, I changed the mod so it is a
close approx. to virgin source.*/
/*Step one: load up BBS.C...
in void mainmenu() go down to case 'o':*/
case 'N': /*=*/
express=0; /*=*/
expressabort=0; /*=*/
nscan(0); /*=*/
break; /*=*/
case 'O': /*=*/
nl(); /*=*/
nl(); /*=*/
prt("Log off?"); /*=*/
helpl=12; /*=*/
if (yn()) { /*=*/
/*Step 2. once you reach this point, block the rest of this in.*/
outstr("Mark ALL msgs as read? "); /*+*/
if (yn()) { /*+*/
for (i=0; i<33; i++) /*+*/
thisuser.qscnptr[i]=status.qscanptr-1L; /*+*/
nl(); /*+*/
outstr("Marked."); /*+*/
nl(); /*+*/
} /*+*/
/*existing code continues..*/
outchr(12); /*=*/
/*Step 3. RECOMPILE! told ya that was easy. what a mod! simple, but
I know that your users will appreciate it.