home *** CD-ROM | disk | FTP | other *** search
- ╔───────────────────────────────────────────────────────────────────────────╗
- │ Mod Name: Drmstrip.Mod Date : February 15, 1994 │
- │ Difficulty: █▒▒▒▒▒▒▒▒▒ Author: Unca Scrooge/Top Cat │
- │ WWIV Version: 4.23 1@8398 /1 @8389 WWIVnet │
- │ Files Affected: BBSOVL1.C 1@8398 / 1@0 ICEnet │
- │ Description: Allows the use of DreamSTRIP 1@8351 / 1@1 ImagiNet │
- │ while extracting posts to remove the routing info and tags. │
- ╠───────────────────────────────────────────────────────────────────────────╣
- │ This mod is copyright 1993-94 by Andy Stewart, aka Unca Scrooge, 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-1994 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 CDRom publishers may not distribute this mod │
- │ without express written permission of the Author or WWIV Software │
- │ Services. │
- ╠───────────────────────────────────────────────────────────────────────────╣
- │ ─ ── ──══[ Disclaimer ]══── ── ─ │
- │ Though this mod has been tested extensivly, there are no guaruntees. You │
- │ should have a current backup of your source should something go wrong │
- │ while installing this mod. The Author(s) and/or DreamWARE Communications │
- │ and DreamWARE Modding services CANNOT and WILL NOT be held responsible │
- │ for any ill effects resulting from anyone using this mod. │
- │ │
- │ . ─ ── ───═══[ ALWAYS BACK UP YOUR SOURCE-CODE!!!! ]═══─── ── ─ . │
- ╠─────────────────────────╦─────────────────────────────────────────────────╝
- │─ ─═[ Modding codes ]═─ ─│
- │ ───────────────────── │
- │ = Existing Code │
- │ + Add This Code │
- │ - Delete This Code │
- │ % Modify This Code │
- ╚─────────────────────────╝
-
- Long Desc : Welp, I've read a LOT of people complaining about the
- net_routing info in extracted posts (I've griped
- myself at times.. <g>) wasting space and such... sooo
- I wrote DRMSTRIP.EXE to get rid of all lines that begin
- with ^PD (Diamond code)... so it'll strip out the
- net_routing info, and the taglines (IF the owner of the
- tagline starts it with ^PD)... I'll be expanding on this
- a bit to get rid of the heart_codes, etc.. a little later,
- but wanted to get this out now... Platypus Programming
- wrote WWSTRIP.COM which does the same thing and is GREAT,
- I was just having some problems trying to run it inside
- the bbs with all the parameter strings, so I wrote DRMSTRIP
- with only one parameter string. If you use WWSTRIP.COM,
- register it! It's only $2. If you use DRMSTRIP, then
- thanx and it's free to use.
-
- Also, thanx go out to Top Cat (1@8389 WWIVnet)... he
- originally wrote this mod to work for WWSTRIP.COM
- (TC01A.MOD I think), I just changed it to work with
- DRMSTRIP. Thanx TC! :)
-
- NOTE!! : DRMSTRIP.EXE MUST be in your path for this mod to work!
-
- Step 1 : Back up BBSOVL1.C (the only file affected)
-
- Step 2 : Open up BBSOVL1.C and make the following changes....
-
- in void extract_out(char *b, long len, char *title) do the following
-
- % char s1[81],s2[81],s3[81],s4[101],ch=26,ch1,ch2; // Add s4;
-
- further down
-
- = sh_write(i,title,strlen(title));
- = sh_write(i,"\r\n",2);
- = sh_write(i,(void *)b,len);
- = sh_write(i,&ch,1);
- = sh_close(i);
- + sprintf(s4,"DRMSTRIP.EXE %s",s3);
- + do_remote(s4,0);
- + topscreen();
- = outstr(get_string(677));
- = pl(s3);
-
- further down in void extract_mod(char *b, long len) do the following
-
- % char s1[81],s2[81],s4[81],s5[81],s6[101],ch=26,ch1,*ptr,*ss1; // add s6
-
- further down
-
- = i=sh_open(s4,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
- = sh_lseek(i,0L,SEEK_END);
- = sh_write(i,(void *)b,len);
- = sh_write(i,&ch,1);
- = sh_close(i);
- = npr("%s%s\r\n",get_string(1202),s4);
- + sprintf(s6,"DRMSTRIP.EXE %s",s4);
- + do_remote(s6,0);
- + topscreen();
- = compress_file(s2,s1);
- = nl();nl();
- = prt(2,get_string(1203));
-
-
- Save BBSOVL1.C and recompile...
-
-
-
- Email me if ya need help, have suggestions, etc...