home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / INN-001.ZIP / INN-001.MOD < prev   
Encoding:
Text File  |  1995-06-23  |  5.9 KB  |  206 lines

  1. The Inn Keeper #1 @60491▓7█1▓ 3The SYSOP 1▓7█1▓0 
  2. Sun Jun 18 00:41:55 1995
  3. 4Msg. Status:3▄ 16Please reply!00
  4. 3 ▀▀▀▀▀▀▀▀▀▀▀▀0
  5.  
  6. ╔════════════════════════════════════════════════════════════════════════════╗
  7. ║ Mod Name: Add a cd-rom menu on the way to the transfer area                ║
  8. ║ Date    : 06/16/95                                                         ║
  9. ║ Source  : WWIV 4.24                                                        ║
  10. ║ VERSION : 1.2                                                              ║
  11. ║ Diff.   : ▌░░░░░░░░░                                                       ║
  12. ║ Author  : The INN Keeper #1@6049 WWIVNET                                   ║
  13. ║ BBS     : Howard''INN (704-289-6993) 14,4                                  ║
  14. ╚════════════════════════════════════════════════════════════════════════════╝
  15.  
  16.            7  Key0
  17.            3 ~~~~~0
  18. 4+--------------------------------------+0
  19. 4| == Search For/and or leave this code |0
  20. 4| -- Remove this line                  |0
  21. 4| + Add this whole line                |0
  22. 4| = Leave it, Its Original Code        |0
  23. 4| =!= Change this line.                |0
  24. 4| -->|<-- Move This Line To Connect    |0
  25. 4| With The Previous One                |0
  26. 4+--------------------------------------+0
  27. qDisclaimer: As Usual BACK Up Source Code (I TAKE NO RESPONCIBILITY0
  28. If You Screw Up, or this doesnt work on your machine/BBS, But DO Mail Me
  29. About The Problem)
  30.  
  31. This Mod was originaly written by the Carolina Cowboy and then I added
  32. the newfile scan to it also added was the option to go back to the main
  33. menu and then I updated it for WWIV 4.24. It was written for users of the
  34. EZ-Rom download door that are registerd sysops to be able to put it as an
  35. option when going to the transfer area and also so that they can run it
  36. from within the transfer menu so they will not have to go to chains to find
  37. it. If a User can not acess any of your regular download dirs they also
  38. will not be able to acess the download door. This keeps unvalidated users
  39. out of your transfer area.
  40.  
  41.  
  42.  
  43. ##########################################################################
  44. Step 1
  45. Backup your source code!!!!
  46.  
  47. ##########################################################################
  48. Step 2
  49. Make a batch file in the main dir of your bbs to call the ezrom door. The
  50. same one you use to call it from chains should work. Just make sure its in
  51. your main bbs dir.
  52. Other files that are used are:
  53. Rom.ans
  54. Hd.ans
  55. These will add anis enhancements to the Mod if you dont like them just comment
  56. out the printfile line that calls them in the part of the mod that goes into
  57. BBSOVL1.C I think they should go in your main bbs dir but if they do not work
  58. there copy them over to gfiles.
  59.  
  60. ##########################################################################
  61. Step 3
  62. /* Load up MMENU.C and search for case 'T' then remove the entire function
  63. and replace it with the one below*/
  64.  
  65.       case 'T':
  66.       if (syscfg.sysconfig & sysconfig_no_xfer) {
  67.       nl();
  68.       pl(get_string(30));
  69.       nl();
  70.     break;
  71.     }
  72.     cdrom();
  73.     break;
  74.  
  75. ###########################################################################
  76. Step 4
  77. /* Open BBSOVL1.C and block copy the following and place it at the end
  78. of the file. */
  79. void cdrom()
  80. {
  81.  char ch;
  82.  unsigned short fl;
  83.  int done;
  84.  do {
  85. if (udir[0].subnum!=-1) {
  86.    printfile("rom.ans");
  87.    prt(3,"                  Choose The Area You Wish To Enter");
  88.    nl();
  89.    prt(7,"                        [6Q7]1 Quit Back to Main");
  90.    nl();
  91.    prt(7,"[6E7]1 EZ-Rom Download door");
  92.    prt(7,"                     [6H7]1 Hard Drive File Area");
  93.    nl();
  94.    prt(7,"Choice: ");
  95.    ch=onek("EHQ");
  96.      switch (ch) {
  97.      case 'E':
  98.      done=1;
  99.      fl=0;
  100.      fl |= EFLAG_SHRINK|EFLAG_FILES;
  101.      extern_prog("cdrom.bat", fl);
  102.      break;
  103.      case 'Q':
  104.      break;
  105.      case 'H':
  106.     {
  107.      printfile("hd.ans");
  108.      nl();
  109.      prt(6,"                             New file Scan Area");
  110.     num_listed=0;
  111.     tagging=1;
  112.     titled=1;
  113.     nl();
  114.      prt(1,"                     Do You want to Scan for new files?");
  115.     if (ny())
  116.       nscanall();
  117.     else {
  118.       nl();
  119.       if (num_listed) {
  120.         endlist(2);
  121.       } else {
  122.         nl(); ansic(2);
  123.         pl(get_string(1039));
  124.       }
  125.     }
  126.     tagging=0;
  127.     }
  128.  
  129.     if ((udir[0].subnum==-1) && (okconf(&thisuser))) {
  130.       for (curconfdir=0;
  131.            (curconfdir<dirconfnum) &&
  132.            (uconfdir[curconfdir].confnum!=-1);
  133.            curconfdir++) {
  134.         setuconf(CONF_DIRS, curconfdir, -1);
  135.         if (udir[0].subnum!=-1)
  136.           break;
  137.       }
  138.     }
  139.     if (udir[0].subnum!=-1) {
  140.       write_inst(INST_LOC_XFER,udir[curdir].subnum,INST_FLAGS_NONE);
  141.       curdloads=1;
  142.       play_sdf(get_string(1037),0);
  143.       existprint(get_string(1037));
  144.     } else {
  145.       nl();
  146.       pl(get_string(31));
  147.       nl();
  148.     }
  149.     if (menu_on()) {
  150.       rmenu = 300;
  151.       rip_cls();
  152.       //printmenu(310);
  153.       cleared = WASCLEARED;
  154.     }
  155.     break;
  156.      }
  157.      } else {
  158.       nl();
  159.       pl(get_string(31));
  160.       break;
  161.      }
  162.   } while ((!hangup) && (!done));
  163. }
  164.  
  165. ###########################################################################
  166. Step 5
  167.  
  168. Make fcns or add the function CDROM() to FCNS.H in the BBSOVL1.C section
  169. Manualy
  170.  
  171.  
  172.  
  173. ###########################################################################
  174. /* the next 2 steps are optional if you want the userer to be able to access
  175. the cd-rom door from within the transfer menu add these. */
  176. step 1
  177. =   void dlmainmenu(void)
  178. =   {
  179. =     char *s, s1[81],s2[81],ch;
  180. +     unsigned short fl;
  181. =     int i,i1,i2,abort,useconf,ac;
  182. =     int dlredraw = 1;
  183. =     static int ripdlg = 3;
  184.  
  185.  
  186.  
  187. step 2
  188.  
  189. =     case 'X':
  190. -          helpl=22;
  191. -               batchdl(0);
  192. +     fl=0;
  193. +     fl |= EFLAG_SHRINK|EFLAG_FILES;
  194. +     extern_prog("cdrom.bat", fl);
  195. =      break;
  196.  
  197.  
  198.  
  199. ###########################################################################
  200.  
  201. Now just compile and enjoy and send me e-mail to 1@6049 WWivNet to let me
  202. know how you liked it.
  203.  
  204.  
  205.  
  206.