home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UTILITY / WW4REM20.ZIP / WW4REM.MOD < prev   
Text File  |  1994-04-22  |  3KB  |  87 lines

  1.  
  2.  ───────────────────────────────────────────────────────────────────────────
  3.  Mod Name       : WW4REM.MOD                       Date : April, 1994
  4.  Difficulty     : █▒▒▒▒▒▒▒▒▒                     Author : John Dailey aka
  5.  WWIV Version   : 4.23+                                   Max Sterling
  6.  Files Affected : BBSOVL1.C                               166@4701 (WWIVNet)
  7.                                                           166@2522 (WW4Net)
  8.  Description:
  9.  Incorporates   Datagen  Software  Designs'   WWIV  Remove  v2.0+  into  the
  10.  extraction  routine  of  WWIV v4.23+  to remove  heart color  coding,  WWIV
  11.  Network  routing  information,   taglines,  and  end-of-line  markers  from
  12.  extracted messages and/or posts.  Please note that unless WWIV Remove is in
  13.  your main  BBS directory,  you will either need to  have it listed  in your
  14.  path,  or specificy it  on the command  line when calling the  program from
  15.  this modification.
  16.  ───────────────────────────────────────────────────────────────────────────
  17.  Legend
  18.  = = Existing Line Of Code
  19.  + = Added Line Of Code
  20.  - = Deleted Line Of Code
  21.  % = Modified Line Of Code
  22.  
  23.  ───────────────────────────────────────────────────────────────────────────
  24.  Step 1:
  25.  
  26.  Back up your source code! In this case, you need only to back up BBSOVL1.C.
  27.  
  28.  ───────────────────────────────────────────────────────────────────────────
  29.  Step 2:
  30.  
  31.  Open up BBSOVL1.C and make the following changes in void extract_out(char
  32.  *b, long len, char *title):
  33.  
  34.  %    char s1[81],s2[81],s3[81],s4[101],ch=26,ch1,ch2;
  35.  
  36.  (Add s4 to the character variable listing)
  37.  
  38.  And further down in the void, add the three lines shown below:
  39.  
  40.  =    sh_write(i,title,strlen(title));
  41.  =    sh_write(i,"\r\n",2);
  42.  =    sh_write(i,(void *)b,len);
  43.  =    sh_write(i,&ch,1);
  44.  =    sh_close(i);
  45.  +    sprintf(s4,"WW4REM %s %s",s3, s3);
  46.  
  47.       //* Please note that you should make this command line the way that
  48.           you want to call WWIV Remove.  In other words, if you only want
  49.           to remove heart codes from extracted text, then put the command
  50.           line here to do so:     sprintf(s4, "WW4REM %s %s /H", s3, s3);
  51.           Please refer  to the  WWIV Remove v2.0  documentation for  more
  52.           information. *//
  53.  
  54.  +    do_remote(s4,0);
  55.  +    topscreen();
  56.  =    outstr(get_string(677));
  57.  =    pl(s3);
  58.  
  59.  Now, in void extract_mod(char *b, long len) add the following declaration:
  60.  
  61.  %    char s1[81],s2[81],s4[81],s5[81],s6[101],ch=26,ch1,*ptr,*ss1;
  62.  
  63.  (Add s6 to the character variable listing)
  64.  
  65.  And yet further down in the void, add the three lines shown below:
  66.  
  67.  =    i=sh_open(s4,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
  68.  =    sh_lseek(i,0L,SEEK_END);
  69.  =    sh_write(i,(void *)b,len);
  70.  =    sh_write(i,&ch,1);
  71.  =    sh_close(i);
  72.  =    npr("%s%s\r\n",get_string(1202),s4);
  73.  +    sprintf(s6,"WW4REM.EXE %s %s",s4,s4);
  74.  +    do_remote(s6,0);
  75.  +    topscreen();
  76.  =    compress_file(s2,s1);
  77.  =    nl();nl();
  78.  =    prt(2,get_string(1203));
  79.  
  80.  ───────────────────────────────────────────────────────────────────────────
  81.  Step 3:
  82.  
  83.  Save your changes in BBSOVL1.C and recompile.
  84.  
  85.  ───────────────────────────────────────────────────────────────────────────
  86.  End of WWIV v4.23+ modification
  87.