home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODS412.ZIP / ARCVIEW.MOD next >
Text File  |  1990-09-10  |  4KB  |  150 lines

  1. Alleykat #1 @8352
  2. Mon Sep 03 21:41:21 1990
  3. Mod Name : AVIEWCOM.MOD
  4. WWIV ver : v4.12
  5. Author   : Original Unknown
  6. Updated  : AlleyKat 1@8352
  7.  
  8. This is a great mod if you, like me, dislike the Archive functions that
  9. come with the original WWIV software.  When upgrading this change for
  10. v4.12, I was amazed at what was left when I was finished.  AviewCom is
  11. an Archive Viewer/Extractor/Downloader that is written by a Third Party
  12. and was originally developed for Wildcat BBS.  I picked up the mod from
  13. the Station Tender BBS in Ft. Lauderdale earlier this year and upgraded
  14. the mod for v4.10 & v4.11 as we got the new releases.
  15.  
  16. Installation of this mod will require the you Download the file AVIEW##.ZIP
  17. (where the ## represents the version, I have 37 and have not found a more
  18. current version of the software yet).  AlleyKats' Alley does have auto-
  19. validation for SysOps, and do handle Modem speeds up to 19200.  The phone #
  20. here is 813-239-1339.
  21.  
  22. 7Installation
  23.  
  24. Installing this mod is more of a deletion process then anything.
  25.  
  26. 3Step 1.
  27.  
  28. 6Backup your Source!
  29.  
  30. 3Step 2.
  31.  
  32. Load up XFERTMP.C and go to the line
  33.  
  34. void download_temp_arc()
  35.  
  36. and delete from here to the end of the file.  Yes, this is all the
  37. source in this module.  Nice huh?  Block Read (^KR) the following
  38. function back in.
  39.  
  40. /*****  AVIEWCOM.MOD
  41.  *      3rd Party Archive Extractor/Viewer/Downloader
  42.  *****/
  43. void temp_extract()
  44. {
  45.   int i,a,ok,abort,ok1;
  46.   char s[81],s1[81],s2[81],s3[81];
  47.   uploadsrec u;
  48.   if (okansi())
  49.     a=1;
  50.   else
  51.     a=0;
  52.   dliscan();
  53.   nl();
  54.   pl("Extract view and/or read (EXACT Filenames only!):");
  55.   nl();
  56.   prt(2,"Filename: ");
  57.   input(s,12);
  58.   if (!okfn(s))
  59.     return;
  60.   if (s[0]==0)
  61.     return;
  62.   strcpy(s2,(directories[udir[curdir].subnum].path));
  63.   strcat(s2,s);
  64.   i=recno(s);
  65.     if (i>0) {
  66.       SETREC(i);
  67.       read(dlf,(void *)&u,sizeof(uploadsrec));
  68.   if ((compare(u.filename,"????????.ARC")) ||
  69.       (compare(u.filename,"????????.PAK")) ||
  70.       (compare(u.filename,"????????.ZIP")) ||
  71.       (compare(u.filename,"????????.LZH")))
  72.     ok=1; }
  73.   if (!ok) return;
  74.   if (incom)
  75. /*6**  N O T E ********************************
  76.   6   BE SURE AND CHANGE  COM1 TO YOUR COMPORT IN THE FOLLOWING LINE
  77. ***/
  78.     sprintf(s3,"aviewcom %s com1 -a%d -p%s -t15",s2,a,syscfg.tempdir);
  79.   else
  80.     sprintf(s3,"aviewcom %s local -a%d -d -p%s -t15",s2,a,syscfg.tempdir);
  81. /*  puts(s3);
  82. */
  83.   shrink_out(s3,1,0,1,1);
  84.   closedl();
  85. }
  86.  
  87. 6Please make sure you change the com1 to whatever your com port is!!
  88.  
  89. Well, that was easy...   ok.. there are, I am sure many of the includes,
  90. externs and maybe the defines that can be removed as well in this module
  91. now, but call me lazy.. I was tired and didn't get around to it this time.
  92.  
  93. Save it!! (F2).
  94. 3Step 3
  95.  
  96. Load up XFER.C search for and delete the function 2get_arc_cmd().
  97. Save it!! (F2).
  98.  
  99. 3Step 4
  100.  
  101. Load up BBS.C.   Find the function 2dlmainmenu().
  102. Delete the case statments for A, G and V. as they are all now performed
  103. thru the E option.  You will also need to update the Transfer Menu to
  104. reflect this.
  105. Save it!! (F2).
  106.  
  107. 3Step 5
  108. Load up FUNC.H.  Delete the prototypes for the following functions:
  109. (This step is not necessary but does clean up the code)
  110.  
  111. 1For XFER.C
  112. get_arc_cmd
  113.  
  114. 1For XFERTMP.C
  115. download_temp_arc
  116. add_temp_arc
  117. del_temp
  118. list_temp_dir
  119. list_temp_text
  120. list_temp_arc
  121. temporary_stuff
  122.  
  123. Save it!! (F2)
  124.  
  125. 3Step 6
  126.  
  127. Now recompile the source.  This should be a Build All.
  128.  
  129. 3Step 7
  130.  
  131. Read and install AVIEW as per the great docs provided with it.
  132.  
  133.  
  134.  
  135.  
  136. That should do it.  I have used this mod nearly since I first got
  137. the source.  I have found that the serious downloaders appreciate it
  138. because it allows Flagging of internal files in ZIPped files for down-
  139. loading.  The only drawback to this mod is that it does not change the
  140. Download stats for the user.  It supports Zmodem, Ymodem and Xmodem
  141. transfer protocols.  It works for both ANSI and non-ANSI users.  I don't
  142. mind the download ratio problem as most of my users that use this are
  143. well within the range of maintaining a good to great ratio.
  144.  
  145. Hope you find it as useful and user-appreciated as I have.  If you have
  146. problems or questions pertaining to this mod, feel free to Email me or
  147. call AlleyKats' Alley.
  148.  
  149. 7AlleyKat 511@58352
  150.