home *** CD-ROM | disk | FTP | other *** search
- Nicolas Leblanc #2 @20302
- Sun Jun 18 23:40:28 1995
- ┌┬─── ── ─ ─ ── ───────────────────────────────────────────────────┬─ ∙∙
- ││ Alternative Worlds Presents │
- └┼─────────────────────────────────────────────────────────────────────┐
- ││ Mod Name » FMD-35a.MOD │∙
- ││ Difficulty » █▒▒▒▒▒▒▒▒▒▒ (1/10) │:
- ││ WWIV Version » 4.24 ││
- ││ Date Affected » 06/01/95 ││
- :│ Files Affected » DEFAULTS.C / NEWUSER.C / MSGBASE.C ││
- ∙│ Description » Toggable Clear Screen Between Posts ││
- └─────────────────────────────────────────────────────────────────────┼┐
- │ A French Mod Division Release - (C) 1995 FMD Software ││
- ∙∙ ─┴─────────────────────────────────────────────────── ── ─ ─ ── ───└┘
-
- ┌┬══════════════════┐
- ││ Long Description ││
- └══════════════════┴┘
-
- This modification will allow your users to choose if they want to clear
- the screen betweek each post read on the system or not. They will be asked
- when they are new and they will be able to change it in the defaults section.
- The structure is already in WWIV, and it will ease some pain to clear the
- screen before each pain, most of us like it that way.
-
- Revision A:
-
- - Updated for WWIV v4.24
-
- ┌┬═══════┐
- ││ Tests ││
- └═══════┴┘
-
- This modification has been tested on a virgin WWIV v4.24 source using
- Borland C++ v4.5
-
- ──────────────────────────────────────────────────────────────────────────────
- Legend
- ╔═══╤══════════════════┐
- │ + │ Add This Line │
- │ - │ Delete This Line │
- │ * │ Modify This Line │
- │ = │ Existing Line │
- └═══╧══════════════════╝
- ───[Step 1]────────────────────────────────────────────────────────────────────
-
- Load DEFAULTS.C and do the following changes in function print_cur_stat
-
-
- = ansic_x(1); outstr(get_string(1149));
- = ansic_x(2); pl((thisuser.sysstatus & sysstatus_conference)?str_yes:str_no);
- + ansic_x(1); outstr("D. Clear Screen : ");
- + ansic_x(2); pl((thisuser.sysstatus & sysstatus_clr_scrn)?str_yes:str_no);
- = ansic_x(1); outstr(get_string(401));
-
- ───[Step 2]────────────────────────────────────────────────────────────────────
-
- In function defaults, do the following changes:
-
- = comstr("|@AQ53X\r\r");
- = if ((thisuser.sysstatus & sysstatus_no_msgs)==0)
- = comstr("|@AQ5RX\r\r");
- * ch=onek("Q?123456789ABCWLMRD");
- = } else if (okansi()) {
- = prt(2,get_string(477));
- * ch=onek("Q?123456789ABCWLMRD");
- = } else {
- = prt(2,get_string(478));
- = ch=onek("Q?1234567BCWLMRD");
- = }
- = if (menu_on()) {
-
- And a bit after:
-
- = case 'C':
- = thisuser.sysstatus ^= sysstatus_conference;
- = changedsl();
- = print_cur_stat();
- = break;
- + case 'D':
- + thisuser.sysstatus ^= sysstatus_clr_scrn;
- + print_cur_stat();
- + break;
- = case 'W':
- = enter_regnum();
- = break;
-
- ───[Step 3]────────────────────────────────────────────────────────────────────
-
- Load MSGBASE.C and do the following change to void read_message
-
-
- =void read_message(int n, int *next, int *val)
- ={
- = char s[100];
- = postrec p;
- = int abort,a,nn;
- = slrec ss;
- =
- = nl();
- = abort=0;
- = *next=0;
- + if (thisuser.sysstatus & sysstatus_clr_scrn)
- + outchr(12);
- + else
- = nl();
- = abort=0;
- = *next=0;
- = msgheader(1);
- = if (E_C) {
-
- ───[Step 4]────────────────────────────────────────────────────────────────────
-
- Load NEWUSER.C and do the following change:
-
- = select_editor();
- = nl();
- = }
- + if (thisuser.sysstatus & sysstatus_clr_scrn)
- + thisuser.sysstatus ^= sysstatus_clr_scrn;
- + nl();
- + prt(5,"Clear screen before posts? ");
- + if (yn())
- + thisuser.sysstatus |= sysstatus_clr_scrn;
- + nl();
- = prt(9,get_string(569));
- = if (yn()) {
-
-
- ───[Step 5]────────────────────────────────────────────────────────────────────
-
- Compile back the BBS and you're done.
-
- French Proverb: Coeur qui soupire n'a pas ce qu'il désire.
-
- For comments, bug report and suggestion, e-mail at the following address:
-
- Nicolas LeBlanc 2@20302.WWIVnet (aka Spotnick)
- -> spotnick@gamemaster.qc.ca
- Martin Bourdages 242@20306 / 3@20302.WWIVnet (aka Dark Shadow)
- -> martin.bourdages@radio.magicnet.com
-
- => French Mod Division Support Sub <=
- SubType: FMD
- Host: @20302 (WWIVnet)
- Scan sublist for other networks
-
- Read PRODUCTS.FMD for the full list of our support systems.
-
- ───[EOF]──────────────────────────────────────────────────────────────────────
-