home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / SPV-021E.ZIP / SPV-021E.MOD < prev   
Encoding:
Text File  |  1995-06-17  |  7.9 KB  |  201 lines

  1. Papa Bear #1 @11579
  2. 1Monday9, 1June 129, 11995 2016:220 8PM
  3. 4Msg. Status:3▄ 16Please reply!00
  4. 3 ▀▀▀▀▀▀▀▀▀▀▀▀0
  5.  
  6. ┌────────────────────────────A CEREBRUM RELEASE!─────────────────────────────┐
  7. │ Mod Name: SPV─021E.MOD     Mod Authors: Pâpâ ßêâr 1@11579.wwivnet          │
  8. │ Difficulty: ▓▓▓░░░░░░░     First .... [09/17/93]                           │
  9. │ WWIV Version: 4.24         Last ..... [06/11/95]                           │
  10. │ Files Affected: NEWUSER.C                                                  │
  11. │ Description: 4 in 1 mod... [1] Force new user to user entire real name,    │
  12. │ [2] let user press ENTER to use phone as dataphone, [3] allow user to      │
  13. │ (re)select transfer protocol at new user information prompt, [4] allow     │
  14. │ user to press ENTER to use USA as their country.                           │
  15. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  16. │ StarPort Valhalla [   ]   ─     ASV 28.8kbps  Home of the SPV mod series!  │
  17. └─────────────────────────────────────═╧═────────────────────────────────────┘
  18.  
  19.                      >>> OFFICIAL WWIV SUPPORT SITE! <<<
  20.  
  21.  Word of Warning:  You installed it, you're responsible! Make back─ups BEFORE
  22.  attempting to install this modification!  Read all text before beginning.
  23. ─────────────────────────────────────────────────────────────────────────────
  24.  LEGEND:
  25.  ==  Original Code [use this to search on]
  26.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  27.  --  Delete this Line [or comment out, its not needed]
  28.  -+  Change this Line [I usually comment these lines]
  29.  ... Skipping some code here [keeps the mod shorter]
  30. ─────────────────────────────────────────────────────────────────────────────
  31.  LONG DESCRIPTION:  Another few things about WWIV *I* think they should all
  32. have. This forces the user to enter their ENTIRE real name, instead of just
  33. their first name only (actually, it checks for the space between the names,
  34. so it can be faked out, nothing's perfect).  I had an OLD mod that did just
  35. this, but it didn't EVEN work...  So I said:  "What the heck!", and made a
  36. new one.
  37.  It will also allow the user to press ENTER and make their data phone number
  38. the same as the phone number they entered at the first phone prompt. [It will
  39. ask them if they're sure they wanna do this, just in case you have an ASV mod
  40. installed...  That way visiting SysOps don't get screwed.]
  41.  And now this mod will allow the user to change (or select, in case they
  42. forgot the first time) their file transfer protocol from the menu that
  43. appears just before the user number generation. [REV. "A"]
  44.  Allows user to press ENTER to use USA as their country.  I've seen people
  45. press ENTER too often at this prompt.  I dunno about you, but I have no
  46. foreign callers... [REV. "B"]
  47.   Now revised for WWIV 4.24
  48. ─────────────────────────────────────────────────────────────────────────────
  49. STEP 1: Function: void input_realname(void)  -- REPLACE ENTIRE FUNCTION
  50.  
  51. void input_realname(void)
  52. {
  53.   int i,ok;
  54.  
  55.   if (!(syscfg.sysconfig & sysconfig_no_alias)) {
  56.     do {
  57.       ok=1;
  58.       nl();
  59.       pl(get_string(523));
  60.       npr(":");
  61.       mpl(20);
  62.       inputp(thisuser.realname,20);
  63.  
  64.       if ((thisuser.realname[0]==0) ||
  65.           (strchr(thisuser.realname,' ')==NULL)) {
  66.         nl();
  67.         pl(get_string(524));
  68.         ok=0;
  69.       }
  70.     } while ((!hangup) && (!ok));
  71.   } else
  72.     strncpy(thisuser.realname, thisuser.name, sizeof(thisuser.realname)-1);
  73. }
  74. ─────────────────────────────────────────────────────────────────────────────
  75. STEP 2: Function: void input_dataphone(void)
  76.  
  77. ==    prt(2,":");
  78. ==    mpl(12);
  79. ==    input(thisuser.dataphone,12);
  80. ==
  81. // SPV-021E.MOD BLOCK START
  82.     if (thisuser.dataphone[0]==NULL) {
  83.       nl();
  84.       npr("9Are you sure you want to use 1%s9 as your 2DATA9 phone? 0",
  85.            thisuser.phone);
  86.       if (yn())
  87.         strcpy(thisuser.dataphone,thisuser.phone);
  88.     }
  89. // SPV-021E.MOD BLOCK END
  90. ==    ok=valid_phone(thisuser.dataphone);
  91. ==
  92. ==    if (!ok) {
  93. ==      nl();
  94. ─────────────────────────────────────────────────────────────────────────────
  95. STEP 3: Function: void newuser(void)
  96.  
  97. ==        outstr(get_string(586)); pl(thisuser.zipcode);
  98. ==        outstr(get_string(587)); pl(thisuser.dataphone);
  99. // START SPV-021E BLOCK COPY
  100.         if (thisuser.defprot)
  101.           strcpy(s1,prot_name(thisuser.defprot));
  102.         else
  103.           strcpy(s1,"6None.0");
  104.         outstr("G. Xfer Protocol : ");
  105.         pl(s1);
  106. // END SPV-021E BLOCK COPY
  107. ==      }
  108. ==      nl();
  109. ==      pl(get_string(588));
  110. ==      nln(2);
  111. ==      if (syscfg.sysconfig & sysconfig_extended_info) {
  112. -+        prt(2,get_string(589));                                    // NOTE1
  113. -+        ch=onek("Q123456789ABCDEFG");                     // SPV-021E add G
  114. ==      } else {
  115. -+        prt(2,get_string(590));                                    // NOTE2
  116. -+        ch=onek("Q123456789G");                           // SPV-021E add G
  117. ==      }
  118. ==      ok=0;
  119. ==      switch(ch) {
  120. // SPV-021E BLOCK COPY START
  121.         case 'G':
  122.           nl();
  123.           pl(get_string(570));
  124.           nl();
  125.           i=get_protocol(xf_down);
  126.           if (i)
  127.             thisuser.defprot=i;
  128.           break;
  129. // SPV-021E BLOCK COPY END
  130. ==        case 'Q': ok=1; break;
  131. ==        case '1': input_name(); break;
  132.  
  133. NOTE1: Change string number 589 in BBS.STR from:
  134.   Which (1-9,A-F,Q) :
  135.        to:
  136.   Which (1-9,A-G,Q) :
  137.  
  138. NOTE2: Change string number 590 in BBS.STR from:
  139.   Which (1-9,Q) :
  140.        to:
  141.   Which (1-9,G,Q) :
  142. ─────────────────────────────────────────────────────────────────────────────
  143. STEP 4: Replace void input_country(void)
  144.  
  145. void input_country(void)
  146. {
  147.   int ok;
  148.  
  149.   do {
  150.     ok=0;
  151.     nl();
  152.     ansic(3);
  153.     pl(get_string(536));                                             // NOTE1
  154.     npr(": ");
  155.     mpl(3);
  156.     input(thisuser.country,3);
  157.     if (thisuser.country[0]==0)
  158.       sprintf(thisuser.country,"USA");
  159.     if (strlen(thisuser.country)<3) {
  160.       ok=1;
  161.       nl();
  162.       pl("6You must enter a THREE letter country code.0");
  163.       nl();
  164.     }
  165.   } while ((ok) && (!hangup));
  166. }
  167.  
  168. NOTE: This function replacement allows the user to press enter and make
  169.       their country = USA.  It also forces them to use a 3 letter code for
  170.       their country.  The reason for this is that unless the country code is
  171.       exactly "USA", phone checking will never take place.  So this prevents
  172.       a user from entering just US.
  173.  
  174. NOTE1: Change string number 536 in BBS.STR from
  175.    Enter your country (i.e. USA).
  176.              to:
  177.    Enter your three letter country code [ENTER = USA].
  178. ─────────────────────────────────────────────────────────────────────────────
  179. STEP 5: GEE! You just have to recompile NEWUSER.C and not the whole thing.
  180. ─────────────────────────────────────────────────────────────────────────────
  181.   Now burn up the networks writing me and telling me how much you like this
  182. mod...  [It keeps my writing these mods!]
  183.  
  184.   As always, if you are having problems, make sure that you didn't make a
  185. typo [or me, either!].  Then bitch.
  186.  
  187.     This mod is copyright 1993-1995 by Tracy Baker, aka Papa Bear, and is
  188.  distributed as freeware.  Permission is granted to distribute and post this
  189.    mod on BBS systems and online services, provided no alterations are made
  190.   (removal of message headers/taglines allowed).  This mod may contain some
  191.   parts of WWIV source code, which is copyright 1988─1995 by Wayne Bell and
  192.     licensed only to registered users of WWIV.  Use of WWIV source without
  193.      registration constitutes a license violation and could lead to legal
  194.                         prosecution and certain doom.
  195.    Shareware distributors and CD─ROM publishers may not distribute this mod
  196.  without express written permission of the Author or WWIV Software Services.
  197.  
  198. 7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
  199. ---
  200. 3Tagito, ergo sum.  (I tag, therefore I am.)
  201.