home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / FMD-35A.ZIP / FMD-35A.MOD < prev   
Encoding:
Text File  |  1995-06-22  |  5.0 KB  |  151 lines

  1. Nicolas Leblanc #2 @20302
  2. Sun Jun 18 23:40:28 1995
  3.    ┌┬─── ──  ─   ─  ── ───────────────────────────────────────────────────┬─ ∙∙
  4.    ││                    Alternative Worlds Presents                      │
  5.    └┼─────────────────────────────────────────────────────────────────────┐
  6.    ││ Mod Name       » FMD-35a.MOD                                        │∙
  7.    ││ Difficulty     » █▒▒▒▒▒▒▒▒▒▒ (1/10)                                 │:
  8.    ││ WWIV Version   » 4.24                                               ││
  9.    ││ Date Affected  » 06/01/95                                           ││
  10.    :│ Files Affected » DEFAULTS.C / NEWUSER.C / MSGBASE.C                 ││
  11.    ∙│ Description    » Toggable Clear Screen Between Posts                ││
  12.     └─────────────────────────────────────────────────────────────────────┼┐
  13.     │       A French Mod Division Release - (C) 1995 FMD Software         ││
  14. ∙∙ ─┴─────────────────────────────────────────────────── ──  ─   ─  ── ───└┘
  15.  
  16.  ┌┬══════════════════┐
  17.  ││ Long Description ││
  18.   └══════════════════┴┘
  19.  
  20.    This modification will allow your users to choose if they want to clear
  21. the screen betweek each post read on the system or not. They will be asked
  22. when they are new and they will be able to change it in the defaults section.
  23. The structure is already in WWIV, and it will ease some pain to clear the
  24. screen before each pain, most of us like it that way.
  25.  
  26. Revision A:
  27.  
  28.  - Updated for WWIV v4.24
  29.  
  30.  ┌┬═══════┐
  31.  ││ Tests ││
  32.   └═══════┴┘
  33.  
  34.   This modification has been tested on a virgin WWIV v4.24 source using
  35.   Borland C++ v4.5
  36.  
  37. ──────────────────────────────────────────────────────────────────────────────
  38.                                    Legend
  39.                           ╔═══╤══════════════════┐
  40.                           │ + │ Add This Line    │
  41.                           │ - │ Delete This Line │
  42.                           │ * │ Modify This Line │
  43.                           │ = │ Existing Line    │
  44.                           └═══╧══════════════════╝
  45. ───[Step 1]────────────────────────────────────────────────────────────────────
  46.  
  47. Load DEFAULTS.C and do the following changes in function print_cur_stat
  48.  
  49.  
  50. =  ansic_x(1); outstr(get_string(1149));
  51. =  ansic_x(2); pl((thisuser.sysstatus & sysstatus_conference)?str_yes:str_no);
  52. +  ansic_x(1); outstr("D. Clear Screen      : ");
  53. +  ansic_x(2); pl((thisuser.sysstatus & sysstatus_clr_scrn)?str_yes:str_no);
  54. =  ansic_x(1); outstr(get_string(401));
  55.  
  56. ───[Step 2]────────────────────────────────────────────────────────────────────
  57.  
  58. In function defaults, do the following changes:
  59.  
  60. =        comstr("|@AQ53X\r\r");
  61. =      if ((thisuser.sysstatus & sysstatus_no_msgs)==0)
  62. =        comstr("|@AQ5RX\r\r");
  63. *      ch=onek("Q?123456789ABCWLMRD");
  64. =    } else if (okansi()) {
  65. =      prt(2,get_string(477));
  66. *      ch=onek("Q?123456789ABCWLMRD");
  67. =    } else {
  68. =      prt(2,get_string(478));
  69. =      ch=onek("Q?1234567BCWLMRD");
  70. =    }
  71. =    if (menu_on()) {
  72.  
  73. And a bit after:
  74.  
  75. =      case 'C':
  76. =        thisuser.sysstatus ^= sysstatus_conference;
  77. =        changedsl();
  78. =        print_cur_stat();
  79. =        break;
  80. +      case 'D':
  81. +        thisuser.sysstatus ^= sysstatus_clr_scrn;
  82. +        print_cur_stat();
  83. +        break;
  84. =      case 'W':
  85. =        enter_regnum();
  86. =        break;
  87.  
  88. ───[Step 3]────────────────────────────────────────────────────────────────────
  89.  
  90. Load MSGBASE.C and do the following change to void read_message
  91.  
  92.  
  93. =void read_message(int n, int *next, int *val)
  94. ={
  95. =  char s[100];
  96. =  postrec p;
  97. =  int abort,a,nn;
  98. =  slrec ss;
  99. =
  100. =  nl();
  101. =  abort=0;
  102. =  *next=0;
  103. +  if (thisuser.sysstatus & sysstatus_clr_scrn)
  104. +   outchr(12);
  105. +  else
  106. =    nl();
  107. =  abort=0;
  108. =  *next=0;
  109. =  msgheader(1);
  110. =  if (E_C) {
  111.  
  112. ───[Step 4]────────────────────────────────────────────────────────────────────
  113.  
  114. Load NEWUSER.C and do the following change:
  115.  
  116. =      select_editor();
  117. =      nl();
  118. =    }
  119. +    if (thisuser.sysstatus & sysstatus_clr_scrn)
  120. +      thisuser.sysstatus ^= sysstatus_clr_scrn;
  121. +    nl();
  122. +    prt(5,"Clear screen before posts? ");
  123. +    if (yn())
  124. +      thisuser.sysstatus |= sysstatus_clr_scrn;
  125. +    nl();
  126. =    prt(9,get_string(569));
  127. =    if (yn()) {
  128.  
  129.  
  130. ───[Step 5]────────────────────────────────────────────────────────────────────
  131.  
  132. Compile back the BBS and you're done.
  133.  
  134. French Proverb: Coeur qui soupire n'a pas ce qu'il désire.
  135.  
  136. For comments, bug report and suggestion, e-mail at the following address:
  137.  
  138. Nicolas LeBlanc  2@20302.WWIVnet (aka Spotnick)
  139.                  -> spotnick@gamemaster.qc.ca
  140. Martin Bourdages 242@20306 / 3@20302.WWIVnet (aka Dark Shadow)
  141.                  -> martin.bourdages@radio.magicnet.com
  142.  
  143.                  =>   French Mod Division Support Sub   <=
  144.                                 SubType: FMD
  145.                            Host: @20302 (WWIVnet)
  146.                       Scan sublist for other networks
  147.  
  148.         Read PRODUCTS.FMD for the full list of our support systems.
  149.  
  150. ───[EOF]──────────────────────────────────────────────────────────────────────
  151.