home *** CD-ROM | disk | FTP | other *** search
- Papa Bear #1 @11579
- 1Monday9, 1June 129, 11995 2016:220 8PM
- 4Msg. Status:3▄ 16Please reply!00
- 3 ▀▀▀▀▀▀▀▀▀▀▀▀0
-
- ┌────────────────────────────A CEREBRUM RELEASE!─────────────────────────────┐
- │ Mod Name: SPV─021E.MOD Mod Authors: Pâpâ ßêâr 1@11579.wwivnet │
- │ Difficulty: ▓▓▓░░░░░░░ First .... [09/17/93] │
- │ WWIV Version: 4.24 Last ..... [06/11/95] │
- │ Files Affected: NEWUSER.C │
- │ Description: 4 in 1 mod... [1] Force new user to user entire real name, │
- │ [2] let user press ENTER to use phone as dataphone, [3] allow user to │
- │ (re)select transfer protocol at new user information prompt, [4] allow │
- │ user to press ENTER to use USA as their country. │
- ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
- │ StarPort Valhalla [ ] ─ ASV 28.8kbps Home of the SPV mod series! │
- └─────────────────────────────────────═╧═────────────────────────────────────┘
-
- >>> OFFICIAL WWIV SUPPORT SITE! <<<
-
- Word of Warning: You installed it, you're responsible! Make back─ups BEFORE
- attempting to install this modification! Read all text before beginning.
- ─────────────────────────────────────────────────────────────────────────────
- LEGEND:
- == Original Code [use this to search on]
- ++ Add this Line [mods ALWAYS add stuff, don't they?]
- -- Delete this Line [or comment out, its not needed]
- -+ Change this Line [I usually comment these lines]
- ... Skipping some code here [keeps the mod shorter]
- ─────────────────────────────────────────────────────────────────────────────
- LONG DESCRIPTION: Another few things about WWIV *I* think they should all
- have. This forces the user to enter their ENTIRE real name, instead of just
- their first name only (actually, it checks for the space between the names,
- so it can be faked out, nothing's perfect). I had an OLD mod that did just
- this, but it didn't EVEN work... So I said: "What the heck!", and made a
- new one.
- It will also allow the user to press ENTER and make their data phone number
- the same as the phone number they entered at the first phone prompt. [It will
- ask them if they're sure they wanna do this, just in case you have an ASV mod
- installed... That way visiting SysOps don't get screwed.]
- And now this mod will allow the user to change (or select, in case they
- forgot the first time) their file transfer protocol from the menu that
- appears just before the user number generation. [REV. "A"]
- Allows user to press ENTER to use USA as their country. I've seen people
- press ENTER too often at this prompt. I dunno about you, but I have no
- foreign callers... [REV. "B"]
- Now revised for WWIV 4.24
- ─────────────────────────────────────────────────────────────────────────────
- STEP 1: Function: void input_realname(void) -- REPLACE ENTIRE FUNCTION
-
- void input_realname(void)
- {
- int i,ok;
-
- if (!(syscfg.sysconfig & sysconfig_no_alias)) {
- do {
- ok=1;
- nl();
- pl(get_string(523));
- npr(":");
- mpl(20);
- inputp(thisuser.realname,20);
-
- if ((thisuser.realname[0]==0) ||
- (strchr(thisuser.realname,' ')==NULL)) {
- nl();
- pl(get_string(524));
- ok=0;
- }
- } while ((!hangup) && (!ok));
- } else
- strncpy(thisuser.realname, thisuser.name, sizeof(thisuser.realname)-1);
- }
- ─────────────────────────────────────────────────────────────────────────────
- STEP 2: Function: void input_dataphone(void)
-
- == prt(2,":");
- == mpl(12);
- == input(thisuser.dataphone,12);
- ==
- // SPV-021E.MOD BLOCK START
- if (thisuser.dataphone[0]==NULL) {
- nl();
- npr("9Are you sure you want to use 1%s9 as your 2DATA9 phone? 0",
- thisuser.phone);
- if (yn())
- strcpy(thisuser.dataphone,thisuser.phone);
- }
- // SPV-021E.MOD BLOCK END
- == ok=valid_phone(thisuser.dataphone);
- ==
- == if (!ok) {
- == nl();
- ─────────────────────────────────────────────────────────────────────────────
- STEP 3: Function: void newuser(void)
-
- == outstr(get_string(586)); pl(thisuser.zipcode);
- == outstr(get_string(587)); pl(thisuser.dataphone);
- // START SPV-021E BLOCK COPY
- if (thisuser.defprot)
- strcpy(s1,prot_name(thisuser.defprot));
- else
- strcpy(s1,"6None.0");
- outstr("G. Xfer Protocol : ");
- pl(s1);
- // END SPV-021E BLOCK COPY
- == }
- == nl();
- == pl(get_string(588));
- == nln(2);
- == if (syscfg.sysconfig & sysconfig_extended_info) {
- -+ prt(2,get_string(589)); // NOTE1
- -+ ch=onek("Q123456789ABCDEFG"); // SPV-021E add G
- == } else {
- -+ prt(2,get_string(590)); // NOTE2
- -+ ch=onek("Q123456789G"); // SPV-021E add G
- == }
- == ok=0;
- == switch(ch) {
- // SPV-021E BLOCK COPY START
- case 'G':
- nl();
- pl(get_string(570));
- nl();
- i=get_protocol(xf_down);
- if (i)
- thisuser.defprot=i;
- break;
- // SPV-021E BLOCK COPY END
- == case 'Q': ok=1; break;
- == case '1': input_name(); break;
-
- NOTE1: Change string number 589 in BBS.STR from:
- Which (1-9,A-F,Q) :
- to:
- Which (1-9,A-G,Q) :
-
- NOTE2: Change string number 590 in BBS.STR from:
- Which (1-9,Q) :
- to:
- Which (1-9,G,Q) :
- ─────────────────────────────────────────────────────────────────────────────
- STEP 4: Replace void input_country(void)
-
- void input_country(void)
- {
- int ok;
-
- do {
- ok=0;
- nl();
- ansic(3);
- pl(get_string(536)); // NOTE1
- npr(": ");
- mpl(3);
- input(thisuser.country,3);
- if (thisuser.country[0]==0)
- sprintf(thisuser.country,"USA");
- if (strlen(thisuser.country)<3) {
- ok=1;
- nl();
- pl("6You must enter a THREE letter country code.0");
- nl();
- }
- } while ((ok) && (!hangup));
- }
-
- NOTE: This function replacement allows the user to press enter and make
- their country = USA. It also forces them to use a 3 letter code for
- their country. The reason for this is that unless the country code is
- exactly "USA", phone checking will never take place. So this prevents
- a user from entering just US.
-
- NOTE1: Change string number 536 in BBS.STR from
- Enter your country (i.e. USA).
- to:
- Enter your three letter country code [ENTER = USA].
- ─────────────────────────────────────────────────────────────────────────────
- STEP 5: GEE! You just have to recompile NEWUSER.C and not the whole thing.
- ─────────────────────────────────────────────────────────────────────────────
- Now burn up the networks writing me and telling me how much you like this
- mod... [It keeps my writing these mods!]
-
- As always, if you are having problems, make sure that you didn't make a
- typo [or me, either!]. Then bitch.
-
- This mod is copyright 1993-1995 by Tracy Baker, aka Papa Bear, and is
- distributed as freeware. Permission is granted to distribute and post this
- mod on BBS systems and online services, provided no alterations are made
- (removal of message headers/taglines allowed). This mod may contain some
- parts of WWIV source code, which is copyright 1988─1995 by Wayne Bell and
- licensed only to registered users of WWIV. Use of WWIV source without
- registration constitutes a license violation and could lead to legal
- prosecution and certain doom.
- Shareware distributors and CD─ROM publishers may not distribute this mod
- without express written permission of the Author or WWIV Software Services.
-
- 7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
- ---
- 3Tagito, ergo sum. (I tag, therefore I am.)
-