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 >
Text File  |  1991-08-06  |  4KB  |  80 lines

  1. 249/254: Mark Msgs mod, clear out old msgs at logoff!  NICE!!!
  2. Name: Ellrond #3 @9987
  3. Date: Fri Aug 02 03:06:45 1991
  4. From: Silicon Valley [919-765-8640] (North Carolina)
  5. ────────────────────────────────────────────────────────────────────────────────
  6. /*================================MRKMSGS.MOD==============================*/
  7. /*                                                                         */
  8. /*                           By Ellrond, #3 @9987                          */
  9. /*                                                                         */
  10. /*                            Silicon Valley BBS                           */
  11. /*                                                                         */
  12. /*=========================================================================*/
  13.  
  14. /*=*/ = existing code
  15.  
  16. /*+*/ = new stuff
  17.  
  18. Difficulty level:
  19.  
  20.   Easy:<=-VERY!
  21. Medium:
  22.   Hard:
  23.  Gross:
  24.  
  25. Time spent on mod:  Under 5 minutes for most? people.
  26.  
  27. /*Well, I figured that after all the mods that I have done here I ought to do
  28. something for myself.  This is not a "ooooohhhh!" type of mod, nonetheless,
  29. many users will appreciate its function, especially since most people are
  30. unfortunately ignorant of the //QSCAN command and what exactly it does.
  31.  
  32. What exactly will this mod do for me? you ask.  Well it is a very nice and
  33. convenient addition to the 'O' command.  How many times have you logged onto
  34. the board, read a couple of the more important subs, and then logged off 
  35. without reading the rest?  Then when you log back on, those subs that you did
  36. not read might have gotten 30-40 or even more posts, so that you have to hit
  37. '45' or whatever so that you can get to the current stuff.  or whatever.
  38. Wouldn't it be nice if when you logged off the bbs would ask you if you would
  39. conveniently like all this to be fixed?
  40.         Well, my mod does just that.  it marks all the messages EVERYWHERE as
  41. already read, so you don't have to bother with them again.  Enough! on with
  42. the mod!!!  oh and as an afterthought, my code is HEAVILY modded so you
  43. will probably recognize where everything is, I changed the mod so it is a
  44. close approx. to virgin source.*/
  45.  
  46. /*Step one: load up BBS.C...
  47.  
  48. in void mainmenu() go down to case 'o':*/
  49.  
  50. case 'N':                                          /*=*/
  51.                 express=0;                                 /*=*/
  52.                 expressabort=0;                            /*=*/
  53.                 nscan(0);                                  /*=*/
  54.                 break;                                     /*=*/
  55.               case 'O':                                    /*=*/
  56.                 nl();                                      /*=*/
  57.                 nl();                                      /*=*/
  58.             prt("Log off?");                               /*=*/
  59.             helpl=12;                                      /*=*/   
  60.             if (yn()) {                                    /*=*/
  61.  
  62. /*Step 2. once you reach this point, block the rest of this in.*/ 
  63.  
  64.           outstr("Mark ALL msgs as read? ");               /*+*/
  65.               if (yn()) {                                  /*+*/
  66.                 for (i=0; i<33; i++)                       /*+*/
  67.                 thisuser.qscnptr[i]=status.qscanptr-1L;    /*+*/
  68.               nl();                                        /*+*/
  69.                 outstr("Marked.");                         /*+*/
  70.               nl();                                        /*+*/
  71.               }                                            /*+*/
  72.               /*existing code continues..*/
  73.               outchr(12);                                  /*=*/
  74.  
  75. /*Step 3.  RECOMPILE!  told ya that was easy.  what a mod!  simple, but
  76. I know that your users will appreciate it.
  77.  
  78.  
  79.  
  80.